../3rdparty/pcre/pcre_maketables.c

Switch to Source codePreprocessed file
LineSource CodeCoverage
1 -
2const unsigned char * -
3pcre16_maketables(void) -
4 -
5{ -
6unsigned char *yield, *p; -
7int i; -
8 -
9 -
10yield = (unsigned char*)(pcre16_malloc)(((512 + 320) + 256)); -
11 -
12 -
13 -
14 -
15if (yield == ((void *)0)) return ((void *)0);
never executed: return ((void *)0);
never evaluated: yield == ((void *)0)
0
16p = yield; -
17 -
18 -
19 -
20for (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: }
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: i < 256
never evaluated: __c < -128
never evaluated: __c > 255
0
21 -
22 -
23 -
24for (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: i < 256
never executed: }
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)];
never executed: }
0
25memset(p, 0, 320); -
26for (i = 0; i < 256; i++)
never evaluated: i < 256
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 }
never executed: }
0
40p += 320; -
41 -
42 -
43 -
44 -
45 -
46for (i = 0; i < 256; i++)
never evaluated: i < 256
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 }
never executed: }
0
63 -
64return yield;
never executed: return yield;
0
65} -
66 -
Switch to Source codePreprocessed file

Generated by Squish Coco Non-Commercial