Back to index

tetex-bin  3.0
t1part.h
Go to the documentation of this file.
00001 /*t1part.h from t1part.c version 1.59 beta (c)1994, 1996
00002 by Sergey Lesenko
00003 lesenko@desert.ihep.su
00004  *
00005  *   It is distributed with no warranty of any kind.
00006  *   You may modify and use this program. It can be included
00007  *   in any distribution, commercial or otherwise, so long as
00008  *   copyright notice be preserved on all copies.
00009  */
00010 #ifdef KPATHSEA
00011 #include <kpathsea/c-ctype.h>
00012 #else /* not KPATHSEA */
00013 #include <assert.h>
00014 
00015 #include <stdio.h>
00016 #include <ctype.h>
00017 #include <stdlib.h>
00018 #include <string.h>
00019 #endif /* not KPATHSEA */
00020 
00021 #define DVIPS
00022 
00023 /*
00024 #define DOS
00025 #define BORLANDC
00026 */
00027 
00028 #ifdef DEBUG
00029 
00030 extern int debug_flag;
00031 
00032 #define D_VIEW_VECTOR    (1<<8)
00033 #define D_CALL_SUBR      (1<<9)
00034 
00035 #endif
00036 
00037 #ifdef DVIPS
00038 extern FILE *search();
00039 #ifndef KPATHSEA
00040 extern char *headerpath ;
00041 #endif /* not KPATHSEA */
00042 #define psfopen(A,B) search(headerpath,A,B)
00043 #else
00044 #define psfopen(A,B)  fopen(A,B)
00045 #endif
00046 
00047 #ifdef KPATHSEA
00048 #define OPEN_READ_BINARY FOPEN_RBIN_MODE
00049 #else
00050 #if defined(DOS) || defined(WIN32)
00051 #define OPEN_READ_BINARY "rb"
00052 #else
00053 #define OPEN_READ_BINARY "r"
00054 #endif
00055 #endif /* not KPATHSEA */
00056 
00057 #ifdef DOS
00058 typedef unsigned char  ub1;
00059 typedef unsigned long  ub4;
00060 #else
00061 typedef unsigned char  ub1;
00062 typedef unsigned long int   ub4;
00063 #endif
00064 
00065 #ifdef BORLANDC
00066 typedef unsigned char typetemp;
00067 #define _HUGE huge
00068 #else
00069 typedef unsigned char typetemp;
00070 #define _HUGE
00071 #endif
00072 
00073 #ifdef BORLANDC
00074 #include <alloc.h>
00075 #define UniRealloc farrealloc
00076 #define UniFree farfree
00077 #else
00078 #ifdef KPATHSEA
00079 #define UniRealloc  xrealloc
00080 #define UniFree free
00081 #else
00082 #define UniRealloc  realloc
00083 #define UniFree free
00084 #endif /* not KPATHSEA */
00085 #endif
00086 
00087 #include "protos.h"
00088 #if 0
00089 struct Char * AddChar ();
00090 void AddStr();
00091 void BinEDeCrypt ();
00092 int  DeCodeStr();
00093 int  DefTypeFont();
00094 unsigned
00095 char CDeCrypt();
00096 void CorrectGrid();
00097 int  CharEncoding ();
00098 void CheckChoosing();
00099 int  ChooseChar();
00100 int  ChooseVect();
00101 int  EndOfEncoding();
00102 void ErrorOfScan ();
00103 int FindCharW();
00104 void FindEncoding ();
00105 int  FindKeyWord ();
00106 int  FontPart ();
00107 void HexEDeCrypt ();
00108 void *getmem ();
00109 int  GetNum ();
00110 int  GetToken ();
00111 int  GetWord ();
00112 int  GetZeroLine ();
00113 unsigned
00114 char *itoasp ();
00115 void LastLook ();
00116 ub4  little4 ();
00117 void OutASCII ();
00118 void OutHEX ();
00119 void OutStr();
00120 void NameOfProgram ();
00121 int  PartialPFA ();
00122 int  PartialPFB ();
00123 void PrintChar ();
00124 int  PassString ();
00125 int  PassToken ();
00126 void Reverse();
00127 int  ScanBinary ();
00128 void ScanChars ();
00129 void ScanSubrs ();
00130 void SubstNum ();
00131 void ViewReturnCall();
00132 struct Char * UnDefineChars ();
00133 void UnDefineCharsW();
00134 void UnDefineStr();
00135 int WorkVect();
00136 #endif
00137 
00138 #define NUM_LABEL     1024
00139 #define BASE_MEM     16384
00140 #define ADD_MEM      16384
00141 
00142 #define FLG_LOAD_BASE   (1)
00143 
00144 extern unsigned char grid[];
00145 extern unsigned char *line, *tmpline ;
00146 extern int loadbase ;
00147 extern struct Char *FirstCharB;