Line | Source Code | Coverage |
---|
1 | | - |
2 | const unsigned char * | - |
3 | pcre16_maketables(void) | - |
4 | | - |
5 | { | - |
6 | unsigned char *yield, *p; | - |
7 | int i; | - |
8 | | - |
9 | | - |
10 | yield = (unsigned char*)(pcre16_malloc)(((512 + 320) + 256)); | - |
11 | | - |
12 | | - |
13 | | - |
14 | | - |
15 | if (yield == ((void *)0)) return ((void *)0); never executed: return ((void *)0); never evaluated: yield == ((void *)0) | 0 |
16 | p = yield; | - |
17 | | - |
18 | | - |
19 | | - |
20 | for (i = 0; i < 256; i++) *p++ = (__extension__ ({ int __res; if (sizeof (i) > 1) { if (__builtin_constant_p (i)) { int __c = (i); __res = __c < -128 || __c > 255 ? __c : (*__ctype_tolower_loc ())[__c]; } else __res = tolower (i); } else __res = (*__ctype_tolower_loc ())[(int) (i)]; __res; })); never executed: *p++ = (__extension__ ({ int __res; if (sizeof (i) > 1) { if (__builtin_constant_p (i)) { int __c = (i); __res = __c < -128 || __c > 255 ? __c : (*__ctype_tolower_loc ())[__c]; } else __res = tolower (i); } else __res = (*__ctype_tolower_loc ())[(int) (i)]; __res; })); never executed: __res = tolower (i); never executed: __res = (*__ctype_tolower_loc ())[(int) (i)]; never evaluated: sizeof (i) > 1 never evaluated: __builtin_constant_p (i) never evaluated: __c < -128 never evaluated: __c > 255 | 0 |
21 | | - |
22 | | - |
23 | | - |
24 | for (i = 0; i < 256; i++) *p++ = ((*__ctype_b_loc ())[(int) ((i))] & (unsigned short int) _ISlower)? (__extension__ ({ int __res; if (sizeof (i) > 1) { if (__builtin_constant_p (i)) { int __c = (i); __res = __c < -128 || __c > 255 ? __c : (*__ctype_toupper_loc ())[__c]; } else __res = toupper (i); } else __res = (*__ctype_toupper_loc ())[(int) (i)]; __res; })) : (__extension__ ({ int __res; if (sizeof (i) > 1) { if (__builtin_constant_p (i)) { int __c = (i); __res = __c < -128 || __c > 255 ? __c : (*__ctype_tolower_loc ())[__c]; } else __res = tolower (i); } else __res = (*__ctype_tolower_loc ())[(int) (i)]; __res; })); never executed: __res = tolower (i); never executed: __res = (*__ctype_tolower_loc ())[(int) (i)]; never executed: *p++ = ((*__ctype_b_loc ())[(int) ((i))] & (unsigned short int) _ISlower)? (__extension__ ({ int __res; if (sizeof (i) > 1) { if (__builtin_constant_p (i)) { int __c = (i); __res = __c < -128 || __c > 255 ? __c : (*__ctype_toupper_loc ())[__c]; } else __res = toupper (i); } else __res = (*__ctype_toupper_loc ())[(int) (i)]; __res; })) : (__extension__ ({ int __res; if (sizeof (i) > 1) { if (__builtin_constant_p (i)) { int __c = (i); __res = __c < -128 || __c > 255 ? __c : (*__ctype_tolower_loc ())[__c]; } else __res = tolower (i); } else __res = (*__ctype_tolower_loc ())[(int) (i)]; __res; })); never evaluated: sizeof (i) > 1 never evaluated: __builtin_constant_p (i) never evaluated: sizeof (i) > 1 never evaluated: __builtin_constant_p (i) never evaluated: ((*__ctype_b_loc ())[(int) ((i))] & (unsigned short int) _ISlower) never evaluated: __c < -128 never evaluated: __c > 255 never evaluated: __c < -128 never evaluated: __c > 255 never executed: __res = toupper (i); never executed: __res = (*__ctype_toupper_loc ())[(int) (i)]; | 0 |
25 | memset(p, 0, 320); | - |
26 | for (i = 0; i < 256; i++) | 0 |
27 | { | - |
28 | if (((*__ctype_b_loc ())[(int) ((i))] & (unsigned short int) _ISdigit)) p[64 + i/8] |= 1 << (i&7); never executed: p[64 + i/8] |= 1 << (i&7); never evaluated: ((*__ctype_b_loc ())[(int) ((i))] & (unsigned short int) _ISdigit) | 0 |
29 | if (((*__ctype_b_loc ())[(int) ((i))] & (unsigned short int) _ISupper)) p[96 + i/8] |= 1 << (i&7); never executed: p[96 + i/8] |= 1 << (i&7); never evaluated: ((*__ctype_b_loc ())[(int) ((i))] & (unsigned short int) _ISupper) | 0 |
30 | if (((*__ctype_b_loc ())[(int) ((i))] & (unsigned short int) _ISlower)) p[128 + i/8] |= 1 << (i&7); never executed: p[128 + i/8] |= 1 << (i&7); never evaluated: ((*__ctype_b_loc ())[(int) ((i))] & (unsigned short int) _ISlower) | 0 |
31 | if (((*__ctype_b_loc ())[(int) ((i))] & (unsigned short int) _ISalnum)) p[160 + i/8] |= 1 << (i&7); never executed: p[160 + i/8] |= 1 << (i&7); never evaluated: ((*__ctype_b_loc ())[(int) ((i))] & (unsigned short int) _ISalnum) | 0 |
32 | if (i == '_') p[160 + i/8] |= 1 << (i&7); never executed: p[160 + i/8] |= 1 << (i&7); never evaluated: i == '_' | 0 |
33 | if (((*__ctype_b_loc ())[(int) ((i))] & (unsigned short int) _ISspace)) p[0 + i/8] |= 1 << (i&7); never executed: p[0 + i/8] |= 1 << (i&7); never evaluated: ((*__ctype_b_loc ())[(int) ((i))] & (unsigned short int) _ISspace) | 0 |
34 | if (((*__ctype_b_loc ())[(int) ((i))] & (unsigned short int) _ISxdigit))p[32 + i/8] |= 1 << (i&7); never executed: p[32 + i/8] |= 1 << (i&7); never evaluated: ((*__ctype_b_loc ())[(int) ((i))] & (unsigned short int) _ISxdigit) | 0 |
35 | if (((*__ctype_b_loc ())[(int) ((i))] & (unsigned short int) _ISgraph)) p[192 + i/8] |= 1 << (i&7); never executed: p[192 + i/8] |= 1 << (i&7); never evaluated: ((*__ctype_b_loc ())[(int) ((i))] & (unsigned short int) _ISgraph) | 0 |
36 | if (((*__ctype_b_loc ())[(int) ((i))] & (unsigned short int) _ISprint)) p[224 + i/8] |= 1 << (i&7); never executed: p[224 + i/8] |= 1 << (i&7); never evaluated: ((*__ctype_b_loc ())[(int) ((i))] & (unsigned short int) _ISprint) | 0 |
37 | if (((*__ctype_b_loc ())[(int) ((i))] & (unsigned short int) _ISpunct)) p[256 + i/8] |= 1 << (i&7); never executed: p[256 + i/8] |= 1 << (i&7); never evaluated: ((*__ctype_b_loc ())[(int) ((i))] & (unsigned short int) _ISpunct) | 0 |
38 | if (((*__ctype_b_loc ())[(int) ((i))] & (unsigned short int) _IScntrl)) p[288 + i/8] |= 1 << (i&7); never executed: p[288 + i/8] |= 1 << (i&7); never evaluated: ((*__ctype_b_loc ())[(int) ((i))] & (unsigned short int) _IScntrl) | 0 |
39 | } | 0 |
40 | p += 320; | - |
41 | | - |
42 | | - |
43 | | - |
44 | | - |
45 | | - |
46 | for (i = 0; i < 256; i++) | 0 |
47 | { | - |
48 | int x = 0; | - |
49 | if (i != 0x0b && ((*__ctype_b_loc ())[(int) ((i))] & (unsigned short int) _ISspace)) x += 0x01; never executed: x += 0x01; never evaluated: i != 0x0b never evaluated: ((*__ctype_b_loc ())[(int) ((i))] & (unsigned short int) _ISspace) | 0 |
50 | if (((*__ctype_b_loc ())[(int) ((i))] & (unsigned short int) _ISalpha)) x += 0x02; never executed: x += 0x02; never evaluated: ((*__ctype_b_loc ())[(int) ((i))] & (unsigned short int) _ISalpha) | 0 |
51 | if (((*__ctype_b_loc ())[(int) ((i))] & (unsigned short int) _ISdigit)) x += 0x04; never executed: x += 0x04; never evaluated: ((*__ctype_b_loc ())[(int) ((i))] & (unsigned short int) _ISdigit) | 0 |
52 | if (((*__ctype_b_loc ())[(int) ((i))] & (unsigned short int) _ISxdigit)) x += 0x08; never executed: x += 0x08; never evaluated: ((*__ctype_b_loc ())[(int) ((i))] & (unsigned short int) _ISxdigit) | 0 |
53 | if (((*__ctype_b_loc ())[(int) ((i))] & (unsigned short int) _ISalnum) || i == '_') x += 0x10; never executed: x += 0x10; never evaluated: ((*__ctype_b_loc ())[(int) ((i))] & (unsigned short int) _ISalnum) never evaluated: i == '_' | 0 |
54 | | - |
55 | | - |
56 | | - |
57 | | - |
58 | | - |
59 | | - |
60 | if ((__extension__ (__builtin_constant_p (i) && !__builtin_constant_p ("\\*+?{^.$|()[") && (i) == '\0' ? (char *) __rawmemchr ("\\*+?{^.$|()[", i) : __builtin_strchr ("\\*+?{^.$|()[", i))) != 0) x += 0x80; never executed: x += 0x80; never evaluated: (__extension__ (__builtin_constant_p (i) && !__builtin_constant_p ("\\*+?{^.$|()[") && (i) == '\0' ? (char *) __rawmemchr ("\\*+?{^.$|()[", i) : __builtin_strchr ("\\*+?{^.$|()[", i))) != 0 never evaluated: __builtin_constant_p (i) never evaluated: !__builtin_constant_p ("\\*+?{^.$|()[") never evaluated: (i) == '\0' | 0 |
61 | *p++ = x; | - |
62 | } | 0 |
63 | | - |
64 | return yield; never executed: return yield; | 0 |
65 | } | - |
66 | | - |
| | |