diff options
author | pacien | 2018-06-05 13:41:13 +0200 |
---|---|---|
committer | pacien | 2018-06-05 13:41:13 +0200 |
commit | 8f6dd273479bdc7789d40a235b0afb6598fd0435 (patch) | |
tree | 3f30d4b2869e3460a587ab9e7708afe4a8cacca7 /src/generator.h | |
parent | 7a966d25b34f4bd37f32a18f7e8a62b6f97186e6 (diff) | |
download | tpc-compiler-8f6dd273479bdc7789d40a235b0afb6598fd0435.tar.gz |
Handle func return
Diffstat (limited to 'src/generator.h')
-rw-r--r-- | src/generator.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/generator.h b/src/generator.h index 939ab13..205fc01 100644 --- a/src/generator.h +++ b/src/generator.h | |||
@@ -19,8 +19,9 @@ FILE *output; | |||
19 | void gen_prologue(); | 19 | void gen_prologue(); |
20 | void gen_prologue_continue(int *bss_done); | 20 | void gen_prologue_continue(int *bss_done); |
21 | void gen_const_declaration(); | 21 | void gen_const_declaration(); |
22 | void gen_function_declaration(const char name[], int return_type, int nb_param); | 22 | Type gen_function_declaration(const char name[], int return_type, int nb_param); |
23 | void gen_function_end_declaration(); | 23 | void gen_function_end_declaration(); |
24 | void gen_function_return(Type expect, Type actual); | ||
24 | int gen_function_call(const char name[], int nb_param); | 25 | int gen_function_call(const char name[], int nb_param); |
25 | void gen_declaration(const char name[], int type, Scope scope); | 26 | void gen_declaration(const char name[], int type, Scope scope); |
26 | void gen_check(const char name[], Scope scope); | 27 | void gen_check(const char name[], Scope scope); |