diff options
author | pacien | 2018-05-26 18:45:50 +0200 |
---|---|---|
committer | pacien | 2018-05-26 18:45:50 +0200 |
commit | 5ad57d142bcf05886c750018b067865fc97e13fe (patch) | |
tree | 3ea20ebe4ca6cb07031280ed015b3cc2af2da857 /src/generator.h | |
parent | 67fc7933df394848eeb86a45f37e35ded032e5e9 (diff) | |
download | tpc-compiler-5ad57d142bcf05886c750018b067865fc97e13fe.tar.gz |
Handle output to file option
Diffstat (limited to 'src/generator.h')
-rw-r--r-- | src/generator.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/generator.h b/src/generator.h index daa7339..825ec8c 100644 --- a/src/generator.h +++ b/src/generator.h | |||
@@ -6,12 +6,15 @@ | |||
6 | #ifndef __GENERATOR_H__ | 6 | #ifndef __GENERATOR_H__ |
7 | #define __GENERATOR_H__ | 7 | #define __GENERATOR_H__ |
8 | 8 | ||
9 | #include <stdio.h> | ||
10 | |||
9 | typedef enum scope { | 11 | typedef enum scope { |
10 | GLOBAL, | 12 | GLOBAL, |
11 | LOCAL | 13 | LOCAL |
12 | } Scope; | 14 | } Scope; |
13 | 15 | ||
14 | extern int nb_globals; | 16 | extern int nb_globals; |
17 | FILE *output; | ||
15 | 18 | ||
16 | void gen_prologue(); | 19 | void gen_prologue(); |
17 | void gen_prologue_continue(); | 20 | void gen_prologue_continue(); |