|
|
1.1 root 1: #ifndef INPUT_H
2: #define INPUT_H
3:
4: /*
5: *-IMPORTS:
6: * <sys/compat.h>
7: * CONST
8: * PROTO ()
9: */
10:
11: #include <sys/compat.h>
12:
13: #ifndef INPUT_T
14: #define INPUT_T
15: typedef struct input input_t;
16: #endif
17:
18: #ifndef LEX_T
19: #define LEX_T
20: typedef struct lexinfo lex_t;
21: #endif
22:
23: enum {
24: IN_EOF = -1
25: };
26:
27:
28: /*
29: * Structure of an input source.
30: */
31:
32: struct input {
33: int (* in_read) PROTO ((input_t * _input));
34: void (* in_unread) PROTO ((input_t * _input));
35: CONST unsigned char *
36: (* in_readtok) PROTO ((input_t * _input,
37: lex_t * _lexp,
38: size_t * _len));
39: void (* in_close) PROTO ((input_t * _input));
40: void (* in_error) PROTO ((input_t * _input));
41: int (* in_filter) PROTO ((input_t * _input,
42: CONST char * _format, ...));
43: };
44:
45: #endif /* ! defined (INPUT_H) */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.