OSDN Git Service

char * -> const char *.
[putex/putex.git] / src / texsourc / yandytex.h
index e09157a..596fdb5 100644 (file)
@@ -24,7 +24,6 @@
   #pragma warning(disable:4201) // nameless struct/union
   #pragma warning(disable:4996) // a function that was marked with deprecated
   #pragma warning(disable:4701) // potentially uninitialized local variable 'name' used
-  #pragma warning(disable:4131) // old style declarator
   #pragma warning(disable:4135) // conversion between different integral types
   #pragma warning(disable:4127) // conditional expression is constant
 #endif
@@ -57,9 +56,9 @@
 #include "zlib.h"
 #include "md5.h"
 
-typedef long long   integer;
-typedef double      glue_ratio;
-typedef double      real;
+typedef long long integer;
+typedef double    glue_ratio;
+typedef double    real;
 typedef FILE * alpha_file;
 typedef FILE * byte_file;
 typedef FILE * word_file;
@@ -72,7 +71,7 @@ typedef integer str_number;
 typedef unsigned char packed_ASCII_code;
 typedef integer scaled;
 typedef integer nonnegative_integer;
-typedef char small_number;
+typedef unsigned char small_number;
 
 typedef enum
 {
@@ -94,20 +93,16 @@ typedef enum
 #define incr(x)  ++(x)
 #define fabs(x)  ((x) >= 0.0 ? (x) : -(x))
 #define toint(x) ((integer) (x))
-#define a_open_in(f, p) open_input (&(f), p, FOPEN_R_MODE)
-#define a_open_out(f)   open_output (&(f), FOPEN_W_MODE)
-#define a_close(f)         check_fclose (f)
 
 #define MAXLINE 256
 
-extern integer web2c_round (double);
-extern boolean eoln (FILE * file);
-extern boolean open_input (FILE **f, path_constant_type path_index, char *fopen_mode);
-extern boolean open_output (FILE **f, char *fopen_mode);
-extern int check_fclose (FILE * f);
+extern integer web2c_round (double r);
+extern boolean open_input  (FILE ** f, path_constant_type path_index, char * fopen_mode);
+extern boolean open_output (FILE ** f, char * fopen_mode);
+extern int check_fclose    (FILE * f);
 
-#define show_line(str,flag) fputs(str,stdout)
-#define show_char(chr) putc(chr, stdout)
+#define show_line(str, flag) fputs(str, stdout)
+#define show_char(chr)       putc(chr, stdout)
 extern char log_line[];
 
-#endif
\ No newline at end of file
+#endif