Home | History | Annotate | Download | only in src

Lines Matching defs:test_mode

792 static int test_mode = DEFAULT_TEST_MODE;
897 #define CASTFLD(t,a,b) ((test_mode == PCRE8_MODE)? (t)(G(a,8)->b) : \
898 (test_mode == PCRE16_MODE)? (t)(G(a,16)->b) : (t)(G(a,32)->b))
901 (test_mode == PCRE8_MODE)? (t)G(x,8) : \
902 (test_mode == PCRE16_MODE)? (t)G(x,16) : (t)G(x,32))
905 (test_mode == PCRE8_MODE)? (uint32_t)(((PCRE2_SPTR8)(a))[b]) : \
906 (test_mode == PCRE16_MODE)? (uint32_t)(((PCRE2_SPTR16)(a))[b]) : \
910 if (test_mode == PCRE8_MODE) \
912 else if (test_mode == PCRE16_MODE) \
916 #define FLD(a,b) ((test_mode == PCRE8_MODE)? G(a,8)->b : \
917 (test_mode == PCRE16_MODE)? G(a,16)->b : G(a,32)->b)
920 if (test_mode == PCRE8_MODE) \
922 else if (test_mode == PCRE16_MODE) \
927 if (test_mode == PCRE32_MODE) \
929 else if (test_mode == PCRE16_MODE) \
935 if (test_mode == PCRE32_MODE) \
937 else if (test_mode == PCRE16_MODE) \
943 if (test_mode == PCRE8_MODE) \
946 else if (test_mode == PCRE16_MODE) \
954 if (test_mode == PCRE8_MODE) \
956 else if (test_mode == PCRE16_MODE) \
962 if (test_mode == PCRE8_MODE) \
964 else if (test_mode == PCRE16_MODE) \
970 if (test_mode == PCRE8_MODE) \
972 else if (test_mode == PCRE16_MODE) \
978 if (test_mode == PCRE8_MODE) \
980 else if (test_mode == PCRE16_MODE) \
986 if (test_mode == PCRE8_MODE) \
988 else if (test_mode == PCRE16_MODE) \
994 if (test_mode == PCRE8_MODE) \
996 else if (test_mode == PCRE16_MODE) \
1002 if (test_mode == PCRE8_MODE) \
1004 else if (test_mode == PCRE16_MODE) \
1010 if (test_mode == PCRE8_MODE) r = pcre2_jit_compile_8(G(a,8),b); \
1011 else if (test_mode == PCRE16_MODE) r = pcre2_jit_compile_16(G(a,16),b); \
1015 if (test_mode == PCRE8_MODE) pcre2_jit_free_unused_memory_8(G(a,8)); \
1016 else if (test_mode == PCRE16_MODE) pcre2_jit_free_unused_memory_16(G(a,16)); \
1020 if (test_mode == PCRE8_MODE) \
1022 else if (test_mode == PCRE16_MODE) \
1028 if (test_mode == PCRE8_MODE) \
1030 else if (test_mode == PCRE16_MODE) \
1036 if (test_mode == PCRE8_MODE) \
1038 else if (test_mode == PCRE16_MODE) \
1044 if (test_mode == PCRE8_MODE) \
1046 else if (test_mode == PCRE16_MODE) \
1052 if (test_mode == PCRE8_MODE) a = pcre2_maketables_8(NULL); \
1053 else if (test_mode == PCRE16_MODE) a = pcre2_maketables_16(NULL); \
1057 if (test_mode == PCRE8_MODE) \
1059 else if (test_mode == PCRE16_MODE) \
1065 if (test_mode == PCRE8_MODE) \
1067 else if (test_mode == PCRE16_MODE) \
1073 if (test_mode == PCRE8_MODE) \
1075 else if (test_mode == PCRE16_MODE) \
1081 if (test_mode == PCRE8_MODE) \
1083 else if (test_mode == PCRE16_MODE) \
1089 if (test_mode == PCRE8_MODE) \
1091 else if (test_mode == PCRE16_MODE) \
1097 if (test_mode == PCRE8_MODE) \
1099 else if (test_mode == PCRE16_MODE) \
1105 if (test_mode == PCRE8_MODE) \
1107 else if (test_mode == PCRE16_MODE) \
1113 if (test_mode == PCRE8_MODE) \
1115 else if (test_mode == PCRE16_MODE) \
1121 if (test_mode == PCRE8_MODE) \
1123 else if (test_mode == PCRE16_MODE) \
1129 if (test_mode == PCRE8_MODE) \
1131 else if (test_mode == PCRE16_MODE) \
1137 if (test_mode == PCRE8_MODE) \
1139 else if (test_mode == PCRE16_MODE) \
1145 if (test_mode == PCRE8_MODE) \
1147 else if (test_mode == PCRE16_MODE) \
1153 if (test_mode == PCRE8_MODE) \
1155 else if (test_mode == PCRE16_MODE) \
1161 if (test_mode == PCRE8_MODE) \
1163 else if (test_mode == PCRE16_MODE) \
1169 if (test_mode == PCRE8_MODE) \
1171 else if (test_mode == PCRE16_MODE) \
1177 if (test_mode == PCRE8_MODE) \
1179 else if (test_mode == PCRE16_MODE) \
1185 if (test_mode == PCRE8_MODE) \
1187 else if (test_mode == PCRE16_MODE) \
1193 if (test_mode == PCRE8_MODE) \
1195 else if (test_mode == PCRE16_MODE) \
1201 if (test_mode == PCRE8_MODE) \
1204 else if (test_mode == PCRE16_MODE) \
1212 if (test_mode == PCRE8_MODE) \
1214 else if (test_mode == PCRE16_MODE) \
1220 if (test_mode == PCRE8_MODE) \
1222 else if (test_mode == PCRE16_MODE) \
1228 if (test_mode == PCRE8_MODE) pcre2_substring_free_8((PCRE2_UCHAR8 *)a); \
1229 else if (test_mode == PCRE16_MODE) \
1234 if (test_mode == PCRE8_MODE) \
1236 else if (test_mode == PCRE16_MODE) \
1242 if (test_mode == PCRE8_MODE) \
1244 else if (test_mode == PCRE16_MODE) \
1250 if (test_mode == PCRE8_MODE) \
1252 else if (test_mode == PCRE16_MODE) \
1258 if (test_mode == PCRE8_MODE) \
1260 else if (test_mode == PCRE16_MODE) \
1266 if (test_mode == PCRE8_MODE) \
1268 else if (test_mode == PCRE16_MODE) \
1274 if (test_mode == PCRE8_MODE) \
1276 else if (test_mode == PCRE16_MODE) \
1282 if (test_mode == PCRE8_MODE) \
1284 else if (test_mode == PCRE16_MODE) \
1290 (test_mode == PCRE8_MODE)? (void *)G(x,8) : \
1291 (test_mode == PCRE16_MODE)? (void *)G(x,16) : \
1295 if (test_mode == PCRE8_MODE) G(x,8)->y = z; \
1296 else if (test_mode == PCRE16_MODE) G(x,16)->y = z; \
1300 if (test_mode == PCRE8_MODE) G(x,8)->y[v] = z; \
1301 else if (test_mode == PCRE16_MODE) G(x,16)->y[v] = z; \
1305 if (test_mode == PCRE8_MODE) G(x,8) z y; \
1306 else if (test_mode == PCRE16_MODE) G(x,16) z y; \
1310 if (test_mode == PCRE8_MODE) \
1312 else if (test_mode == PCRE16_MODE) \
1317 #define STRLEN(p) ((test_mode == PCRE8_MODE)? ((int)strlen((char *)p)) : \
1318 (test_mode == PCRE16_MODE)? ((int)strlen16((PCRE2_SPTR16)p)) : \
1322 if (test_mode == PCRE8_MODE) G(a,8)(G(b,8)); \
1323 else if (test_mode == PCRE16_MODE) G(a,16)(G(b,16)); \
1327 if (test_mode == PCRE8_MODE) G(a,8)(G(b,8),G(c,8)); \
1328 else if (test_mode == PCRE16_MODE) G(a,16)(G(b,16),G(c,16)); \
1332 (test_mode == PCRE8_MODE && G(x,8) r (y)) || \
1333 (test_mode == PCRE16_MODE && G(x,16) r (y)) || \
1334 (test_mode == PCRE32_MODE && G(x,32) r (y)))
1337 (test_mode == PCRE8_MODE && G(x,8)->f r (y)) || \
1338 (test_mode == PCRE16_MODE && G(x,16)->f r (y)) || \
1339 (test_mode == PCRE32_MODE && G(x,32)->f r (y)))
1373 ((test_mode == G(G(PCRE,BITONE),_MODE))? (t)(G(a,BITONE)->b) : \
1377 (test_mode == G(G(PCRE,BITONE),_MODE))? \
1381 (test_mode == G(G(PCRE,BITONE),_MODE))? \
1386 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1392 ((test_mode == G(G(PCRE,BITONE),_MODE))? G(a,BITONE)->b : G(a,BITTWO)->b)
1395 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1401 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1407 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1413 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1421 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1427 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1433 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1439 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1447 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1453 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1459 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1465 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1471 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1477 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1485 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1491 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1497 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1503 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1509 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1517 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1523 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1529 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1535 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1541 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1547 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1553 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1559 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1565 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1571 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1579 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1585 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1591 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1597 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1603 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1609 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1615 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1621 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1631 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1639 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1647 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1652 test_mode == G(G(PCRE,BITONE),_MODE)) \
1660 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1668 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1674 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1680 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1688 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1694 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1700 (test_mode == G(G(PCRE,BITONE),_MODE))? (void *)G(x,BITONE) : \
1704 if (test_mode == G(G(PCRE,BITONE),_MODE)) G(x,BITONE)->y = z; \
1708 if (test_mode == G(G(PCRE,BITONE),_MODE)) G(x,BITONE)->y[v] = z; \
1712 if (test_mode == G(G(PCRE,BITONE),_MODE)) G(x,BITONE) z y; \
1716 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1721 #define STRLEN(p) ((test_mode == G(G(PCRE,BITONE),_MODE))? \
1726 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1732 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1738 (test_mode == G(G(PCRE,BITONE),_MODE) && G(x,BITONE) r (y)) || \
1739 (test_mode == G(G(PCRE,BITTWO),_MODE) && G(x,BITTWO) r (y)))
1742 (test_mode == G(G(PCRE,BITONE),_MODE) && G(x,BITONE)->f r (y)) || \
1743 (test_mode == G(G(PCRE,BITTWO),_MODE) && G(x,BITTWO)->f r (y)))
2885 if (!utf || test_mode == PCRE32_MODE)
2888 else if (test_mode == PCRE8_MODE)
3579 fprintf(outfile, "Error %d from pcre2_pattern_info_%d(%d)\n", rc, test_mode,
3583 "%d-bit mode\n", test_mode,
3757 /* One of the test_mode values will always be true, but to stop a compiler
3762 if (test_mode == 8) cblock_size = sizeof(pcre2_real_code_8);
3765 if (test_mode == 16) cblock_size = sizeof(pcre2_real_code_16);
3768 if (test_mode == 32) cblock_size = sizeof(pcre2_real_code_32);
3941 int imm2_size = test_mode == PCRE8_MODE ? 2 : 1;
3947 if (test_mode == PCRE32_MODE)
3951 if (test_mode == PCRE16_MODE)
3955 if (test_mode == PCRE8_MODE)
4741 if (test_mode != 8)
4877 if (test_mode == PCRE16_MODE) errorcode = to16(pbuffer8, utf, &patlen);
4881 if (test_mode == PCRE32_MODE) errorcode = to32(pbuffer8, utf, &patlen);
4888 "converted to %d-bit string\n", (test_mode == PCRE16_MODE)? 16:32);
5366 if (test_mode == PCRE8_MODE) strcpy((char *)pbuffer8, (char *)nptr);
5369 if (test_mode == PCRE16_MODE)(void)to16(nptr, utf, &cnl);
5372 if (test_mode == PCRE32_MODE)(void)to32(nptr, utf, &cnl);
5453 if (test_mode == PCRE8_MODE) strcpy((char *)pbuffer8, (char *)nptr);
5456 if (test_mode == PCRE16_MODE)(void)to16(nptr, utf, &cnl);
5459 if (test_mode == PCRE32_MODE)(void)to32(nptr, utf, &cnl);
5777 if (utf && (test_mode == PCRE8_MODE))
5815 if (test_mode == PCRE8_MODE)
5841 if (test_mode == PCRE16_MODE)
5875 if (test_mode == PCRE32_MODE)
6179 if (test_mode == PCRE8_MODE) *r8++ = c;
6182 if (test_mode == PCRE16_MODE) *r16++ = c;
6185 if (test_mode == PCRE32_MODE) *r32++ = c;
6197 if (test_mode == PCRE8_MODE) r8 += ord2utf8(c, r8);
6201 if (test_mode == PCRE16_MODE)
6214 if (test_mode == PCRE32_MODE) *r32++ = c;
6667 else if (utf && test_mode != PCRE32_MODE)
6669 if (test_mode == PCRE8_MODE)
6711 fprintf(outfile, "Error %d (bad UTF-%d offset)\n", capcount, test_mode);
6774 if (utf && test_mode != PCRE32_MODE)
6776 if (test_mode == PCRE8_MODE)
7182 test_mode = PCRE8_MODE;
7192 test_mode = PCRE16_MODE;
7202 test_mode = PCRE32_MODE;
7362 if (test_mode == PCRE16_MODE)
7377 if (test_mode == PCRE32_MODE)
7437 code_unit_size = test_mode/8;
7466 if (test_mode == PCRE8_MODE)
7476 if (test_mode == PCRE16_MODE)
7486 if (test_mode == PCRE32_MODE)