aboutsummaryrefslogtreecommitdiff
path: root/src/generator.h
diff options
context:
space:
mode:
authorpacien2018-06-05 22:41:15 +0200
committerpacien2018-06-05 22:41:15 +0200
commit0f4b1600983f8afda41a02fec07424338785d81d (patch)
treecd1a3b2f599f7242c9fe76f9d66ca95ba58e34c0 /src/generator.h
parent864653f00dff0a8a1f37d8e9a732c1da8309a930 (diff)
downloadtpc-compiler-0f4b1600983f8afda41a02fec07424338785d81d.tar.gz
Prevent assigning to const
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