-#ifdef _WINDOWS
- #define NOCOMM
- #define NOSOUND
- #define NODRIVERS
- #define STRICT
- #pragma warning(disable:4115) // kill rpcasync.h complaint
- #include <windows.h>
- #define MYLIBAPI __declspec(dllexport)
-#endif
+/* Copyright 2014 Clerk Ma
-#pragma warning(disable:4996)
-#pragma warning(disable:4131) // old style declarator
-#pragma warning(disable:4135) // conversion between different integral types
-#pragma warning(disable:4127) // conditional expression is constant
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
-#include <setjmp.h>
+ This program is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ 02110-1301 USA. */
#define EXTERN extern
{
dvi_buf[dvi_ptr] = op;
incr(dvi_ptr);
+
if (dvi_ptr == dvi_limit)
dvi_swap();
}
{
error();
}
+
#ifdef DEBUG
if (interaction > 0)
debug_help();
#endif
+
history = 3;
jump_out();
}
}
}
/* sec 0518 */
-/* ! I can't find file ` c:/foo/ accents .tex '. */
void print_file_name_(integer n, integer a, integer e)
{
slow_print(a);
else print_char('-');
}
/* sec 0081 */
-// called from itex.c and tex0.c only NASTY NASTY!
-// now uses uses non-local goto (longjmp) 1999/Nov/7
void jump_out (void)
{
close_files_and_terminate();
/* sec 0037 */
bool init_terminal (void)
{
- register bool Result;
int flag;
t_open_in();
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);
s += n;
strcpy(s, "\r\n");
s += 2;
+
return s;
}
// free(helpstring);
// }
show_line("\n", 0); // force it to show what may be buffered up ???
- helpstring = NULL;
+ helpstring = NULL;
#ifdef _WINDOWS
if (term_str != NULL)
positive = false;
}
- t =(x % 32767L) * n;
- u =(x / 32768L)* n +(t / 32768L);
- v =(u % d)* 32768L +(t % 32768L);
+ t = (x % 32767L) * n;
+ u = (x / 32768L) * n + (t / 32768L);
+ v = (u % d) * 32768L + (t % 32768L);
if (u / d >= 32768L)
arith_error = true;
overflow("main memory size", mem_max + 1 - mem_min);
return 0; // abort_flag set
}
+
incr(mem_end); /* then grab from new area */
p = mem_end; /* 1993/Dec/14 */
}