summarylogtreecommitdiffstats
path: root/0027-Fix-if-defined-XXX-usage-references.patch
diff options
context:
space:
mode:
Diffstat (limited to '0027-Fix-if-defined-XXX-usage-references.patch')
-rw-r--r--0027-Fix-if-defined-XXX-usage-references.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/0027-Fix-if-defined-XXX-usage-references.patch b/0027-Fix-if-defined-XXX-usage-references.patch
new file mode 100644
index 00000000000..a5de23e65ad
--- /dev/null
+++ b/0027-Fix-if-defined-XXX-usage-references.patch
@@ -0,0 +1,25 @@
+From ee87a5bc25b8fd7b85d70239b39f095d76e2c992 Mon Sep 17 00:00:00 2001
+From: litvin <litvindev@gmail.com>
+Date: Tue, 1 Aug 2017 11:04:45 +0300
+Subject: [PATCH 27/33] Fix "#if defined XXX" usage references
+
+---
+ src/yylex.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/yylex.c b/src/yylex.c
+index ae00881..b77b195 100644
+--- a/src/yylex.c
++++ b/src/yylex.c
+@@ -1034,7 +1034,7 @@ int cexpyylex() {
+ if (mm && memb->u.mbody == NULL) mm = 0; // undefined macro
+ assert(s_opt.taskRegime);
+ if (CX_REGIME()) {
+- if (mm) addCxReference(&dd, &pos, UsageUsed,s_noneFileIndex, s_noneFileIndex);
++ if (mm) addCxReference(memb, &pos, UsageUsed,s_noneFileIndex, s_noneFileIndex);
+ }
+ /* following call sets uniyylval */
+ res = cexpTranslateToken(CONSTANT, mm);
+--
+2.18.0
+