aboutsummaryrefslogtreecommitdiff
path: root/src/generator.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/generator.h')
-rw-r--r--src/generator.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/generator.h b/src/generator.h
index 6c132fd..d2ad5c2 100644
--- a/src/generator.h
+++ b/src/generator.h
@@ -10,11 +10,6 @@
10#include <stdbool.h> 10#include <stdbool.h>
11#include "symbol_table.h" 11#include "symbol_table.h"
12 12
13typedef enum scope {
14 GLOBAL,
15 LOCAL
16} Scope;
17
18extern int nb_globals; 13extern int nb_globals;
19extern int lineno; 14extern int lineno;
20FILE *output; 15FILE *output;
@@ -32,8 +27,8 @@ Type gen_function_call(const char name[], int nb_param);
32void gen_declaration(const char name[], int type, Scope scope); 27void gen_declaration(const char name[], int type, Scope scope);
33void gen_check(const char name[], Scope scope); 28void gen_check(const char name[], Scope scope);
34 29
35void gen_reade(const char name[]); 30void gen_reade(const char name[], Scope scope);
36void gen_readc(const char name[]); 31void gen_readc(const char name[], Scope scope);
37 32
38void gen_print(int type); 33void gen_print(int type);
39 34