+ Better type checking in function tables.

This commit is contained in:
carl 2019-03-02 01:41:01 +08:00
parent 3867cfdaca
commit 8f6073d446
2 changed files with 3 additions and 3 deletions

View file

@ -1383,7 +1383,7 @@ int (*ExprChkTable[])(struct node*) =
NodeCrash
};
int (*VarAccChkTable[])() =
int (*VarAccChkTable[])(struct node*) =
{
no_var_access,
ChkLinkOrName,

View 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
*/