From 8f6dd273479bdc7789d40a235b0afb6598fd0435 Mon Sep 17 00:00:00 2001 From: pacien Date: Tue, 5 Jun 2018 13:41:13 +0200 Subject: Handle func return --- src/generator.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/generator.h') 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; void gen_prologue(); void gen_prologue_continue(int *bss_done); void gen_const_declaration(); -void gen_function_declaration(const char name[], int return_type, int nb_param); +Type gen_function_declaration(const char name[], int return_type, int nb_param); void gen_function_end_declaration(); +void gen_function_return(Type expect, Type actual); int gen_function_call(const char name[], int nb_param); void gen_declaration(const char name[], int type, Scope scope); void gen_check(const char name[], Scope scope); -- cgit v1.2.3