blob: 143e76298f83c80318ce2c5ecf327d8992685fcc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
--- 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
|