[lasem/lasem-0-4] build: fix build with bison 3.0



commit 2b4ea3cb1c7229de5e1f2e739fba30465aed1ea0
Author: Dominique Leuenberger <dominique-gnomezilla leuenberger net>
Date:   Sat Jan 17 23:57:22 2015 +0100

    build: fix build with bison 3.0
    
    Patch based on abiword's fix.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=742867
    http://bugzilla.abisource.com/show_bug.cgi?id=13593

 itex2mml/itex2MML.y |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/itex2mml/itex2MML.y b/itex2mml/itex2MML.y
index 4e70786..b07e233 100644
--- a/itex2mml/itex2MML.y
+++ b/itex2mml/itex2MML.y
@@ -2,6 +2,8 @@
  *   itex2MML.y last modified 10/2/2010
  */
 
+%parse-param {char **ret_str}
+
 %{
 #include <stdio.h>
 #include <string.h>
@@ -27,7 +29,7 @@
 
  void (*itex2MML_error) (const char * msg) = itex2MML_default_error;
 
- static void yyerror (const char * s)
+ static void yyerror (char **ret_str, const char * s)
    {
      char * msg = itex2MML_copy3 (s, " at token ", yytext);
      if (itex2MML_error)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]