#include <io.h>
#include <errno.h>
#include <fcntl.h>
-#include <ctype.h>
#include <signal.h>
#include <sys/file.h>
#include <time.h> /* must be before nt/inc/sys/time.h, for MinGW64 */
#include <wincrypt.h>
+#include <c-ctype.h>
#include <c-strcase.h>
#include <utimens.h> /* for fdutimens */
return 0;
/* find the root name of the volume if given */
- if (isalpha (name[0]) && name[1] == ':')
+ if (c_isalpha (name[0]) && name[1] == ':')
{
/* skip past drive specifier */
name += 2;
at least for non-local drives. Info for fixed drives is never stale. */
#define DRIVE_INDEX( c ) ( (c) <= 'Z' ? (c) - 'A' : (c) - 'a' )
#define VOLINFO_STILL_VALID( root_dir, info ) \
- ( ( isalpha (root_dir[0]) && \
+ ( ( c_isalpha (root_dir[0]) && \
fixed_drives[ DRIVE_INDEX (root_dir[0]) ] ) \
|| GetTickCount () - info->timestamp < 10000 )
involve network access, and so is extremely quick). */
/* Map drive letter to UNC if remote. */
- if (isalpha (root_dir[0]) && !fixed[DRIVE_INDEX (root_dir[0])])
+ if (c_isalpha (root_dir[0]) && !fixed[DRIVE_INDEX (root_dir[0])])
{
char remote_name[ 256 ];
char drive[3] = { root_dir[0], ':' };
default:
if ( left && 'A' <= c && c <= 'Z' )
{
- *str++ = tolower (c); /* map to lower case (looks nicer) */
+ *str++ = c_tolower (c); /* map to lower case (looks nicer) */
left--;
- dots = 0; /* started a path component */
+ dots = 0; /* started a path component */
}
break;
}
{
int len = strlen (colorname);
- if (isdigit (colorname[len - 1]))
+ if (c_isdigit (colorname[len - 1]))
{
char *ptr, *approx = alloca (len + 1);
strcpy (approx, colorname);
ptr = &approx[len - 1];
- while (ptr > approx && isdigit (*ptr))
+ while (ptr > approx && c_isdigit (*ptr))
*ptr-- = '\0';
ret = w32_color_map_lookup (approx);
message that has no particular effect. */
{
int c = wParam;
- if (isalpha (c) && wmsg.dwModifiers == ctrl_modifier)
+ if (c_isalpha (c) && wmsg.dwModifiers == ctrl_modifier)
c = make_ctrl_char (c) & 0377;
if (c == quit_char
|| (wmsg.dwModifiers == 0
|| (key[0] >= '0' && key[0] <= '9'))
return key[0];
if (key[0] >= 'a' && key[0] <= 'z')
- return toupper(key[0]);
+ return c_toupper (key[0]);
}
}
BOOL result;
/* find the root name of the volume if given */
- if (isalpha (name[0]) && name[1] == ':')
+ if (c_isalpha (name[0]) && name[1] == ':')
{
rootname[0] = name[0];
rootname[1] = name[1];