From 16ca01f9bffa7d0e166fe1a9c620d447b6a88a22 Mon Sep 17 00:00:00 2001 From: "Joel E. Denny" Date: Fri, 15 Dec 2006 03:36:22 +0000 Subject: [PATCH] * data/push.c (yypush_parse): Declare prototype regardless of %locations option. --- ChangeLog | 5 +++++ data/push.c | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 21e9365f..cc3a5b00 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-12-14 Bob Rossi + + * data/push.c (yypush_parse): Declare prototype regardless of + %locations option. + 2006-12-14 Bob Rossi * data/push.c (yyparse): Remove the prototype and the #define when in diff --git a/data/push.c b/data/push.c index 2740efe9..07069a4f 100644 --- a/data/push.c +++ b/data/push.c @@ -1685,6 +1685,10 @@ typedef struct YYLTYPE # 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], []])[ @@ -1696,9 +1700,6 @@ typedef struct YYLTYPE [[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. */ -- 2.50.0