diff --git a/util/ceg/EM_parser/common/action.c b/util/ceg/EM_parser/common/action.c index c13617470..f13af78cc 100644 --- a/util/ceg/EM_parser/common/action.c +++ b/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 *)); } diff --git a/util/ceg/EM_parser/common/mylex.c b/util/ceg/EM_parser/common/mylex.c index 140478380..d8d01bee0 100644 --- a/util/ceg/EM_parser/common/mylex.c +++ b/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')