]> git.saurik.com Git - bison.git/commitdiff
* data/push.c (yypush_parse): Declare prototype regardless of
authorJoel E. Denny <jdenny@ces.clemson.edu>
Fri, 15 Dec 2006 03:36:22 +0000 (03:36 +0000)
committerJoel E. Denny <jdenny@ces.clemson.edu>
Fri, 15 Dec 2006 03:36:22 +0000 (03:36 +0000)
%locations option.

ChangeLog
data/push.c

index 21e9365fad91a48f8d51ca24e60c41f4b4548f61..cc3a5b00d00503460797488a49b8c154a0420908 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-12-14  Bob Rossi  <bob@brasko.net>
+
+       * data/push.c (yypush_parse): Declare prototype regardless of
+       %locations option.
+
 2006-12-14  Bob Rossi  <bob@brasko.net>
 
        * data/push.c (yyparse): Remove the prototype and the #define when in
 2006-12-14  Bob Rossi  <bob@brasko.net>
 
        * data/push.c (yyparse): Remove the prototype and the #define when in
index 2740efe9c12171d8428aac5d7eae3d93448b1eda..07069a4f75f82e2c666256afc756112eaffe0e1b 100644 (file)
@@ -1685,6 +1685,10 @@ typedef struct YYLTYPE
 # define YYLTYPE_IS_TRIVIAL 1
 #endif
 
 # define YYLTYPE_IS_TRIVIAL 1
 #endif
 
+]b4_pure_if([],
+          [extern YYLTYPE b4_prefix[]lloc;])
+)dnl b4_locations_if
+
 ]b4_push_if([struct ]b4_prefix[pstate;
 ]b4_c_function_decl([]b4_prefix[pstate_new], [struct ]b4_prefix[pstate *],
                     [[void], []])[
 ]b4_push_if([struct ]b4_prefix[pstate;
 ]b4_c_function_decl([]b4_prefix[pstate_new], [struct ]b4_prefix[pstate *],
                     [[void], []])[
@@ -1696,9 +1700,6 @@ typedef struct YYLTYPE
    [[YYSTYPE const *yynlval], [yynlval]]
    b4_locations_if([,[[YYLTYPE const *yynlloc], [yynlloc]]]))[
 enum { YYPUSH_MORE = 4 };])[
    [[YYSTYPE const *yynlval], [yynlval]]
    b4_locations_if([,[[YYLTYPE const *yynlloc], [yynlloc]]]))[
 enum { YYPUSH_MORE = 4 };])[
-]b4_pure_if([],
-          [extern YYLTYPE b4_prefix[]lloc;])
-)dnl b4_locations_if
 
 m4_ifdef([b4_provides],
 [[/* Copy the %provides blocks.  */
 
 m4_ifdef([b4_provides],
 [[/* Copy the %provides blocks.  */