From a32054e27e48a43f510d8492e6b3576631d7f78b Mon Sep 17 00:00:00 2001 From: Antoine Brodin Date: Sun, 30 Nov 2014 11:20:35 +0000 Subject: Allow building with bison 3 PR: ports/194680 --- www/htmlcxx/files/patch-css_syntax.y | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) (limited to 'www/htmlcxx/files/patch-css_syntax.y') diff --git a/www/htmlcxx/files/patch-css_syntax.y b/www/htmlcxx/files/patch-css_syntax.y index e3c6863cf777..143e76298f83 100644 --- a/www/htmlcxx/files/patch-css_syntax.y +++ b/www/htmlcxx/files/patch-css_syntax.y @@ -1,9 +1,30 @@ ---- css/css_syntax.y.orig 2012-09-19 15:27:03.000000000 +0800 -+++ css/css_syntax.y 2012-09-19 15:28:12.000000000 +0800 -@@ -1,5 +1,6 @@ +--- css/css_syntax.y.orig 2011-02-13 22:24:53 UTC ++++ css/css_syntax.y +@@ -1,16 +1,17 @@ %{ #include +#include #include #include "css_lex.h" #include "parser.h" + +-#define YYPARSE_PARAM yyparam + #define YYERROR_VERBOSE 1 + //#define YYDEBUG 1 + + %} + + %pure_parser ++%parse-param { struct selector_list_t **yyparam } + + %union { + char *lexeme; +@@ -571,7 +572,7 @@ hexcolor + + %% + +-int yyerror(char *s) { ++int yyerror(struct selector_list_t **yyparam, char *s) { + #if YYDEBUG + fprintf(stderr, "Error: %s\n", s); + #endif -- cgit v1.2.3