Skip to content
Snippets Groups Projects
Commit 423a2e3d authored by Abhishek Pandit-Subedi's avatar Abhishek Pandit-Subedi
Browse files

Fix bison 3.7 incompatability

On bison 3.7, YYSTYPE and YYLTYPE don't get defined in the header so
define them directly in the lexer

Bug: 176847256
Tag: #floss
Test: atest --host bluetooth_test_gd
Change-Id: I02b9b615dc6d013efdace733491e7a73c3e1eb69
parent e2009c7d
No related branches found
No related tags found
No related merge requests found
......@@ -7,6 +7,14 @@
#include "declarations.h"
#include "language_y.h"
#ifndef YYSTYPE
#define YYSTYPE yy::parser::semantic_type
#endif
#ifndef YYLTYPE
#define YYLTYPE yy::parser::location_type
#endif
using token = yy::parser::token;
#define YY_USER_ACTION yylloc->step(); yylloc->columns(yyleng);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment