diff options
Diffstat (limited to 'Build/source/texk/dvipsk/t1part.h')
-rw-r--r-- | Build/source/texk/dvipsk/t1part.h | 98 |
1 files changed, 98 insertions, 0 deletions
diff --git a/Build/source/texk/dvipsk/t1part.h b/Build/source/texk/dvipsk/t1part.h new file mode 100644 index 00000000000..57b8be01c0f --- /dev/null +++ b/Build/source/texk/dvipsk/t1part.h @@ -0,0 +1,98 @@ +/*t1part.h from t1part.c version 1.59 beta (c)1994, 1996 +by Sergey Lesenko +lesenko@desert.ihep.su + * + * It is distributed with no warranty of any kind. + * You may modify and use this program. It can be included + * in any distribution, commercial or otherwise, so long as + * copyright notice be preserved on all copies. + */ +#ifdef KPATHSEA +#include <kpathsea/c-ctype.h> +#else /* not KPATHSEA */ +#include <assert.h> + +#include <stdio.h> +#include <ctype.h> +#include <stdlib.h> +#include <string.h> +#endif /* not KPATHSEA */ + +#define DVIPS + +/* +#define DOS +#define BORLANDC +*/ + +#ifdef DEBUG + +extern int debug_flag; + +#define D_VIEW_VECTOR (1<<8) +#define D_CALL_SUBR (1<<9) + +#endif + +#ifdef DVIPS +extern FILE *search(); +#ifndef KPATHSEA +extern char *headerpath; +#endif /* not KPATHSEA */ +#define psfopen(A,B) search(headerpath,A,B) +#else +#define psfopen(A,B) fopen(A,B) +#endif + +#ifdef KPATHSEA +#define OPEN_READ_BINARY FOPEN_RBIN_MODE +#else +#if defined(DOS) || defined(WIN32) +#define OPEN_READ_BINARY "rb" +#else +#define OPEN_READ_BINARY "r" +#endif +#endif /* not KPATHSEA */ + +#ifdef DOS +typedef unsigned char ub1; +typedef unsigned long ub4; +#else +typedef unsigned char ub1; +typedef unsigned long int ub4; +#endif + +#ifdef BORLANDC +typedef unsigned char typetemp; +#define BORLAND_HUGE huge +#else +typedef unsigned char typetemp; +#define BORLAND_HUGE +#endif + +#ifdef BORLANDC +#include <alloc.h> +#define UniRealloc farrealloc +#define UniFree farfree +#else +#ifdef KPATHSEA +#define UniRealloc xrealloc +#define UniFree free +#else +#define UniRealloc realloc +#define UniFree free +#endif /* not KPATHSEA */ +#endif + +#include "protos.h" + +#define NUM_LABEL 1024 +#define BASE_MEM 16384 +#define ADD_MEM 16384 + +#define FLG_LOAD_BASE (1) + +extern unsigned char grid[]; +extern unsigned char *line, *tmpline; +extern int loadbase; +extern struct Char *FirstCharB; |