blob: 42c31f732a69b2f0a0920e04fe5df0b13bb5f6ea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
/* 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 eofile; /* 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 # */
EXTERN bool_t virtual_nl; /* For -C and asm, don't print first nl */
|