ports/www/htmlcxx/files/patch-css_syntax.y
Antoine Brodin a32054e27e Allow building with bison 3
PR:		ports/194680
2014-11-30 11:20:35 +00:00

30 lines
557 B
Text

--- css/css_syntax.y.orig 2011-02-13 22:24:53 UTC
+++ css/css_syntax.y
@@ -1,16 +1,17 @@
%{
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
#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