[vlc-commits] bison: define YYEOF token explicitly

Rémi Denis-Courmont git at videolan.org
Sun Sep 27 21:51:08 CEST 2020


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Sep 27 22:50:18 2020 +0300| [d20f1a2dd70c8cfdf50f9a80cd009b63e9e9b126] | committer: Rémi Denis-Courmont

bison: define YYEOF token explicitly

Older generator versions don't define it automatically.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d20f1a2dd70c8cfdf50f9a80cd009b63e9e9b126
---

 modules/demux/json/grammar.y | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/demux/json/grammar.y b/modules/demux/json/grammar.y
index 8d83f9a40b..bf5f863eea 100644
--- a/modules/demux/json/grammar.y
+++ b/modules/demux/json/grammar.y
@@ -131,6 +131,7 @@ static void json_append(struct json_object *o, struct json_member m)
 	struct json_object object;
 }
 
+%token YYEOF 0
 %token VALUE_NULL
 %token <boolean> BOOLEAN
 %token <number> NUMBER



More information about the vlc-commits mailing list