Back to index

tetex-bin  3.0
texfiles.h
Go to the documentation of this file.
00001 /*
00002  * File:    texfiles.h
00003  * Purpose: headerfile for texfiles.c
00004  * Version: 1.0 (Nov 1993)
00005  * Author:  Piet Tutelaers
00006  */
00007 
00008 #ifndef __TEXFILES__
00009 #define __TEXFILES__
00010 
00011 #include <stdio.h>
00012 
00013 #ifdef MSDOS
00014 typedef long integer ;
00015 #else
00016 typedef int integer ;
00017 #endif
00018 
00019 unsigned long num(FILE *fp, int size);
00020 integer snum(FILE *fp, int size);
00021 
00022 #define one(fp)             ((unsigned char) getc(fp))
00023 #define sone(fp)     ((long) one(fp))
00024 #define two(fp)             num (fp, 2)
00025 #define stwo(fp)     snum(fp, 2)
00026 #define four(fp)     num (fp, 4)
00027 #define sfour(fp)    snum(fp, 4)
00028 
00029 #endif /* __TEXFILES__ */