Переглянути джерело

Fixed some minor problems

ceriel 30 роки тому
батько
коміт
9bc6c9ef36

+ 1 - 1
util/ceg/EM_parser/common/action.c

@@ -36,7 +36,7 @@ char *instr;
 {
 	if ( nr_instr == quantum) {
 		quantum *= 2;
-		as_instructions = (char **) Realloc( as_instructions,
+		as_instructions = (char **) Realloc( (char *) as_instructions,
 					   quantum*sizeof( char *));
 	}
 

+ 4 - 2
util/ceg/EM_parser/common/mylex.c

@@ -44,10 +44,12 @@ int CALL_pos = FALSE;	/* Needed to distinguish between
 			 */
 
 
+static char skip_space();
+static read_string();
 
 int mylex()
 {
-	char c, skip_space();
+	char c;
 
 	static int special = FALSE;	/* rule with conditions + default ? */
 
@@ -188,7 +190,7 @@ int arrow() /* '==>' */
 
 int _default() /* 'default' */
 {
-	char c, skip_space();
+	char c;
 
 	if ( ( *next++ = scanc()) == 'e')
 	    if ( ( *next++ = scanc()) == 'f')