git/sane-ctype.h

#ifndef SANE_CTYPE_H
#define SANE_CTYPE_H

/* Sane ctype - no locale, and works with signed chars */
#undef isascii
#undef isspace
#undef isdigit
#undef isalpha
#undef isalnum
#undef isprint
#undef islower
#undef isupper
#undef tolower
#undef toupper
#undef iscntrl
#undef ispunct
#undef isxdigit

extern const unsigned char sane_ctype[256];
extern const signed char hexval_table[256];
#define GIT_SPACE
#define GIT_DIGIT
#define GIT_ALPHA
#define GIT_GLOB_SPECIAL
#define GIT_REGEX_SPECIAL
#define GIT_PATHSPEC_MAGIC
#define GIT_CNTRL
#define GIT_PUNCT
#define sane_istest(x,mask)
#define isascii(x)
#define isspace(x)
#define isdigit(x)
#define isalpha(x)
#define isalnum(x)
#define isprint(x)
#define islower(x)
#define isupper(x)
#define is_glob_special(x)
#define is_regex_special(x)
#define iscntrl(x)
#define ispunct(x)
#define isxdigit(x)
#define tolower(x)
#define toupper(x)
#define is_pathspec_magic(x)

static inline int sane_case(int x, int high)
{}

static inline int sane_iscase(int x, int is_lower)
{}

#endif