comparison pkg-src/tree-x/input.h @ 163:0132846995bd r20-3b8

Import from CVS: tag r20-3b8
author cvs
date Mon, 13 Aug 2007 09:43:35 +0200
parents
children 85ec50267440
comparison
equal deleted inserted replaced
162:4de2936b4e77 163:0132846995bd
1 /* ----------------------------------------------------------------------------
2 * File : input.h
3 * Purpose : header file for input.c
4 * ----------------------------------------------------------------------------
5 */
6
7 #define TOKEN_MAXSIZ 1023 /* maximum size of token */
8 #define INPUT_BUFSIZ TOKEN_MAXSIZ + 1 /* allow for terminating null */
9 /*
10 * #define DELIMITER_BEGIN_LIST '{'
11 * #define DELIMITER_END_LIST '}'
12 */
13
14 /* Possible token types in file */
15
16 enum { TOKEN_LABEL,
17 /*
18 * TOKEN_BEGIN_LIST,
19 * TOKEN_END_LIST,
20 */
21 TOKEN_EOF };
22
23
24 typedef enum {
25 ERR_OPENFAIL,
26 ERR_EMPTYFILE,
27 ERR_MEMALLOC,
28 ERR_NOBEGIN,
29 ERR_NOEND,
30 ERR_NOROOT,
31 ERR_MANYROOT,
32 ERR_NONE,
33 } ErrCode;
34
35 #define NUM_ERRS 7 /* don't count ERR_NONE */
36
37