Lines Matching refs:test_mode
963 static int test_mode = DEFAULT_TEST_MODE; variable
1080 #define CASTFLD(t,a,b) ((test_mode == PCRE8_MODE)? (t)(G(a,8)->b) : \
1081 (test_mode == PCRE16_MODE)? (t)(G(a,16)->b) : (t)(G(a,32)->b))
1084 (test_mode == PCRE8_MODE)? (t)G(x,8) : \
1085 (test_mode == PCRE16_MODE)? (t)G(x,16) : (t)G(x,32))
1088 (test_mode == PCRE8_MODE)? (uint32_t)(((PCRE2_SPTR8)(a))[b]) : \
1089 (test_mode == PCRE16_MODE)? (uint32_t)(((PCRE2_SPTR16)(a))[b]) : \
1093 if (test_mode == PCRE8_MODE) \
1095 else if (test_mode == PCRE16_MODE) \
1100 if (test_mode == PCRE8_MODE) \
1102 else if (test_mode == PCRE16_MODE) \
1104 else if (test_mode == PCRE32_MODE) \
1108 if (test_mode == PCRE8_MODE) \
1110 else if (test_mode == PCRE16_MODE) \
1114 #define FLD(a,b) ((test_mode == PCRE8_MODE)? G(a,8)->b : \
1115 (test_mode == PCRE16_MODE)? G(a,16)->b : G(a,32)->b)
1118 if (test_mode == PCRE8_MODE) \
1120 else if (test_mode == PCRE16_MODE) \
1125 if (test_mode == PCRE32_MODE) \
1127 else if (test_mode == PCRE16_MODE) \
1133 if (test_mode == PCRE32_MODE) \
1135 else if (test_mode == PCRE16_MODE) \
1141 if (test_mode == PCRE8_MODE) \
1144 else if (test_mode == PCRE16_MODE) \
1152 if (test_mode == PCRE8_MODE) \
1154 else if (test_mode == PCRE16_MODE) \
1160 if (test_mode == PCRE8_MODE) \
1162 else if (test_mode == PCRE16_MODE) \
1168 if (test_mode == PCRE8_MODE) \
1170 else if (test_mode == PCRE16_MODE) \
1176 if (test_mode == PCRE8_MODE) \
1178 else if (test_mode == PCRE16_MODE) \
1184 if (test_mode == PCRE8_MODE) pcre2_converted_pattern_free_8((PCRE2_UCHAR8 *)a); \
1185 else if (test_mode == PCRE16_MODE) pcre2_converted_pattern_free_16((PCRE2_UCHAR16 *)a); \
1189 if (test_mode == PCRE8_MODE) \
1191 else if (test_mode == PCRE16_MODE) \
1197 if (test_mode == PCRE8_MODE) \
1199 else if (test_mode == PCRE16_MODE) \
1205 if (test_mode == PCRE8_MODE) \
1207 else if (test_mode == PCRE16_MODE) \
1213 if (test_mode == PCRE8_MODE) \
1215 else if (test_mode == PCRE16_MODE) \
1221 if (test_mode == PCRE8_MODE) \
1223 else if (test_mode == PCRE16_MODE) \
1229 if (test_mode == PCRE8_MODE) r = pcre2_jit_compile_8(G(a,8),b); \
1230 else if (test_mode == PCRE16_MODE) r = pcre2_jit_compile_16(G(a,16),b); \
1234 if (test_mode == PCRE8_MODE) pcre2_jit_free_unused_memory_8(G(a,8)); \
1235 else if (test_mode == PCRE16_MODE) pcre2_jit_free_unused_memory_16(G(a,16)); \
1239 if (test_mode == PCRE8_MODE) \
1241 else if (test_mode == PCRE16_MODE) \
1247 if (test_mode == PCRE8_MODE) \
1249 else if (test_mode == PCRE16_MODE) \
1255 if (test_mode == PCRE8_MODE) \
1257 else if (test_mode == PCRE16_MODE) \
1263 if (test_mode == PCRE8_MODE) \
1265 else if (test_mode == PCRE16_MODE) \
1271 if (test_mode == PCRE8_MODE) a = pcre2_maketables_8(G(c,8)); \
1272 else if (test_mode == PCRE16_MODE) a = pcre2_maketables_16(G(c,16)); \
1276 if (test_mode == PCRE8_MODE) pcre2_maketables_free_8(G(c,8),a); \
1277 else if (test_mode == PCRE16_MODE) pcre2_maketables_free_16(G(c,16),a); \
1281 if (test_mode == PCRE8_MODE) \
1283 else if (test_mode == PCRE16_MODE) \
1289 if (test_mode == PCRE8_MODE) \
1291 else if (test_mode == PCRE16_MODE) \
1297 if (test_mode == PCRE8_MODE) \
1299 else if (test_mode == PCRE16_MODE) \
1305 if (test_mode == PCRE8_MODE) \
1307 else if (test_mode == PCRE16_MODE) \
1313 if (test_mode == PCRE8_MODE) \
1315 else if (test_mode == PCRE16_MODE) \
1321 if (test_mode == PCRE8_MODE) \
1323 else if (test_mode == PCRE16_MODE) \
1329 if (test_mode == PCRE8_MODE) \
1331 else if (test_mode == PCRE16_MODE) \
1337 if (test_mode == PCRE8_MODE) \
1339 else if (test_mode == PCRE16_MODE) \
1345 if (test_mode == PCRE8_MODE) \
1347 else if (test_mode == PCRE16_MODE) \
1353 if (test_mode == PCRE8_MODE) \
1355 else if (test_mode == PCRE16_MODE) \
1361 if (test_mode == PCRE8_MODE) \
1363 else if (test_mode == PCRE16_MODE) \
1369 if (test_mode == PCRE8_MODE) \
1371 else if (test_mode == PCRE16_MODE) \
1377 if (test_mode == PCRE8_MODE) \
1379 else if (test_mode == PCRE16_MODE) \
1385 if (test_mode == PCRE8_MODE) \
1387 else if (test_mode == PCRE16_MODE) \
1393 if (test_mode == PCRE8_MODE) \
1395 else if (test_mode == PCRE16_MODE) \
1401 if (test_mode == PCRE8_MODE) \
1403 else if (test_mode == PCRE16_MODE) \
1409 if (test_mode == PCRE8_MODE) \
1411 else if (test_mode == PCRE16_MODE) \
1417 if (test_mode == PCRE8_MODE) \
1419 else if (test_mode == PCRE16_MODE) \
1425 if (test_mode == PCRE8_MODE) \
1427 else if (test_mode == PCRE16_MODE) \
1433 if (test_mode == PCRE8_MODE) \
1435 else if (test_mode == PCRE16_MODE) \
1441 if (test_mode == PCRE8_MODE) \
1443 else if (test_mode == PCRE16_MODE) \
1449 if (test_mode == PCRE8_MODE) \
1451 else if (test_mode == PCRE16_MODE) \
1457 if (test_mode == PCRE8_MODE) \
1459 else if (test_mode == PCRE16_MODE) \
1465 if (test_mode == PCRE8_MODE) \
1467 else if (test_mode == PCRE16_MODE) \
1473 if (test_mode == PCRE8_MODE) \
1476 else if (test_mode == PCRE16_MODE) \
1484 if (test_mode == PCRE8_MODE) \
1487 else if (test_mode == PCRE16_MODE) \
1495 if (test_mode == PCRE8_MODE) \
1497 else if (test_mode == PCRE16_MODE) \
1503 if (test_mode == PCRE8_MODE) \
1505 else if (test_mode == PCRE16_MODE) \
1511 if (test_mode == PCRE8_MODE) pcre2_substring_free_8((PCRE2_UCHAR8 *)a); \
1512 else if (test_mode == PCRE16_MODE) \
1517 if (test_mode == PCRE8_MODE) \
1519 else if (test_mode == PCRE16_MODE) \
1525 if (test_mode == PCRE8_MODE) \
1527 else if (test_mode == PCRE16_MODE) \
1533 if (test_mode == PCRE8_MODE) \
1535 else if (test_mode == PCRE16_MODE) \
1541 if (test_mode == PCRE8_MODE) \
1543 else if (test_mode == PCRE16_MODE) \
1549 if (test_mode == PCRE8_MODE) \
1551 else if (test_mode == PCRE16_MODE) \
1557 if (test_mode == PCRE8_MODE) \
1559 else if (test_mode == PCRE16_MODE) \
1565 if (test_mode == PCRE8_MODE) \
1567 else if (test_mode == PCRE16_MODE) \
1573 (test_mode == PCRE8_MODE)? (void *)G(x,8) : \
1574 (test_mode == PCRE16_MODE)? (void *)G(x,16) : \
1578 if (test_mode == PCRE8_MODE) G(x,8)->y = z; \
1579 else if (test_mode == PCRE16_MODE) G(x,16)->y = z; \
1583 if (test_mode == PCRE8_MODE) G(x,8)->y[v] = z; \
1584 else if (test_mode == PCRE16_MODE) G(x,16)->y[v] = z; \
1588 if (test_mode == PCRE8_MODE) G(x,8) z y; \
1589 else if (test_mode == PCRE16_MODE) G(x,16) z y; \
1593 if (test_mode == PCRE8_MODE) \
1595 else if (test_mode == PCRE16_MODE) \
1600 #define STRLEN(p) ((test_mode == PCRE8_MODE)? ((int)strlen((char *)p)) : \
1601 (test_mode == PCRE16_MODE)? ((int)strlen16((PCRE2_SPTR16)p)) : \
1605 if (test_mode == PCRE8_MODE) G(a,8)(G(b,8)); \
1606 else if (test_mode == PCRE16_MODE) G(a,16)(G(b,16)); \
1610 if (test_mode == PCRE8_MODE) G(a,8)(G(b,8),G(c,8)); \
1611 else if (test_mode == PCRE16_MODE) G(a,16)(G(b,16),G(c,16)); \
1615 (test_mode == PCRE8_MODE && G(x,8) r (y)) || \
1616 (test_mode == PCRE16_MODE && G(x,16) r (y)) || \
1617 (test_mode == PCRE32_MODE && G(x,32) r (y)))
1620 (test_mode == PCRE8_MODE && G(x,8)->f r (y)) || \
1621 (test_mode == PCRE16_MODE && G(x,16)->f r (y)) || \
1622 (test_mode == PCRE32_MODE && G(x,32)->f r (y)))
1658 ((test_mode == G(G(PCRE,BITONE),_MODE))? (t)(G(a,BITONE)->b) : \
1662 (test_mode == G(G(PCRE,BITONE),_MODE))? \
1666 (test_mode == G(G(PCRE,BITONE),_MODE))? \
1671 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1677 (test_mode == G(G(PCRE,BITONE),_MODE))? \
1682 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1688 ((test_mode == G(G(PCRE,BITONE),_MODE))? G(a,BITONE)->b : G(a,BITTWO)->b)
1691 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1697 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1703 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1709 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1717 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1723 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1729 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1735 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1741 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1747 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1755 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1761 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1767 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1773 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1779 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1785 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1791 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1799 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1805 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1811 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1817 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1823 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1829 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1837 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1843 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1849 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1855 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1861 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1867 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1873 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1879 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1885 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1891 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1897 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1905 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1911 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1917 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1923 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1929 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1935 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1941 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1947 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1953 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1959 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1965 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1971 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1977 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1985 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1995 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
2003 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
2011 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
2016 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
2024 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
2032 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
2038 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
2044 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
2052 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
2058 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
2064 (test_mode == G(G(PCRE,BITONE),_MODE))? (void *)G(x,BITONE) : \
2068 if (test_mode == G(G(PCRE,BITONE),_MODE)) G(x,BITONE)->y = z; \
2072 if (test_mode == G(G(PCRE,BITONE),_MODE)) G(x,BITONE)->y[v] = z; \
2076 if (test_mode == G(G(PCRE,BITONE),_MODE)) G(x,BITONE) z y; \
2080 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
2085 #define STRLEN(p) ((test_mode == G(G(PCRE,BITONE),_MODE))? \
2090 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
2096 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
2102 (test_mode == G(G(PCRE,BITONE),_MODE) && G(x,BITONE) r (y)) || \
2103 (test_mode == G(G(PCRE,BITTWO),_MODE) && G(x,BITTWO) r (y)))
2106 (test_mode == G(G(PCRE,BITONE),_MODE) && G(x,BITONE)->f r (y)) || \
2107 (test_mode == G(G(PCRE,BITTWO),_MODE) && G(x,BITTWO)->f r (y)))
3423 if (!utf || test_mode == PCRE32_MODE) in backchars()
3426 else if (test_mode == PCRE8_MODE) in backchars()
4164 fprintf(outfile, "Error %d from pcre2_pattern_info_%d(%d)\n", rc, test_mode, in pattern_info()
4168 "%d-bit mode\n", test_mode, in pattern_info()
4407 if (test_mode == PCRE8_MODE) cblock_size = sizeof(pcre2_real_code_8); in show_memory_info()
4410 if (test_mode == PCRE16_MODE) cblock_size = sizeof(pcre2_real_code_16); in show_memory_info()
4413 if (test_mode == PCRE32_MODE) cblock_size = sizeof(pcre2_real_code_32); in show_memory_info()
4670 int imm2_size = test_mode == PCRE8_MODE ? 2 : 1; in show_pattern_info()
4682 if (test_mode == PCRE32_MODE) in show_pattern_info()
4694 if (test_mode == PCRE16_MODE) in show_pattern_info()
4710 if (test_mode == PCRE8_MODE) in show_pattern_info()
4722 if (test_mode == PCRE32_MODE) in show_pattern_info()
4726 if (test_mode == PCRE16_MODE) in show_pattern_info()
4730 if (test_mode == PCRE8_MODE) in show_pattern_info()
5344 if (test_mode == PCRE8_MODE) in process_pattern()
5612 if (test_mode != PCRE8_MODE) in process_pattern()
5780 if (test_mode == PCRE16_MODE) errorcode = to16(pbuffer8, utf, &patlen); in process_pattern()
5784 if (test_mode == PCRE32_MODE) errorcode = to32(pbuffer8, utf, &patlen); in process_pattern()
5791 "converted to %d-bit string\n", (test_mode == PCRE16_MODE)? 16:32); in process_pattern()
5882 if (test_mode == PCRE8_MODE) in process_pattern()
5884 else if (test_mode == PCRE16_MODE) in process_pattern()
5928 if (test_mode == PCRE8_MODE && pbuffer8 != NULL) in process_pattern()
5935 if (test_mode == PCRE16_MODE && pbuffer16 != NULL) in process_pattern()
5942 if (test_mode == PCRE32_MODE && pbuffer32 != NULL) in process_pattern()
5977 if (test_mode == PCRE8_MODE) use_pbuffer = pbuffer8; in process_pattern()
5980 if (test_mode == PCRE16_MODE) use_pbuffer = pbuffer16; in process_pattern()
5983 if (test_mode == PCRE32_MODE) use_pbuffer = pbuffer32; in process_pattern()
6020 if (test_mode == PCRE8_MODE) in process_pattern()
6027 if (test_mode == PCRE16_MODE) in process_pattern()
6033 if (test_mode == PCRE32_MODE) in process_pattern()
6667 if (test_mode == PCRE8_MODE) strcpy((char *)pbuffer8, (char *)nptr); in copy_and_get()
6670 if (test_mode == PCRE16_MODE)(void)to16(nptr, utf, &cnl); in copy_and_get()
6673 if (test_mode == PCRE32_MODE)(void)to32(nptr, utf, &cnl); in copy_and_get()
6748 if (test_mode == PCRE8_MODE) strcpy((char *)pbuffer8, (char *)nptr); in copy_and_get()
6751 if (test_mode == PCRE16_MODE)(void)to16(nptr, utf, &cnl); in copy_and_get()
6754 if (test_mode == PCRE32_MODE)(void)to32(nptr, utf, &cnl); in copy_and_get()
7061 if (test_mode == PCRE32_MODE && c == 0xff && *p != 0) in process_data()
7147 if (utf && (test_mode == PCRE8_MODE)) in process_data()
7185 if (test_mode == PCRE8_MODE) in process_data()
7211 if (test_mode == PCRE16_MODE) in process_data()
7245 if (test_mode == PCRE32_MODE) in process_data()
7664 if (test_mode == PCRE8_MODE) *r8++ = c; in process_data()
7667 if (test_mode == PCRE16_MODE) *r16++ = c; in process_data()
7670 if (test_mode == PCRE32_MODE) *r32++ = c; in process_data()
7682 if (test_mode == PCRE8_MODE) r8 += ord2utf8(c, r8); in process_data()
7686 if (test_mode == PCRE16_MODE) in process_data()
7699 if (test_mode == PCRE32_MODE) *r32++ = c; in process_data()
8229 else if (utf && test_mode != PCRE32_MODE) in process_data()
8231 if (test_mode == PCRE8_MODE) in process_data()
8276 fprintf(outfile, "Error %d (bad UTF-%d offset)\n", capcount, test_mode); in process_data()
8346 if (utf && test_mode != PCRE32_MODE) in process_data()
8348 if (test_mode == PCRE8_MODE) in process_data()
8415 sprintf(buf, "%d-bit", test_mode); in print_version()
9128 test_mode = PCRE8_MODE; in main()
9141 test_mode = PCRE16_MODE; in main()
9155 test_mode = PCRE32_MODE; in main()
9338 if (test_mode == PCRE16_MODE) in main()
9353 if (test_mode == PCRE32_MODE) in main()
9412 code_unit_size = test_mode/8; in main()
9442 if (test_mode == PCRE8_MODE) in main()
9452 if (test_mode == PCRE16_MODE) in main()
9462 if (test_mode == PCRE32_MODE) in main()