-
Notifications
You must be signed in to change notification settings - Fork 119
Expand file tree
/
Copy path018.yylloc.patch
More file actions
executable file
·32 lines (26 loc) · 1020 Bytes
/
Copy path018.yylloc.patch
File metadata and controls
executable file
·32 lines (26 loc) · 1020 Bytes
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
31
32
commit 32ace01940d8fb26f809171c6bc9846fb6810181
Author: Ravindu Deshan <Droidcasts@protonmail.com>
Date: Fri Sep 20 05:55:05 2024 +0000
Fix: multiple definition of 'yylloc'
diff --git a/scripts/dtc/dtc-lexer.l b/scripts/dtc/dtc-lexer.l
index c60060304..bc40a01f7 100755
--- a/scripts/dtc/dtc-lexer.l
+++ b/scripts/dtc/dtc-lexer.l
@@ -38,7 +38,7 @@ LINECOMMENT "//".*\n
#include "srcpos.h"
#include "dtc-parser.tab.h"
-YYLTYPE yylloc;
+extern 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 e0835ad4a..34d349e9a 100755
--- a/scripts/dtc/dtc-lexer.lex.c_shipped
+++ b/scripts/dtc/dtc-lexer.lex.c_shipped
@@ -646,7 +646,7 @@ char *yytext;
#include "srcpos.h"
#include "dtc-parser.tab.h"
-YYLTYPE yylloc;
+extern YYLTYPE yylloc;
extern bool treesource_error;
/* CAUTION: this will stop working if we ever use yyless() or yyunput() */