+ Better type checking in function tables.
This commit is contained in:
parent
3867cfdaca
commit
8f6073d446
|
@ -1383,7 +1383,7 @@ int (*ExprChkTable[])(struct node*) =
|
||||||
NodeCrash
|
NodeCrash
|
||||||
};
|
};
|
||||||
|
|
||||||
int (*VarAccChkTable[])() =
|
int (*VarAccChkTable[])(struct node*) =
|
||||||
{
|
{
|
||||||
no_var_access,
|
no_var_access,
|
||||||
ChkLinkOrName,
|
ChkLinkOrName,
|
||||||
|
|
|
@ -2,11 +2,11 @@
|
||||||
|
|
||||||
struct node;
|
struct node;
|
||||||
|
|
||||||
extern int (*ExprChkTable[])(); /* table of expression checking
|
extern int (*ExprChkTable[])(struct node*); /* table of expression checking
|
||||||
functions, indexed by node class
|
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
|
functions, indexed by node class
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue