| 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 | |
| 9 | extern FILE *source, *target; |
| 10 | |
| 11 | struct token_s { |
| 12 | const char* type; |
| 13 | wint_t value[50]; |
| 14 | }; |
| 15 | extern struct token_s token[TOKEN_MAX]; |
| 16 | |
| 17 | extern wint_t c; |
| 18 | extern wint_t tokenValue[50]; |
| 19 | |
| 20 | extern unsigned int tokenFound; |
| 21 | extern enum TokenType { |
| 22 | MOTCLE, |
| 23 | SECTION, |
| 24 | SSECTION, |
| 25 | NPARA, |
| 26 | MOT, |
| 27 | FIN |
| 28 | } tokenType; |
| 29 | extern const char* tokenTypestr[]; |
| 30 | |
| 31 | #endif /* GLOBAL_VARS_H_ */ |