File: input.h

package info (click to toggle)
linux86 0.16.21-2
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,072 kB
  • sloc: ansic: 66,757; asm: 6,154; makefile: 1,374; sh: 703
file content (41 lines) | stat: -rw-r--r-- 1,361 bytes parent folder | download | duplicates (6)
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
39
40
41
/* 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 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 */

#ifdef BUILTIN_CPP
EXTERN bool_t cppmode;		/* nonzero if acting as cpp not as compiler */
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 */
#endif