Add some fflush() for avoid loosing comme characters
[TP_AL_C.git] / lexer / global_vars.h
CommitLineData
9ed84d89
JB
1#ifndef GLOBAL_VARS_H_
2#define GLOBAL_VARS_H_
3
4#include <stdio.h>
5#include <wchar.h>
6
7#define TOKEN_MAX 500
8
9extern FILE *source, *target;
10
11struct token_s {
12 const char* type;
13 wint_t value[50];
14};
15extern struct token_s token[TOKEN_MAX];
16
17extern wint_t c;
18
19extern unsigned int tokenFound;
20extern enum TokenType {
21 MOTCLE,
22 SECTION,
23 SSECTION,
24 NPARA,
25 MOT,
26 FIN
27} tokenType;
28extern const char* tokenTypestr[];
29
30#endif /* GLOBAL_VARS_H_ */