aboutsummaryrefslogtreecommitdiff
path: root/src/generator.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/generator.h')
-rw-r--r--src/generator.h12
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;
15FILE *output; 15FILE *output;
16 16
17void gen_prologue(); 17void gen_prologue();
18void gen_prologue_continue(int *bss_done); 18void gen_prologue_continue(bool *bss_done);
19void gen_epilogue(); 19void gen_epilogue();
20void gen_const(const char name[], int value, Scope scope); 20void gen_const(const char name[], int value, Scope scope);
21 21
22Type gen_function_declaration(const char name[], int return_type); 22Type gen_function_declaration(const char name[], int return_type);
23void gen_tab_declaration(const char name[], Scope scope, int size); 23void gen_tab_declaration(const char name[], Scope scope, int size);
24void gen_function_end_declaration(const char name[], int return_type, int nb_param); 24void gen_function_end_declaration(const char name[], Type return_type, int nb_param);
25void gen_function_return(Type expect, Type actual); 25void gen_function_return(Type expect, Type actual);
26Type gen_function_call(const char name[], int nb_param); 26Type gen_function_call(const char name[], int nb_param);
27 27
28void gen_declaration(const char name[], int type, Scope scope); 28void gen_declaration(const char name[], Type type, Scope scope);
29void gen_check(const char name[], Scope scope); 29void gen_check(const char name[], Scope scope);
30 30
31void gen_reade(const char name[], Scope scope); 31void gen_reade(const char name[], Scope scope);
32void gen_readc(const char name[], Scope scope); 32void gen_readc(const char name[], Scope scope);
33 33
34void gen_print(int type); 34void gen_print(Type type);
35 35
36void gen_if_label(int idx); 36void gen_if_label(int idx);
37void gen_if_start(int idx); 37void gen_if_start(int idx);
@@ -47,8 +47,8 @@ void gen_order(const char op[], int left, int right, int idx);
47void gen_addsub(char op, int left, int right); 47void gen_addsub(char op, int left, int right);
48void gen_divstar(char op, int left, int right); 48void gen_divstar(char op, int left, int right);
49 49
50int gen_signed_expr(char op, int type); 50int gen_signed_expr(char op, Type type);
51int gen_negate_expr(int type); 51int gen_negate_expr(Type type);
52int gen_value(const char ident[], Scope scope); 52int gen_value(const char ident[], Scope scope);
53 53
54int gen_num(int value, Scope scope); 54int gen_num(int value, Scope scope);