This fixes some unlikely bugs and removes the temptation
of using ctype.h. Although some uses were correct,
many weren't.
* lib-src/ebrowse.c: Include c-ctype.h, not ctype.h.
* lib-src/emacsclient.c: Include c-ctype.h, not ctype.h.
* lib-src/update-game-score.c: Include c-ctype.h, not ctype.h.
All uses changed.
(cherry picked from commit
865b54e2acea4fdaa3f302ed225f50281b371d6e)
#define DEFAULT_TIMEOUT (30)
-#include <ctype.h>
#include <errno.h>
#include <getopt.h>
#include <inttypes.h>
#include <unistd.h>
#include <attribute.h>
+#include <c-ctype.h>
#include <filename.h>
#include <intprops.h>
#include <min-max.h>
unsigned char c;
do
c = *++p;
- while (isdigit (c) || c == ':');
+ while (c_isdigit (c) || c == ':');
if (c == 0)
{
}
#ifdef WINDOWSNT
else if (! IS_ABSOLUTE_FILE_NAME (argv[i])
- && (isalpha (argv[i][0]) && argv[i][1] == ':'))
+ && (c_isalpha (argv[i][0]) && argv[i][1] == ':'))
/* Windows can have a different default directory for each
drive, so the cwd passed via "-dir" is not sufficient
to account for that.
#include <stdlib.h>
#include <time.h>
#include <pwd.h>
-#include <ctype.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <getopt.h>
+#include <c-ctype.h>
#include <unlocked-io.h>
#ifdef WINDOWSNT
{
bool neg;
char *p;
- while (*num != '\n' && isspace (*num))
+ while (*num != '\n' && c_isspace (*num))
num++;
neg = *num == '-';
num += neg || *num == '-';