diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2014-10-12 10:31:23 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2014-10-12 10:31:23 +0000 |
commit | 43ad3d03311b20d626c35d8a1537d13e5764d625 (patch) | |
tree | 48f91f8039f5c22cc5891a2f4f97a4b4f439abcc /Build/source/texk/ps2pkm/util.h | |
parent | 5c7cda775a2f1bffea4e622099d226715b57dc6a (diff) |
texk/ps2pkm: General cleanup: ANSI/ISO C functions and more
git-svn-id: svn://tug.org/texlive/trunk@35361 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/ps2pkm/util.h')
-rw-r--r-- | Build/source/texk/ps2pkm/util.h | 37 |
1 files changed, 31 insertions, 6 deletions
diff --git a/Build/source/texk/ps2pkm/util.h b/Build/source/texk/ps2pkm/util.h index 342c726e50e..2db9a14ddd4 100644 --- a/Build/source/texk/ps2pkm/util.h +++ b/Build/source/texk/ps2pkm/util.h @@ -73,11 +73,11 @@ typedef int boolean; /***================================================================***/ /* Routines for managing virtual memory */ /***================================================================***/ -extern boolean vm_init(); +extern boolean vm_init(void); extern LONG vm_free; extern LONG vm_size; extern char *vm_next; -extern char *vm_alloc(); +extern char *vm_alloc(unsigned int bytes); /***================================================================***/ /* Macros for managing virtual memory */ /***================================================================***/ @@ -176,9 +176,34 @@ typedef struct ps_dict { #define objPSetName(o) ((o)->type = OBJ_NAME) #define objPSetFile(o) ((o)->type = OBJ_FILE) -/***================================================================***/ -/* Entry point for Type1Char to get entry from CharStrings */ -/***================================================================***/ -extern psobj *GetType1CharString(); +extern void objFormatInteger(psobj *,int); +extern void objFormatReal(psobj *, float); +extern void objFormatBoolean(psobj *, boolean); +extern void objFormatEncoding(psobj *, int, psobj *); +extern void objFormatArray(psobj *, int, psobj *); +extern void objFormatString(psobj *, int, char *); +extern void objFormatName(psobj *, int, const char *); +extern void objFormatFile(psobj *, FILE *); + +extern void *Xalloc(size_t); +extern void Xfree(void *); +extern long MakeAtom(const char *, unsigned int, int); +extern void QueryFontLib(char *, const char *, void *, int *); + +/* + * ------------------------------------------------------------------------- + * Globals shared -- (everyone else KEEP YOUR MITTS OFF THEM!) + * ------------------------------------------------------------------------- + */ + +/* These variables are set by the caller */ +extern char *tokenStartP; /* Pointer to token buffer in VM */ +extern char *tokenMaxP; /* Pointer to end of VM we may use + 1 */ + +/* These variables are set by P_TOKEN */ +extern int tokenLength; /* Characters in token */ +extern boolean tokenTooLong; /* Token too long for space available */ +extern int tokenType; /* Type of token identified */ +extern psvalue tokenValue; /* Token value */ #endif |