]> git.pld-linux.org Git - packages/crossppc-binutils.git/commitdiff
- fixed for binutils 2.14.90.x (get_line must return last char, not flag) auto/ac/binutils-2_14_90_0_6-2
authorJakub Bogusz <qboosh@pld-linux.org>
Thu, 17 Jul 2003 13:37:50 +0000 (13:37 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    binutils-gasp.patch -> 1.2

binutils-gasp.patch

index 7a477eddba0e2df65183adac3fd2cca524e0b118..9bdcb1f2d9669b44135ee2799a2535d018f92336 100644 (file)
@@ -2656,7 +2656,7 @@ diff -Nur binutils-2.13.90.0.18.orig/gas/gasp.c binutils-2.13.90.0.18/gas/gasp.c
 +     sb *in;
 +{
 +  int online = 0;
-+  int more = 1;
++  int more = 1, ch = 0;
 +
 +  if (copysource)
 +    {
@@ -2667,7 +2667,7 @@ diff -Nur binutils-2.13.90.0.18.orig/gas/gasp.c binutils-2.13.90.0.18/gas/gasp.c
 +
 +  while (1)
 +    {
-+      int ch = get ();
++      ch = get ();
 +
 +      while (ch == '\r')
 +      ch = get ();
@@ -2709,7 +2709,7 @@ diff -Nur binutils-2.13.90.0.18.orig/gas/gasp.c binutils-2.13.90.0.18/gas/gasp.c
 +          {
 +            if (ch != EOF)
 +              unget (ch);
-+            break;
++            ch = '\n'; break;
 +          }
 +      }
 +      else
@@ -2719,7 +2719,7 @@ diff -Nur binutils-2.13.90.0.18.orig/gas/gasp.c binutils-2.13.90.0.18/gas/gasp.c
 +      online++;
 +    }
 +
-+  return more;
++  return more ? ch : 0;
 +}
 +
 +/* Find a label from sb in and put it in out.  */
This page took 0.067169 seconds and 4 git commands to generate.