(unexpand): Don't assume that isprint etc. return
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 9 Jul 2006 17:05:13 +0000 (17:05 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 9 Jul 2006 17:05:13 +0000 (17:05 +0000)
booleans (needed for pre-C99 hosts).

src/unexpand.c

index d22aead..cbceca0 100644 (file)
@@ -176,7 +176,7 @@ parse_tab_stops (char const *stops)
 
   for (; *stops; stops++)
     {
-      if (*stops == ',' || ISBLANK (to_uchar (*stops)))
+      if (*stops == ',' || isblank (to_uchar (*stops)))
        {
          if (have_tabval)
            add_tab_stop (tabval);
@@ -348,7 +348,7 @@ unexpand (void)
 
          if (convert)
            {
-             bool blank = ISBLANK (c);
+             bool blank = !! isblank (c);
 
              if (blank)
                {