support calling extern functions
[neatcc.git] / tok.h
blob64b29225d1ecf5d5e3fbc489f434336c33b883fa
1 #define BUFSIZE (1 << 12)
2 #define NAMELEN (1 << 7)
3 #define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
5 enum tok {
6 TOK_EOF,
7 TOK_NAME = 256,
8 TOK_NUM,
9 TOK_VOID,
10 TOK_STATIC,
11 TOK_RETURN,
12 TOK_UNSIGNED,
13 TOK_SIGNED,
14 TOK_SHORT,
15 TOK_LONG,
16 TOK_INT,
17 TOK_CHAR,
18 TOK_STRUCT,
19 TOK_ENUM,
20 TOK_IF,
21 TOK_ELSE,
22 TOK_FOR,
23 TOK_WHILE,
24 TOK_DO,
25 TOK_SWITCH,
26 TOK_CASE,
27 TOK_SIZEOF,
30 void tok_init(int fd);
31 int tok_see(void);
32 int tok_get(void);
33 char *tok_id(void);