* ch-exp.y (write_lower_upper_value): Add prototype so bison
authorFred Fish <fnf@specifix.com>
Sat, 5 Aug 1995 01:13:26 +0000 (01:13 +0000)
committerFred Fish <fnf@specifix.com>
Sat, 5 Aug 1995 01:13:26 +0000 (01:13 +0000)
generated parser will insert prototype before first func usage.
Bison and byacc order the output sections differently.  Also
make function static.

gdb/ch-exp.y

index f778b6ac9244746cee13415e392ced9f0848f3e6..f8e9717ce9ee85068fe265382ed641c313d662d3 100644 (file)
@@ -115,6 +115,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 #define        YYDEBUG 0               /* Default to no yydebug support */
 #endif
 
+static void
+write_lower_upper_value PARAMS ((enum exp_opcode, struct type *type));
+
 int
 yyparse PARAMS ((void));
 
@@ -1781,7 +1784,7 @@ yylex ()
     return (ILLEGAL_TOKEN);
 }
 
-void
+static void
 write_lower_upper_value (opcode, type)
      enum exp_opcode opcode;  /* Either UNOP_LOWER or UNOP_UPPER */
      struct type *type;