+ Better type checking in function tables.
authorcarl <cecodere@yahoo.ca>
Fri, 1 Mar 2019 17:41:01 +0000 (01:41 +0800)
committercarl <cecodere@yahoo.ca>
Fri, 1 Mar 2019 17:44:16 +0000 (01:44 +0800)
lang/pc/comp/chk_expr.c
lang/pc/comp/chk_expr.h

index 2d1f124..8a74b52 100644 (file)
@@ -1383,7 +1383,7 @@ int (*ExprChkTable[])(struct node*) =
        NodeCrash
        };
 
-       int (*VarAccChkTable[])() =
+       int (*VarAccChkTable[])(struct node*) =
        {
                no_var_access,
                ChkLinkOrName,
index 396ee8f..77f2999 100644 (file)
@@ -2,11 +2,11 @@
 
 struct node;
 
-extern int     (*ExprChkTable[])();    /* table of expression checking
+extern int     (*ExprChkTable[])(struct node*);        /* table of expression checking
                                           functions, indexed by node class
                                        */
 
-extern int     (*VarAccChkTable[])();  /* table of variable-access checking
+extern int     (*VarAccChkTable[])(struct node*);      /* table of variable-access checking
                                           functions, indexed by node class
                                        */