Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301 USA. */
-#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
-
#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
-#include <setjmp.h>
-
#define EXTERN extern
#include "texd.h"
extern clock_t start_time, main_time, finish_time; /* in local.c */
-/* imported from pascal.h */
-/* localized here to avoid conflict with io.h in other code */
-
-#define read(f, b) ((b) = getc (f))
-
-
#ifdef INITEX
void do_initex (void); /* later in this file */
#endif
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301 USA. */
-#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
-
#pragma warning(disable:4996)
#pragma warning(disable:4131) // old style declarator
#pragma warning(disable:4135) // conversion between different integral types
#include <kpathsea/variable.h>
#include <kpathsea/absolute.h>
-#include <setjmp.h>
-
#define EXTERN extern
#include "texd.h"
# LFLAGS=@yandytex.nt /MAP /DEBUG /PDB:yandytex.pdb lib\libdos.lib
# LFLAGS=/MAP /DEBUG /PDB:yandytex.pdb
-objs = texmf.obj itex.obj openinou.obj subroute.obj local.obj \
+objs = yandytex.obj itex.obj openinou.obj subroute.obj local.obj \
tex0.obj tex1.obj tex2.obj tex3.obj tex4.obj \
tex5.obj tex6.obj tex7.obj tex8.obj tex9.obj \
yandy_pool.obj yandytex.res md5.obj md5file.obj \
# ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ###
texmf.exe: $(objs)
- $(LINK) $(LFLAGS) texmf itex openinou subroute local \
+ $(LINK) $(LFLAGS) yandytex itex openinou subroute local \
tex0 tex1 tex2 tex3 tex4 tex5 tex6 tex7 tex8 tex9 \
yandy_pool yandytex.res md5 md5file yandy_pdf_backend \
avl \
kpathsea\kpathsea.lib libharu\libhpdf.lib libpng\libpng.lib zlib\zlib.lib
- copy texmf.exe yandytex.exe
- del ..\yandy\bin\texmf.exe
- copy texmf.exe ..\yandy\bin\texmf.exe
+ del ..\yandy\bin\yandytex.exe
+ copy yandytex.exe ..\yandy\bin\yandytex.exe
# ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ###
avl.obj: libavl/libavl/avl.c
$(CC) $(CFLAGS) libavl/libavl/avl.c
yandytex.res: yandytex.rc
rc yandytex.rc
-texmf.obj: texmf.c \
+yandytex.obj: yandytex.c \
texd.h texmf.h texmfmem.h coerce.h
- $(CC) /DINITEX /DINI $(CFLAGS) texmf.c
+ $(CC) /DINITEX /DINI $(CFLAGS) yandytex.c
itex.obj: itex.c \
texd.h texmf.h texmfmem.h coerce.h
subroute.obj: subroute.c \
texd.h texmf.h texmfmem.h coerce.h
- $(CC) $(CFLAGS) subroute.c
+ $(CC) $(CFLAGS) subroute.c
local.obj: local.c \
texd.h texmf.h texmfmem.h coerce.h
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301 USA. */
-#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)
+#ifdef MSDOS
+ #include <direct.h> /* for _getcwd() */
+#else
+ #include <unistd.h>
#endif
-#pragma warning(disable:4996)
-#include <kpathsea/kpathsea.h>
-#pragma warning(disable:4131) // old style declarator
-#pragma warning(disable:4135) // conversion between different integral types
-#pragma warning(disable:4127) // conditional expression is constant
-
-#include <setjmp.h>
-
-#include <direct.h> /* for _getcwd() */
-
#define EXTERN extern
#include "texd.h"
*log_line = '\0';
else
{
+#ifdef MSDOS
(void) _getcwd(log_line, sizeof(log_line));
+#else
+ (void) getcwd(log_line, sizeof(log_line));
+#endif
strcat(log_line, PATH_SEP_STRING);
}
*log_line = '\0';
else
{
+#ifdef MSDOS
(void) _getcwd(log_line, sizeof(log_line));
+#else
+ (void) getcwd(log_line, sizeof(log_line));
+#endif
strcat(log_line, PATH_SEP_STRING);
}
*log_line = '\0';
else
{
+#ifdef MSDOS
(void) _getcwd(log_line, sizeof(log_line));
+#else
+ (void) getcwd(log_line, sizeof(log_line));
+#endif
strcat(log_line, PATH_SEP_STRING);
}
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301 USA. */
-#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
-
#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
-#include <setjmp.h>
-
#define EXTERN extern
#include "texd.h"
-#define NAME_MAX 255 // max size of name component
-
-#define PATH_SEP '/'
-#define PATH_SEP_STRING "/"
-#define PATH_DELIMITER ';'
-#define PATH_DELIMITER_STRING ";"
+#define PATH_SEP '/'
// used only in jump_out in tex0.c, and in texbody in itex.c
// and main in texmf.c and a few other abort situations in texmf.c
-#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
#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
-#include <setjmp.h>
-
#define EXTERN extern
#include "texd.h"
-#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
#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
-#include <setjmp.h>
-
#define EXTERN extern
#include "texd.h"
-#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
#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
-#include <setjmp.h>
-
#define EXTERN extern
#include "texd.h"
-#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
#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
-#include <setjmp.h>
-
#define EXTERN extern
#include "texd.h"
-#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
#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
-#include <setjmp.h>
-
#define EXTERN extern
#include "texd.h"
-#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
#pragma warning(disable:4131) // old style declarator
#pragma warning(disable:4135) // conversion between different integral types
#pragma warning(disable:4127) // conditional expression is constant
-#include <setjmp.h>
-
#define EXTERN extern
#include "texd.h"
-#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
#pragma warning(disable:4131) // old style declarator
#pragma warning(disable:4135) // conversion between different integral types
#pragma warning(disable:4127) // conditional expression is constant
-#include <setjmp.h>
-
#define EXTERN extern
#include "texd.h"
-#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
#pragma warning(disable:4131) // old style declarator
#pragma warning(disable:4135) // conversion between different integral types
#pragma warning(disable:4127) // conditional expression is constant
-#include <setjmp.h>
-
#define EXTERN extern
#include "texd.h"
-#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
#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
-#include <setjmp.h>
-
#define EXTERN extern
#include "texd.h"
#pragma warning(disable:4244) /* 96/Jan/10 */
-/* *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** */
-
-/* math_fraction etc used to be in tex7.c */
/* sec 1181 */
void math_fraction (void)
{
/* string 785 is .tex */
else if ((cur_ext != 785) && (name_length + 5 < PATHMAX))
{
- name_of_file[name_length + 1] = '.';
- name_of_file[name_length + 2] = 't';
- name_of_file[name_length + 3] = 'e';
- name_of_file[name_length + 4] = 'x';
- name_of_file[name_length + 5] = ' ';
+ strncpy((char *) name_of_file + name_length + 1, ".tex ", 5);
name_length = name_length + 4;
if (a_open_in(read_file[n], TEXINPUTPATH))
"And type `I\\tracingonline=1\\show...' to show boxes and",
"lists on your terminal as well as in the transcript file.");
}
+
error();
}
/* sec 1349 */
-#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
#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
-#include <setjmp.h>
-
#define EXTERN extern
#include "texd.h"
EXTERN pool_pointer area_delimiter;
EXTERN pool_pointer ext_delimiter;
EXTERN integer format_default_length;
-EXTERN ccharpointer TEX_format_default;
+EXTERN char * TEX_format_default;
EXTERN bool name_in_progress;
EXTERN bool log_opened;
EXTERN bool quoted_file_name;
typedef union
{
#ifdef TeX
- glueratio gr;
+ glue_ratio gr;
twohalves hh;
#else
twohalves hhfield;
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301 USA. */
-#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
-
#pragma warning(disable:4996)
-#include <kpathsea/kpathsea.h>
#pragma warning(disable:4131) // old style declarator
#pragma warning(disable:4135) // conversion between different integral types
#pragma warning(disable:4127) // conditional expression is constant
-#include <setjmp.h>
-
#define EXTERN extern
#include "texd.h"
-#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
#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
-#include <setjmp.h>
#include <time.h>
#define EXTERN extern
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301 USA. */
-#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
-
-#pragma warning(disable:4996)
-#include <kpathsea/config.h>
-#include <kpathsea/c-ctype.h>
-#include <kpathsea/line.h>
-#include <kpathsea/readable.h>
-#include <kpathsea/variable.h>
-#include <kpathsea/absolute.h>
-
-
-#pragma warning(disable:4131) // old style declarator
-#pragma warning(disable:4135) // conversion between different integral types
-#pragma warning(disable:4127) // conditional expression is constant
-
-#include <setjmp.h>
-
#define EXTERN /* Instantiate data in `texd.h' or `mfd.h' here ! */
#include "texd.h"
#define edit_var "UFYFEJU" /* shrouded 93/Nov/20 */
#endif
-#include <ctype.h> // needed for isascii and isalpha
-
-#define ISSPACE(c) (isascii (c) && isspace(c))
-
-#include <time.h> // needed for time, struct tm etc.
-#include <signal.h>
-
-extern struct tm * localtime();
/* following may be found in local.c --- used for key replacement */
extern char * replacement[]; /* pointers to replacement strings */
-/* extern char *buffercopy; */ /* pointer to allocated copy of buffer */
-
-// extern char *grabenv(char *); /* in local.c - bkph */
-
-/* extern void try_and_open(char *); */ /* inb local.c */
-
#ifdef FUNNY_CORE_DUMP
void funny_core_dump (void);
#endif
#define WORDS_BIGENDIAN 0
+#pragma warning(disable:4996) //
+#pragma warning(disable:4701) //
+#pragma warning(disable:4100)
+#pragma warning(disable:4244)
+#pragma warning(disable:4131) // old style declarator
+#pragma warning(disable:4135) // conversion between different integral types
+#pragma warning(disable:4127) // conditional expression is constant
+
/* ``Standard'' headers. */
#include <kpathsea/c-auto.h>
#include <kpathsea/c-std.h>
#include <kpathsea/c-pathmx.h>
#include <kpathsea/c-fopen.h>
+#include <kpathsea/c-ctype.h>
#include <kpathsea/c-proto.h>
+#include <kpathsea/config.h>
#include <kpathsea/getopt.h>
#include <kpathsea/lib.h>
+#include <kpathsea/line.h>
+#include <kpathsea/readable.h>
#include <kpathsea/types.h>
+#include <kpathsea/tex-file.h>
+#include <kpathsea/variable.h>
+#include <kpathsea/absolute.h>
+#include <setjmp.h>
+#include <time.h>
+#include <signal.h>
#include "hpdf.h"
#include "avl.h"
-typedef signed char schar;
typedef long integer;
typedef double glue_ratio;
-typedef double glueratio;
typedef boolean bool;
-typedef char * ccharpointer;
typedef double real;
-typedef FILE * file_ptr;
typedef FILE * alpha_file;
typedef unsigned char ASCII_code;
typedef unsigned short KANJI_code;