X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=src%2Ftexsourc%2Ftex0.c;h=d67a48ebdef09ea8966d162c2482642a45c812b4;hb=edbc4ddbab6c2c7c7bd409f44891e954c77d7e6b;hp=ef20f268e0807bb9c9a1e88bd02ef72b7bd37ef4;hpb=0cc92a0a7fcf1abab81fc0656651be6d2ee2f976;p=putex%2Fputex.git diff --git a/src/texsourc/tex0.c b/src/texsourc/tex0.c index ef20f26..d67a48e 100644 --- a/src/texsourc/tex0.c +++ b/src/texsourc/tex0.c @@ -8,8 +8,6 @@ #define MYLIBAPI __declspec(dllexport) #endif -#include "texwin.h" - #pragma warning(disable:4996) #pragma warning(disable:4131) // old style declarator #pragma warning(disable:4135) // conversion between different integral types @@ -21,14 +19,23 @@ #include "texd.h" -#ifdef IGNORED -static void winerror (char * message) +/* *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** */ +void synch_h(void) { - (void) MessageBox(NULL, message, "YandYTeX.DLL", MB_ICONSTOP | MB_OK); + if (cur_h != dvi_h) + { + movement(cur_h - dvi_h, right1); + dvi_h = cur_h; + } +} +void synch_v(void) +{ + if (cur_v != dvi_v) + { + movement(cur_v - dvi_v, down1); + dvi_v = cur_v; + } } -#endif - -/* *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** */ void set_cur_lang(void) { if (language <= 0) @@ -121,7 +128,7 @@ INLINE void str_room_ (int val) #else if (pool_ptr + val > pool_size) { - overflow("pool size", pool_size - init_pool_ptr); /* pool size */ + overflow("pool size", pool_size - init_pool_ptr); } #endif } @@ -837,8 +844,8 @@ void confusion_(char * s) /* sec 0037 */ bool init_terminal (void) { - register bool Result; int flag; + t_open_in(); if (last > first) @@ -849,10 +856,7 @@ bool init_terminal (void) incr(cur_input.loc_field); // step over initial white space if (cur_input.loc_field < last) - { - Result = true; - return Result; // there is an input file name - } + return true; } // failed to find input file name @@ -872,8 +876,7 @@ bool init_terminal (void) { show_char('\n'); show_line("! End of file on the terminal... why?\n", 1); - Result = false; - return Result; + return false; } cur_input.loc_field = first; @@ -882,10 +885,7 @@ bool init_terminal (void) incr(cur_input.loc_field); // step over intial white space if (cur_input.loc_field < last) - { - Result = true; - return Result; // there is an input file name - } + return true; sprintf(log_line, "%s\n", "Please type the name of your input file."); show_line(log_line, 1); @@ -1155,7 +1155,9 @@ void term_input (char * term_str, int term_help_lines) integer k; int flag; char * helpstring = NULL; +#ifdef _WINDOWS char * querystring = NULL; +#endif // if (nhelplines != 0) { // helpstring = make_up_help_string (nhelplines); // printf(helpstring); @@ -3015,4 +3017,4 @@ void show_node_list_(integer p) } p = link(p); } -} \ No newline at end of file +}