Update the previous build fix for arm.
This patch is more correct and simpler.
This commit is contained in:
parent
fe46600d7f
commit
28470ad934
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=454157
@ -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++;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user