diff options
author | Adam NAILI | 2018-05-14 15:48:01 +0200 |
---|---|---|
committer | Adam NAILI | 2018-05-14 15:48:01 +0200 |
commit | 67fc7933df394848eeb86a45f37e35ded032e5e9 (patch) | |
tree | f5453f99cbbea8267f765120389372d7f5d1a32d /src/generator.h | |
parent | 337ca2a847e6c5f7555c90807f13412c349b753f (diff) | |
download | tpc-compiler-67fc7933df394848eeb86a45f37e35ded032e5e9.tar.gz |
Not working properly: Beginning of the implementation of globals -> need to modify if(global) else
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 c907f66..daa7339 100644 --- a/src/generator.h +++ b/src/generator.h | |||
@@ -11,7 +11,10 @@ typedef enum scope { | |||
11 | LOCAL | 11 | LOCAL |
12 | } Scope; | 12 | } Scope; |
13 | 13 | ||
14 | extern int nb_globals; | ||
15 | |||
14 | void gen_prologue(); | 16 | void gen_prologue(); |
17 | void gen_prologue_continue(); | ||
15 | void gen_const_declaration(); | 18 | void gen_const_declaration(); |
16 | void gen_declaration(const char name[], int type, Scope scope); | 19 | void gen_declaration(const char name[], int type, Scope scope); |
17 | 20 | ||