* ch-exp.y (write_lower_upper_value): Add prototype so bison
generated parser will insert prototype before first func usage. Bison and byacc order the output sections differently. Also make function static.
This commit is contained in:
parent
81597186be
commit
ef8e137ced
@ -115,6 +115,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
|||||||
#define YYDEBUG 0 /* Default to no yydebug support */
|
#define YYDEBUG 0 /* Default to no yydebug support */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
static void
|
||||||
|
write_lower_upper_value PARAMS ((enum exp_opcode, struct type *type));
|
||||||
|
|
||||||
int
|
int
|
||||||
yyparse PARAMS ((void));
|
yyparse PARAMS ((void));
|
||||||
|
|
||||||
@ -1781,7 +1784,7 @@ yylex ()
|
|||||||
return (ILLEGAL_TOKEN);
|
return (ILLEGAL_TOKEN);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
write_lower_upper_value (opcode, type)
|
write_lower_upper_value (opcode, type)
|
||||||
enum exp_opcode opcode; /* Either UNOP_LOWER or UNOP_UPPER */
|
enum exp_opcode opcode; /* Either UNOP_LOWER or UNOP_UPPER */
|
||||||
struct type *type;
|
struct type *type;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user