summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvipsk/t1part.h
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2006-01-17 21:41:51 +0000
committerKarl Berry <karl@freefriends.org>2006-01-17 21:41:51 +0000
commit487ca4806cc046076293cf6cc5fbba0db282bac7 (patch)
tree847b412ab5158dd7bdd7ed7e5a4cc3fbca94be32 /Build/source/texk/dvipsk/t1part.h
parenta3d3111bfe26b8e5f5bc6049dfb2a4ca2edc7881 (diff)
texk 1
git-svn-id: svn://tug.org/texlive/trunk@1485 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvipsk/t1part.h')
-rw-r--r--Build/source/texk/dvipsk/t1part.h147
1 files changed, 147 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..b33bf4dfb63
--- /dev/null
+++ b/Build/source/texk/dvipsk/t1part.h
@@ -0,0 +1,147 @@
+/*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 _HUGE huge
+#else
+typedef unsigned char typetemp;
+#define _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"
+#if 0
+struct Char * AddChar ();
+void AddStr();
+void BinEDeCrypt ();
+int DeCodeStr();
+int DefTypeFont();
+unsigned
+char CDeCrypt();
+void CorrectGrid();
+int CharEncoding ();
+void CheckChoosing();
+int ChooseChar();
+int ChooseVect();
+int EndOfEncoding();
+void ErrorOfScan ();
+int FindCharW();
+void FindEncoding ();
+int FindKeyWord ();
+int FontPart ();
+void HexEDeCrypt ();
+void *getmem ();
+int GetNum ();
+int GetToken ();
+int GetWord ();
+int GetZeroLine ();
+unsigned
+char *itoasp ();
+void LastLook ();
+ub4 little4 ();
+void OutASCII ();
+void OutHEX ();
+void OutStr();
+void NameOfProgram ();
+int PartialPFA ();
+int PartialPFB ();
+void PrintChar ();
+int PassString ();
+int PassToken ();
+void Reverse();
+int ScanBinary ();
+void ScanChars ();
+void ScanSubrs ();
+void SubstNum ();
+void ViewReturnCall();
+struct Char * UnDefineChars ();
+void UnDefineCharsW();
+void UnDefineStr();
+int WorkVect();
+#endif
+
+#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;