#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)
#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
}
/* sec 0037 */
bool init_terminal (void)
{
- register bool Result;
int flag;
+
t_open_in();
if (last > first)
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
{
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;
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);
integer k;
int flag;
char * helpstring = NULL;
+#ifdef _WINDOWS
char * querystring = NULL;
+#endif
// if (nhelplines != 0) {
// helpstring = make_up_help_string (nhelplines);
// printf(helpstring);
}
p = link(p);
}
-}
\ No newline at end of file
+}