* src/dircolors.c: Include c-ctype.h, not ctype.h.
(parse_line): Use c_isspace, not isspace, as the .dircolors
file format (which does not seem to be documented!) appears
to be ASCII.
#include <config.h>
-#include <ctype.h>
#include <sys/types.h>
#include <fnmatch.h>
#include <getopt.h>
#include "system.h"
#include "dircolors.h"
+#include "c-ctype.h"
#include "c-strcase.h"
#include "obstack.h"
#include "quote.h"
*keyword = nullptr;
*arg = nullptr;
- for (p = line; isspace (to_uchar (*p)); ++p)
+ for (p = line; c_isspace (to_uchar (*p)); ++p)
continue;
/* Ignore blank lines and shell-style comments. */
keyword_start = p;
- while (!isspace (to_uchar (*p)) && *p != '\0')
+ while (!c_isspace (to_uchar (*p)) && *p != '\0')
{
++p;
}
{
++p;
}
- while (isspace (to_uchar (*p)));
+ while (c_isspace (to_uchar (*p)));
if (*p == '\0' || *p == '#')
return;
while (*p != '\0' && *p != '#')
++p;
- for (--p; isspace (to_uchar (*p)); --p)
+ for (--p; c_isspace (to_uchar (*p)); --p)
continue;
++p;