mailing list of musl libc
 help / color / mirror / code / Atom feed
7f8d98d805e4924363bf03fe371aa901dd44b09a blob 1596 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
 
#ifndef	_CTYPE_H
#define	_CTYPE_H

#ifdef __cplusplus
extern "C" {
#endif

#include <features.h>

int   isalnum(int);
int   isblank(int);
int   iscntrl(int);
int   ispunct(int);
int   isxdigit(int);
int   tolower(int);
int   toupper(int);

static __inline int __isspace(int _c)
{
	return _c == ' ' || (unsigned)_c-'\t' < 5;
}

__inline int isalpha(int _c)
{
	return (((unsigned)_c | 32) - 'a') < 26;
}

__inline int isdigit(int _c)
{
	return ((unsigned)_c - '0') < 10;
}

__inline int islower(int _c)
{
	return ((unsigned)_c - 'a') < 26;
}

__inline int isupper(int _c)
{
	return ((unsigned)_c - 'A') < 26;
}

__inline int isprint(int _c)
{
	return ((unsigned)_c - 0x20) < 0x5f;
}

__inline int isgraph(int _c)
{
	return ((unsigned)_c - 0x21) < 0x5e;
}

__inline int isspace(int _c)
{
	return __isspace(_c);
}

#if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \
 || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) \
 || defined(_BSD_SOURCE)

#define __NEED_locale_t
#include <bits/alltypes.h>

int   isalnum_l(int, locale_t);
int   isalpha_l(int, locale_t);
int   isblank_l(int, locale_t);
int   iscntrl_l(int, locale_t);
int   isdigit_l(int, locale_t);
int   isgraph_l(int, locale_t);
int   islower_l(int, locale_t);
int   isprint_l(int, locale_t);
int   ispunct_l(int, locale_t);
int   isspace_l(int, locale_t);
int   isupper_l(int, locale_t);
int   isxdigit_l(int, locale_t);
int   tolower_l(int, locale_t);
int   toupper_l(int, locale_t);

int   isascii(int);
int   toascii(int);
#define _tolower(a) ((a)|0x20)
#define _toupper(a) ((a)&0x5f)

#endif

#ifdef __cplusplus
}
#endif

#endif
debug log:

solving 7f8d98d ...
found 7f8d98d in https://inbox.vuxu.org/musl/20141013142020.GA26828@zx-spectrum.accesssoftek.com/
found a6f44df in https://git.vuxu.org/mirror/musl/
preparing index
index prepared:
100644 a6f44df2e34dca33ee3148577f58a68f9348b59e	include/ctype.h

applying [1/1] https://inbox.vuxu.org/musl/20141013142020.GA26828@zx-spectrum.accesssoftek.com/
diff --git a/include/ctype.h b/include/ctype.h
index a6f44df..7f8d98d 100644

Checking patch include/ctype.h...
Applied patch include/ctype.h cleanly.

index at:
100644 7f8d98d805e4924363bf03fe371aa901dd44b09a	include/ctype.h

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).