Mark Slee | 3198572 | 2006-05-24 21:45:31 +0000 | [diff] [blame] | 1 | #ifndef T_GLOBALS_H |
| 2 | #define T_GLOBALS_H |
| 3 | |
| 4 | class t_program; |
| 5 | |
Mark Slee | f5377b3 | 2006-10-10 01:42:59 +0000 | [diff] [blame] | 6 | /** |
| 7 | * The master program parse tree. This is accessed from within the parser code |
| 8 | * to build up the program elements. |
| 9 | */ |
Mark Slee | 3198572 | 2006-05-24 21:45:31 +0000 | [diff] [blame] | 10 | extern t_program* g_program; |
| 11 | |
Mark Slee | f5377b3 | 2006-10-10 01:42:59 +0000 | [diff] [blame] | 12 | /** |
| 13 | * Global debug state |
| 14 | */ |
Mark Slee | 3198572 | 2006-05-24 21:45:31 +0000 | [diff] [blame] | 15 | extern int g_debug; |
| 16 | |
Mark Slee | f5377b3 | 2006-10-10 01:42:59 +0000 | [diff] [blame] | 17 | /** |
| 18 | * Global time string, used in formatting error messages etc. |
| 19 | */ |
Mark Slee | 3198572 | 2006-05-24 21:45:31 +0000 | [diff] [blame] | 20 | extern char* g_time_str; |
| 21 | |
| 22 | #endif |