From 4664d87d6a469924bf22ba487f85fd1013d407a8 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Thu, 31 Dec 2020 16:58:27 +0000 Subject: [PATCH] scripts/kernel-functions: Apply the yylloc patch also to scripts/dtc/dtc-lexer.lex.c_shipped git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9306 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scripts/kernel-functions | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/scripts/kernel-functions b/scripts/kernel-functions index e34e43bcf..81dbd7e19 100644 --- a/scripts/kernel-functions +++ b/scripts/kernel-functions @@ -722,6 +722,18 @@ index 5c6c3fd557d7..b3b7270300de 100644 #include "srcpos.h" #include "dtc-parser.tab.h" +-YYLTYPE yylloc; + extern bool treesource_error; + + /* CAUTION: this will stop working if we ever use yyless() or yyunput() */ +diff --git a/scripts/dtc/dtc-lexer.lex.c_shipped b/scripts/dtc/dtc-lexer.lex.c_shipped +index 5c6c3fd557d7..b3b7270300de 100644 +--- a/scripts/dtc/dtc-lexer.lex.c_shipped ++++ b/scripts/dtc/dtc-lexer.lex.c_shipped +@@ -23,7 +23,6 @@ LINECOMMENT "//".*\n + #include "srcpos.h" + #include "dtc-parser.tab.h" + -YYLTYPE yylloc; extern bool treesource_error;