1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-06 06:20:55 -08:00

Use c-ctype.h in lib-src

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.
This commit is contained in:
Paul Eggert 2024-09-17 16:54:17 -07:00
parent e0b027d121
commit 865b54e2ac
3 changed files with 10 additions and 10 deletions

View file

@ -68,7 +68,6 @@ char *w32_getenv (const char *);
#define DEFAULT_TIMEOUT (30)
#include <ctype.h>
#include <errno.h>
#include <getopt.h>
#include <inttypes.h>
@ -83,6 +82,7 @@ char *w32_getenv (const char *);
#include <unistd.h>
#include <attribute.h>
#include <c-ctype.h>
#include <filename.h>
#include <intprops.h>
#include <min-max.h>
@ -2124,7 +2124,7 @@ main (int argc, char **argv)
unsigned char c;
do
c = *++p;
while (isdigit (c) || c == ':');
while (c_isdigit (c) || c == ':');
if (c == 0)
{
@ -2136,7 +2136,7 @@ main (int argc, char **argv)
}
#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.