Fixed some minor problems
This commit is contained in:
		
							parent
							
								
									a4a2ae8f96
								
							
						
					
					
						commit
						49f8a5a61b
					
				
					 2 changed files with 5 additions and 3 deletions
				
			
		|  | @ -36,7 +36,7 @@ char *instr; | ||||||
| { | { | ||||||
| 	if ( nr_instr == quantum) { | 	if ( nr_instr == quantum) { | ||||||
| 		quantum *= 2; | 		quantum *= 2; | ||||||
| 		as_instructions = (char **) Realloc( as_instructions, | 		as_instructions = (char **) Realloc( (char *) as_instructions, | ||||||
| 					   quantum*sizeof( char *)); | 					   quantum*sizeof( char *)); | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -44,10 +44,12 @@ int CALL_pos = FALSE;	/* Needed to distinguish between | ||||||
| 			 */ | 			 */ | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | static char skip_space(); | ||||||
|  | static read_string(); | ||||||
| 
 | 
 | ||||||
| int mylex() | int mylex() | ||||||
| { | { | ||||||
| 	char c, skip_space(); | 	char c; | ||||||
| 
 | 
 | ||||||
| 	static int special = FALSE;	/* rule with conditions + default ? */ | 	static int special = FALSE;	/* rule with conditions + default ? */ | ||||||
| 
 | 
 | ||||||
|  | @ -188,7 +190,7 @@ int arrow() /* '==>' */ | ||||||
| 
 | 
 | ||||||
| int _default() /* 'default' */ | int _default() /* 'default' */ | ||||||
| { | { | ||||||
| 	char c, skip_space(); | 	char c; | ||||||
| 
 | 
 | ||||||
| 	if ( ( *next++ = scanc()) == 'e') | 	if ( ( *next++ = scanc()) == 'e') | ||||||
| 	    if ( ( *next++ = scanc()) == 'f') | 	    if ( ( *next++ = scanc()) == 'f') | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue