From d8a7a9b0ed653ec8061896efc0c8e11b5df6b166 Mon Sep 17 00:00:00 2001 From: Tucker Evans Date: Thu, 5 Sep 2019 10:50:02 -0400 Subject: Add counting of function arguments --- pc.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pc.h') diff --git a/pc.h b/pc.h index e13c481..ea49612 100644 --- a/pc.h +++ b/pc.h @@ -2,6 +2,7 @@ #define PC_H #include "y.tab.h" +#include "tree.h" char* pretty_type(int); @@ -10,4 +11,6 @@ void debug_print(int, union YYSTYPE*); int yyerror(char*); #endif +int count_args(ptree*); + #define DEBUG -- cgit v1.1 From c6d13abfc122c15ecc182b1fc5645628e8eb4d18 Mon Sep 17 00:00:00 2001 From: Tucker Evans Date: Thu, 5 Sep 2019 17:59:44 -0400 Subject: Add function argument types --- pc.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pc.h') diff --git a/pc.h b/pc.h index ea49612..653b720 100644 --- a/pc.h +++ b/pc.h @@ -9,8 +9,9 @@ char* pretty_type(int); void debug_print(int, union YYSTYPE*); int yyerror(char*); -#endif int count_args(ptree*); +int set_func_types(ptree*, int*, int); +#endif #define DEBUG -- cgit v1.1 From 948b0460c9d079e5eff4e6247d35aa946956e4a5 Mon Sep 17 00:00:00 2001 From: Tucker Evans Date: Sun, 8 Sep 2019 21:18:44 -0400 Subject: Add checking types on function call --- pc.h | 1 + 1 file changed, 1 insertion(+) (limited to 'pc.h') diff --git a/pc.h b/pc.h index 653b720..79174f4 100644 --- a/pc.h +++ b/pc.h @@ -12,6 +12,7 @@ int yyerror(char*); int count_args(ptree*); int set_func_types(ptree*, int*, int); +int get_call_types(ptree*, int*, int); #endif #define DEBUG -- cgit v1.1