a few minor fixes
This commit is contained in:
		
							parent
							
								
									237fb752e5
								
							
						
					
					
						commit
						82bad86ee6
					
				
					 2 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -429,7 +429,7 @@ equal_type(tp, otp, qual_lev, diag)
 | 
			
		|||
	}
 | 
			
		||||
 | 
			
		||||
	if (qual_lev >= 0 && tp->tp_typequal != otp->tp_typequal) {
 | 
			
		||||
		strict("illegal qualifiers");
 | 
			
		||||
		strict("missing or illegal qualifiers");
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	switch (tp->tp_fund) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -356,6 +356,9 @@ formal(struct formal **fmp;)
 | 
			
		|||
		new->fm_idf = idf;
 | 
			
		||||
		new->next = *fmp;
 | 
			
		||||
		*fmp = new;
 | 
			
		||||
		if (idef->id_def && idef->id_def->df_sc == TYPEDEF) {
 | 
			
		||||
			error("typedef name %s may not be redeclared as a parameter", idf->id_text);
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue