+ Better type checking in function tables.
This commit is contained in:
		
							parent
							
								
									3867cfdaca
								
							
						
					
					
						commit
						8f6073d446
					
				
					 2 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -1383,7 +1383,7 @@ int (*ExprChkTable[])(struct node*) =
 | 
			
		|||
	NodeCrash
 | 
			
		||||
	};
 | 
			
		||||
 | 
			
		||||
	int (*VarAccChkTable[])() =
 | 
			
		||||
	int (*VarAccChkTable[])(struct node*) =
 | 
			
		||||
	{
 | 
			
		||||
		no_var_access,
 | 
			
		||||
		ChkLinkOrName,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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
 | 
			
		||||
					*/
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue