OSDN Git Service

updating codes.
[putex/putex.git] / src / texsourc / tex0.c
index ef20f26..d67a48e 100644 (file)
@@ -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 
 
 #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
+}