Welcome to mirror list, hosted at ThFree Co, Russian Federation.

ctype_.h « ctype « libc « newlib - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a73870b3e4ade5545fd41bcc6f10446a22b4b46e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <ctype.h>

#if (defined(__GNUC__) && !defined(__CHAR_UNSIGNED__) && !defined(COMPACT_CTYPE)) || defined (__CYGWIN__)
#define ALLOW_NEGATIVE_CTYPE_INDEX
#endif

#ifdef ALLOW_NEGATIVE_CTYPE_INDEX

#ifndef __CYGWIN__
  extern const char _ctype_b[];
#else
  extern char _ctype_b[];
#endif
# define DEFAULT_CTYPE_PTR	((char *) _ctype_b + 127)

#else	/* !ALLOW_NEGATIVE_CTYPE_INDEX */

  /* _ctype_ is declared in <ctype.h>. */
# define DEFAULT_CTYPE_PTR	((char *) _ctype_)

#endif	/* !ALLOW_NEGATIVE_CTYPE_INDEX */