diff options
author | Adam NAILI | 2018-06-05 23:03:29 +0200 |
---|---|---|
committer | Adam NAILI | 2018-06-05 23:03:29 +0200 |
commit | a037a641ca537f012865b2655917207af683ea1f (patch) | |
tree | 2cc15c0e2df751e635fe766cb89c534592944ec3 /src/generator.h | |
parent | 4cc53658a9503191f41945914e6223ccc5a95717 (diff) | |
parent | 1c1ba0e8cd1f7cb17b04626b7ef3cf9fcbe520ab (diff) | |
download | tpc-compiler-a037a641ca537f012865b2655917207af683ea1f.tar.gz |
Merge branch 'master' of https://github.com/pacien/upem-compil-tpc
Diffstat (limited to 'src/generator.h')
-rw-r--r-- | src/generator.h | 9 |
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 | ||
13 | typedef enum scope { | ||
14 | GLOBAL, | ||
15 | LOCAL | ||
16 | } Scope; | ||
17 | |||
18 | extern int nb_globals; | 13 | extern int nb_globals; |
19 | extern int lineno; | 14 | extern int lineno; |
20 | FILE *output; | 15 | FILE *output; |
@@ -32,8 +27,8 @@ Type gen_function_call(const char name[], int nb_param); | |||
32 | void gen_declaration(const char name[], int type, Scope scope); | 27 | void gen_declaration(const char name[], int type, Scope scope); |
33 | void gen_check(const char name[], Scope scope); | 28 | void gen_check(const char name[], Scope scope); |
34 | 29 | ||
35 | void gen_reade(const char name[]); | 30 | void gen_reade(const char name[], Scope scope); |
36 | void gen_readc(const char name[]); | 31 | void gen_readc(const char name[], Scope scope); |
37 | 32 | ||
38 | void gen_print(int type); | 33 | void gen_print(int type); |
39 | 34 | ||