svn commit: r454157 - head/sysutils/acpica-tools/files

Jung-uk Kim jkim at FreeBSD.org
Mon Nov 13 22:28:48 UTC 2017


Author: jkim
Date: Mon Nov 13 22:28:46 2017
New Revision: 454157
URL: https://svnweb.freebsd.org/changeset/ports/454157

Log:
  Update the previous build fix for arm.
  
  This patch is more correct and simpler.

Modified:
  head/sysutils/acpica-tools/files/patch-source_compiler_aslsupport.l

Modified: head/sysutils/acpica-tools/files/patch-source_compiler_aslsupport.l
==============================================================================
--- head/sysutils/acpica-tools/files/patch-source_compiler_aslsupport.l	Mon Nov 13 22:25:07 2017	(r454156)
+++ head/sysutils/acpica-tools/files/patch-source_compiler_aslsupport.l	Mon Nov 13 22:28:46 2017	(r454157)
@@ -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++;
      }
  }
- 


More information about the svn-ports-all mailing list