diff options
Diffstat (limited to 'src/generator.h')
-rw-r--r-- | src/generator.h | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/generator.h b/src/generator.h index 9d6dd65..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); |
@@ -39,7 +39,6 @@ void gen_if_end(int idx); | |||
39 | void gen_ifelse_end(int idx); | 39 | void gen_ifelse_end(int idx); |
40 | 40 | ||
41 | int gen_assign(const char ident[], Scope scope); | 41 | int gen_assign(const char ident[], Scope scope); |
42 | int gen_assign_tab(const char ident[], Scope scope); | ||
43 | 42 | ||
44 | void gen_or(int left, int right, int idx); | 43 | void gen_or(int left, int right, int idx); |
45 | void gen_and(int left, int right, int idx); | 44 | void gen_and(int left, int right, int idx); |
@@ -48,10 +47,9 @@ void gen_order(const char op[], int left, int right, int idx); | |||
48 | void gen_addsub(char op, int left, int right); | 47 | void gen_addsub(char op, int left, int right); |
49 | void gen_divstar(char op, int left, int right); | 48 | void gen_divstar(char op, int left, int right); |
50 | 49 | ||
51 | int gen_signed_expr(char op, int type); | 50 | int gen_signed_expr(char op, Type type); |
52 | int gen_negate_expr(int type); | 51 | int gen_negate_expr(Type type); |
53 | int gen_value(const char ident[], Scope scope); | 52 | int gen_value(const char ident[], Scope scope); |
54 | int gen_value_tab(const char ident[], Scope scope); | ||
55 | 53 | ||
56 | int gen_num(int value, Scope scope); | 54 | int gen_num(int value, Scope scope); |
57 | int gen_char(int value, Scope scope); | 55 | int gen_char(int value, Scope scope); |