diff options
Diffstat (limited to 'src/generator.h')
-rw-r--r-- | src/generator.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/generator.h b/src/generator.h index e1e47df..e1fd714 100644 --- a/src/generator.h +++ b/src/generator.h | |||
@@ -15,23 +15,23 @@ extern int lineno; | |||
15 | FILE *output; | 15 | FILE *output; |
16 | 16 | ||
17 | void gen_prologue(); | 17 | void gen_prologue(); |
18 | void gen_prologue_continue(int *bss_done); | 18 | void gen_prologue_continue(bool *bss_done); |
19 | void gen_epilogue(); | 19 | void gen_epilogue(); |
20 | void gen_const(const char name[], int value, Scope scope); | 20 | void gen_const(const char name[], int value, Scope scope); |
21 | 21 | ||
22 | Type gen_function_declaration(const char name[], int return_type); | 22 | Type gen_function_declaration(const char name[], int return_type); |
23 | void gen_tab_declaration(const char name[], Scope scope, int size); | 23 | void gen_tab_declaration(const char name[], Scope scope, int size); |
24 | void gen_function_end_declaration(const char name[], int return_type, int nb_param); | 24 | void gen_function_end_declaration(const char name[], Type return_type, int nb_param); |
25 | void gen_function_return(Type expect, Type actual); | 25 | void gen_function_return(Type expect, Type actual); |
26 | Type gen_function_call(const char name[], int nb_param); | 26 | Type gen_function_call(const char name[], int nb_param); |
27 | 27 | ||
28 | void gen_declaration(const char name[], int type, Scope scope); | 28 | void gen_declaration(const char name[], Type type, Scope scope); |
29 | void gen_check(const char name[], Scope scope); | 29 | void gen_check(const char name[], Scope scope); |
30 | 30 | ||
31 | void gen_reade(const char name[], Scope scope); | 31 | void gen_reade(const char name[], Scope scope); |
32 | void gen_readc(const char name[], Scope scope); | 32 | void gen_readc(const char name[], Scope scope); |
33 | 33 | ||
34 | void gen_print(int type); | 34 | void gen_print(Type type); |
35 | 35 | ||
36 | void gen_if_label(int idx); | 36 | void gen_if_label(int idx); |
37 | void gen_if_start(int idx); | 37 | void gen_if_start(int idx); |
@@ -47,8 +47,8 @@ void gen_order(const char op[], int left, int right, int idx); | |||
47 | void gen_addsub(char op, int left, int right); | 47 | void gen_addsub(char op, int left, int right); |
48 | void gen_divstar(char op, int left, int right); | 48 | void gen_divstar(char op, int left, int right); |
49 | 49 | ||
50 | int gen_signed_expr(char op, int type); | 50 | int gen_signed_expr(char op, Type type); |
51 | int gen_negate_expr(int type); | 51 | int gen_negate_expr(Type type); |
52 | int gen_value(const char ident[], Scope scope); | 52 | int gen_value(const char ident[], Scope scope); |
53 | 53 | ||
54 | int gen_num(int value, Scope scope); | 54 | int gen_num(int value, Scope scope); |