From 0f4b1600983f8afda41a02fec07424338785d81d Mon Sep 17 00:00:00 2001 From: pacien Date: Tue, 5 Jun 2018 22:41:15 +0200 Subject: Prevent assigning to const --- src/generator.h | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/generator.h') 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 @@ #include #include "symbol_table.h" -typedef enum scope { - GLOBAL, - LOCAL -} Scope; - extern int nb_globals; extern int lineno; FILE *output; @@ -32,8 +27,8 @@ Type gen_function_call(const char name[], int nb_param); void gen_declaration(const char name[], int type, Scope scope); void gen_check(const char name[], Scope scope); -void gen_reade(const char name[]); -void gen_readc(const char name[]); +void gen_reade(const char name[], Scope scope); +void gen_readc(const char name[], Scope scope); void gen_print(int type); -- cgit v1.2.3