aboutsummaryrefslogtreecommitdiff
path: root/src/generator.h
diff options
context:
space:
mode:
authorpacien2018-06-05 13:41:13 +0200
committerpacien2018-06-05 13:41:13 +0200
commit8f6dd273479bdc7789d40a235b0afb6598fd0435 (patch)
tree3f30d4b2869e3460a587ab9e7708afe4a8cacca7 /src/generator.h
parent7a966d25b34f4bd37f32a18f7e8a62b6f97186e6 (diff)
downloadtpc-compiler-8f6dd273479bdc7789d40a235b0afb6598fd0435.tar.gz
Handle func return
Diffstat (limited to 'src/generator.h')
-rw-r--r--src/generator.h3
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;
19void gen_prologue(); 19void gen_prologue();
20void gen_prologue_continue(int *bss_done); 20void gen_prologue_continue(int *bss_done);
21void gen_const_declaration(); 21void gen_const_declaration();
22void gen_function_declaration(const char name[], int return_type, int nb_param); 22Type gen_function_declaration(const char name[], int return_type, int nb_param);
23void gen_function_end_declaration(); 23void gen_function_end_declaration();
24void gen_function_return(Type expect, Type actual);
24int gen_function_call(const char name[], int nb_param); 25int gen_function_call(const char name[], int nb_param);
25void gen_declaration(const char name[], int type, Scope scope); 26void gen_declaration(const char name[], int type, Scope scope);
26void gen_check(const char name[], Scope scope); 27void gen_check(const char name[], Scope scope);