From 3134c0f655d80bac47be7c4bfb928bc8975ed6ea Mon Sep 17 00:00:00 2001 From: Tucker Evans Date: Sat, 28 Sep 2019 23:03:06 -0400 Subject: Add check for read/write function in check_call Read/write should take arguments of any type, almost funcition overloading, at this point theses are the only fuctions to do this and as such a special case is added to check_call. --- sem_check.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sem_check.c b/sem_check.c index af97507..77803e1 100644 --- a/sem_check.c +++ b/sem_check.c @@ -189,6 +189,9 @@ ptree *t; if (!(t->l && t->l->attr.nval && t->l->attr.nval->func_info)) yyerror("Incorrect Call Tree\n"); + if (!(strcmp(t->l->attr.nval->name, "write") && strcmp(t->l->attr.nval->name, "read"))) + return; + argc = t->l->attr.nval->func_info->argc; if (t->l->attr.nval->func_info->argc != count_args(t->r)) /*TODO add info about expected argument count*/ -- cgit v1.1