From 28470ad934c1af3cf82ee1237d920fd999b9587d Mon Sep 17 00:00:00 2001 From: Jung-uk Kim Date: Mon, 13 Nov 2017 22:28:46 +0000 Subject: [PATCH] Update the previous build fix for arm. This patch is more correct and simpler. --- .../files/patch-source_compiler_aslsupport.l | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/sysutils/acpica-tools/files/patch-source_compiler_aslsupport.l b/sysutils/acpica-tools/files/patch-source_compiler_aslsupport.l index 54e518d87538..9fa34be0cb3a 100644 --- a/sysutils/acpica-tools/files/patch-source_compiler_aslsupport.l +++ b/sysutils/acpica-tools/files/patch-source_compiler_aslsupport.l @@ -1,26 +1,23 @@ ---- source/compiler/aslsupport.l.orig 2017-09-29 15:34:59 UTC +--- source/compiler/aslsupport.l.orig 2017-11-10 16:05:28 UTC +++ source/compiler/aslsupport.l @@ -525,7 +525,7 @@ static void count ( int Type) { - int i; -+ int c, i; ++ char *p; switch (Type) -@@ -547,10 +547,12 @@ count ( +@@ -547,9 +547,9 @@ count ( break; } - for (i = 0; (yytext[i] != 0) && (yytext[i] != EOF); i++) -+ i = 0; -+ while ((c = yytext[i]) != 0 && c != EOF) ++ for (p = yytext; *p != '\0'; p++) { - AslInsertLineBuffer (yytext[i]); -+ AslInsertLineBuffer (c); ++ AslInsertLineBuffer (*p); *Gbl_LineBufPtr = 0; -+ i++; } } -