diff options
Diffstat (limited to 'bcc-bruce/input.h')
-rw-r--r-- | bcc-bruce/input.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/bcc-bruce/input.h b/bcc-bruce/input.h new file mode 100644 index 0000000..0563059 --- /dev/null +++ b/bcc-bruce/input.h @@ -0,0 +1,37 @@ +/* input.h - input for bcc */ + +/* Copyright (C) 1992 Bruce Evans */ + +#define FAKE_INBUFSIZE_1_NOT + +#ifdef FAKE_INBUFSIZE_1 +#include <stdio.h> +FILE *fdopen(); +#endif + +struct fcbstruct /* file control block structure */ +{ + fd_t fd; /* file descriptor */ +#ifdef FAKE_INBUFSIZE_1 + FILE *fp; +#endif + unsigned linenumber; /* current line in file */ + int lineoffset; /* offset to start of current line in buf */ + char *lineptr; /* current spot in line */ + char *limit; /* end of used part of input buffer */ + struct fbufstruct *includer; + /* buffer of file which included current one */ +}; + +EXTERN bool_t asmmode; /* nonzero when processing assembler code */ + /* depends on zero init */ +EXTERN char ch; /* current char */ +EXTERN bool_t cppmode; /* nonzero if acting as cpp not as compiler */ +EXTERN bool_t eof; /* nonzero after end of main file reached */ + /* depends on zero init */ +EXTERN struct fcbstruct input; /* current input file control block */ + /* input.lineptr is not kept up to date */ +EXTERN char *lineptr; /* ptr to current char */ +EXTERN maclev_t maclevel; /* nest level of #defined identifiers */ + /* depends on zero init */ +EXTERN bool_t orig_cppmode; /* same as cppmode ex. not varied while in # */ |