parlay

yet another gentoo overlay
git clone https://git.parazyd.org/parlay
Log | Files | Refs | README

ptlib-2.10.10-mga-bison-parameter.patch (820B)


      1 --- ptlib-2.10.11/./src/ptlib/common/getdate.y	2013-08-15 01:20:26.000000000 +0200
      2 +++ /mnt/chroot/cauldron/home/dan/rpm/BUILD/ptlib-2.10.11/src/ptlib/common/getdate.y	2013-12-15 00:24:27.866481490 +0100
      3 @@ -121,9 +121,9 @@
      4  static int yylex();
      5  
      6  #ifdef __GNUC__
      7 -static int yyerror(char const *msg);
      8 +static int yyerror(void *, char const *msg);
      9  #else
     10 -static void yyerror(char const *msg);
     11 +static void yyerror(void *, char const *msg);
     12  #endif
     13  
     14  
     15 @@ -132,7 +132,8 @@
     16  
     17  %}
     18  
     19 -%pure_parser
     20 +%pure-parser
     21 +%parse-param {void *parseParam}
     22  
     23  %union {
     24      time_t		Number;
     25 @@ -1018,12 +1019,12 @@
     26  #endif
     27  
     28  #ifdef __GNUC__
     29 -int yyerror(const char * s)
     30 +int yyerror(void *var, const char * s)
     31  {
     32    return 0;
     33  }
     34  #else
     35 -static void yyerror(const char * s)
     36 +static void yyerror(void *var, const char * s)
     37  {
     38  }
     39  #endif