Bug fix in old-style/new-style mixing
This commit is contained in:
		
							parent
							
								
									a8b2fae0da
								
							
						
					
					
						commit
						661597162d
					
				
					 2 changed files with 9 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -487,10 +487,14 @@ check_pseudoproto(pl, opl, diag)
 | 
			
		|||
		return 0;
 | 
			
		||||
	}
 | 
			
		||||
	if (opl->pl_flag & PL_VOID) {
 | 
			
		||||
		if (diag && !(pl->pl_flag & PL_VOID))
 | 
			
		||||
		if (!(pl->pl_flag & PL_VOID)) {
 | 
			
		||||
			if (diag) {
 | 
			
		||||
				strict("function is defined without parameters");
 | 
			
		||||
			}
 | 
			
		||||
			return 0;
 | 
			
		||||
		}
 | 
			
		||||
		return 1;
 | 
			
		||||
	}
 | 
			
		||||
	while (pl && opl) {
 | 
			
		||||
	    if (!equal_type(pl->pl_type, opl->pl_type, -1, diag)) {
 | 
			
		||||
		if (diag) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -177,6 +177,8 @@ make_macros:	Makefile
 | 
			
		|||
		echo 'COPTIONS=$(COPTIONS)' >> make_macros
 | 
			
		||||
		echo 'LDOPTIONS=$(LDOPTIONS)' >> make_macros
 | 
			
		||||
		echo 'LINT=$(LINT)' >> make_macros
 | 
			
		||||
		echo 'LINTSUF=$(LINTSUF)' >> make_macros
 | 
			
		||||
		echo 'LINTPREF=$(LINTPREF)' >> make_macros
 | 
			
		||||
		echo 'LINTOPTIONS=$(LINTOPTIONS)' >> make_macros
 | 
			
		||||
		echo 'SUF=$(SUF)' >> make_macros
 | 
			
		||||
		echo 'LIBSUF=$(LIBSUF)' >> make_macros
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue