aboutsummaryrefslogtreecommitdiff
path: root/src/generator.h
diff options
context:
space:
mode:
authorAdam NAILI2018-05-14 15:48:01 +0200
committerAdam NAILI2018-05-14 15:48:01 +0200
commit67fc7933df394848eeb86a45f37e35ded032e5e9 (patch)
treef5453f99cbbea8267f765120389372d7f5d1a32d /src/generator.h
parent337ca2a847e6c5f7555c90807f13412c349b753f (diff)
downloadtpc-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.h3
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
14extern int nb_globals;
15
14void gen_prologue(); 16void gen_prologue();
17void gen_prologue_continue();
15void gen_const_declaration(); 18void gen_const_declaration();
16void gen_declaration(const char name[], int type, Scope scope); 19void gen_declaration(const char name[], int type, Scope scope);
17 20