• Home
  • Raw
  • Download

Lines Matching refs:G

192 #define G(a,b) glue(a,b)  macro
307 #define PCRE2_SUFFIX(a) G(a,8)
316 #define PCRE2_SUFFIX(a) G(a,16)
325 #define PCRE2_SUFFIX(a) G(a,32)
1037 #define CASTFLD(t,a,b) ((test_mode == PCRE8_MODE)? (t)(G(a,8)->b) : \
1038 (test_mode == PCRE16_MODE)? (t)(G(a,16)->b) : (t)(G(a,32)->b))
1041 (test_mode == PCRE8_MODE)? (t)G(x,8) : \
1042 (test_mode == PCRE16_MODE)? (t)G(x,16) : (t)G(x,32))
1051 memcpy(G(a,8),G(b,8),sizeof(pcre2_convert_context_8)); \
1053 memcpy(G(a,16),G(b,16),sizeof(pcre2_convert_context_16)); \
1054 else memcpy(G(a,32),G(b,32),sizeof(pcre2_convert_context_32))
1058 memcpy(G(a,8),(char *)b,c); \
1060 memcpy(G(a,16),(char *)b,(c)*2); \
1062 memcpy(G(a,32),(char *)b,(c)*4)
1066 memcpy(G(a,8),G(b,8),sizeof(pcre2_match_context_8)); \
1068 memcpy(G(a,16),G(b,16),sizeof(pcre2_match_context_16)); \
1069 else memcpy(G(a,32),G(b,32),sizeof(pcre2_match_context_32))
1071 #define FLD(a,b) ((test_mode == PCRE8_MODE)? G(a,8)->b : \
1072 (test_mode == PCRE16_MODE)? G(a,16)->b : G(a,32)->b)
1076 memcpy(G(a,8),G(b,8),sizeof(pcre2_compile_context_8)); \
1078 memcpy(G(a,16),G(b,16),sizeof(pcre2_compile_context_16)); \
1079 else memcpy(G(a,32),G(b,32),sizeof(pcre2_compile_context_32))
1110 G(a,8) = pcre2_code_copy_8(b); \
1112 G(a,16) = pcre2_code_copy_16(b); \
1114 G(a,32) = pcre2_code_copy_32(b)
1118 a = (void *)pcre2_code_copy_8(G(b,8)); \
1120 a = (void *)pcre2_code_copy_16(G(b,16)); \
1122 a = (void *)pcre2_code_copy_32(G(b,32))
1126 a = (void *)pcre2_code_copy_with_tables_8(G(b,8)); \
1128 a = (void *)pcre2_code_copy_with_tables_16(G(b,16)); \
1130 a = (void *)pcre2_code_copy_with_tables_32(G(b,32))
1134 G(a,8) = pcre2_compile_8(G(b,8),c,d,e,f,g); \
1136 G(a,16) = pcre2_compile_16(G(b,16),c,d,e,f,g); \
1138 G(a,32) = pcre2_compile_32(G(b,32),c,d,e,f,g)
1147 a = pcre2_dfa_match_8(G(b,8),(PCRE2_SPTR8)c,d,e,f,G(g,8),h,i,j); \
1149 a = pcre2_dfa_match_16(G(b,16),(PCRE2_SPTR16)c,d,e,f,G(g,16),h,i,j); \
1151 a = pcre2_dfa_match_32(G(b,32),(PCRE2_SPTR32)c,d,e,f,G(g,32),h,i,j)
1155 r = pcre2_get_error_message_8(a,G(b,8),G(G(b,8),_size)); \
1157 r = pcre2_get_error_message_16(a,G(b,16),G(G(b,16),_size/2)); \
1159 r = pcre2_get_error_message_32(a,G(b,32),G(G(b,32),_size/4))
1163 a = pcre2_get_ovector_count_8(G(b,8)); \
1165 a = pcre2_get_ovector_count_16(G(b,16)); \
1167 a = pcre2_get_ovector_count_32(G(b,32))
1171 a = pcre2_get_startchar_8(G(b,8)); \
1173 a = pcre2_get_startchar_16(G(b,16)); \
1175 a = pcre2_get_startchar_32(G(b,32))
1178 if (test_mode == PCRE8_MODE) r = pcre2_jit_compile_8(G(a,8),b); \
1179 else if (test_mode == PCRE16_MODE) r = pcre2_jit_compile_16(G(a,16),b); \
1180 else r = pcre2_jit_compile_32(G(a,32),b)
1183 if (test_mode == PCRE8_MODE) pcre2_jit_free_unused_memory_8(G(a,8)); \
1184 else if (test_mode == PCRE16_MODE) pcre2_jit_free_unused_memory_16(G(a,16)); \
1185 else pcre2_jit_free_unused_memory_32(G(a,32))
1189 a = pcre2_jit_match_8(G(b,8),(PCRE2_SPTR8)c,d,e,f,G(g,8),h); \
1191 a = pcre2_jit_match_16(G(b,16),(PCRE2_SPTR16)c,d,e,f,G(g,16),h); \
1193 a = pcre2_jit_match_32(G(b,32),(PCRE2_SPTR32)c,d,e,f,G(g,32),h)
1205 pcre2_jit_stack_assign_8(G(a,8),(pcre2_jit_callback_8)b,c); \
1207 pcre2_jit_stack_assign_16(G(a,16),(pcre2_jit_callback_16)b,c); \
1209 pcre2_jit_stack_assign_32(G(a,32),(pcre2_jit_callback_32)b,c);
1226 a = pcre2_match_8(G(b,8),(PCRE2_SPTR8)c,d,e,f,G(g,8),h); \
1228 a = pcre2_match_16(G(b,16),(PCRE2_SPTR16)c,d,e,f,G(g,16),h); \
1230 a = pcre2_match_32(G(b,32),(PCRE2_SPTR32)c,d,e,f,G(g,32),h)
1234 G(a,8) = pcre2_match_data_create_8(b,c); \
1236 G(a,16) = pcre2_match_data_create_16(b,c); \
1238 G(a,32) = pcre2_match_data_create_32(b,c)
1242 G(a,8) = pcre2_match_data_create_from_pattern_8(G(b,8),c); \
1244 G(a,16) = pcre2_match_data_create_from_pattern_16(G(b,16),c); \
1246 G(a,32) = pcre2_match_data_create_from_pattern_32(G(b,32),c)
1250 pcre2_match_data_free_8(G(a,8)); \
1252 pcre2_match_data_free_16(G(a,16)); \
1254 pcre2_match_data_free_32(G(a,32))
1258 a = pcre2_pattern_convert_8(G(b,8),c,d,(PCRE2_UCHAR8 **)e,f,G(g,8)); \
1260 a = pcre2_pattern_convert_16(G(b,16),c,d,(PCRE2_UCHAR16 **)e,f,G(g,16)); \
1262 a = pcre2_pattern_convert_32(G(b,32),c,d,(PCRE2_UCHAR32 **)e,f,G(g,32))
1266 a = pcre2_pattern_info_8(G(b,8),c,d); \
1268 a = pcre2_pattern_info_16(G(b,16),c,d); \
1270 a = pcre2_pattern_info_32(G(b,32),c,d)
1282 r = pcre2_serialize_decode_8((pcre2_code_8 **)a,b,c,G(d,8)); \
1284 r = pcre2_serialize_decode_16((pcre2_code_16 **)a,b,c,G(d,16)); \
1286 r = pcre2_serialize_decode_32((pcre2_code_32 **)a,b,c,G(d,32))
1290 r = pcre2_serialize_encode_8((const pcre2_code_8 **)a,b,c,d,G(e,8)); \
1292 r = pcre2_serialize_encode_16((const pcre2_code_16 **)a,b,c,d,G(e,16)); \
1294 r = pcre2_serialize_encode_32((const pcre2_code_32 **)a,b,c,d,G(e,32))
1314 pcre2_set_callout_8(G(a,8),(int (*)(pcre2_callout_block_8 *, void *))b,c); \
1316 pcre2_set_callout_16(G(a,16),(int (*)(pcre2_callout_block_16 *, void *))b,c); \
1318 pcre2_set_callout_32(G(a,32),(int (*)(pcre2_callout_block_32 *, void *))b,c);
1322 pcre2_set_character_tables_8(G(a,8),b); \
1324 pcre2_set_character_tables_16(G(a,16),b); \
1326 pcre2_set_character_tables_32(G(a,32),b)
1330 pcre2_set_compile_recursion_guard_8(G(a,8),b,c); \
1332 pcre2_set_compile_recursion_guard_16(G(a,16),b,c); \
1334 pcre2_set_compile_recursion_guard_32(G(a,32),b,c)
1338 pcre2_set_depth_limit_8(G(a,8),b); \
1340 pcre2_set_depth_limit_16(G(a,16),b); \
1342 pcre2_set_depth_limit_32(G(a,32),b)
1346 r = pcre2_set_glob_separator_8(G(a,8),b); \
1348 r = pcre2_set_glob_separator_16(G(a,16),b); \
1350 r = pcre2_set_glob_separator_32(G(a,32),b)
1354 r = pcre2_set_glob_escape_8(G(a,8),b); \
1356 r = pcre2_set_glob_escape_16(G(a,16),b); \
1358 r = pcre2_set_glob_escape_32(G(a,32),b)
1362 pcre2_set_heap_limit_8(G(a,8),b); \
1364 pcre2_set_heap_limit_16(G(a,16),b); \
1366 pcre2_set_heap_limit_32(G(a,32),b)
1370 pcre2_set_match_limit_8(G(a,8),b); \
1372 pcre2_set_match_limit_16(G(a,16),b); \
1374 pcre2_set_match_limit_32(G(a,32),b)
1378 pcre2_set_max_pattern_length_8(G(a,8),b); \
1380 pcre2_set_max_pattern_length_16(G(a,16),b); \
1382 pcre2_set_max_pattern_length_32(G(a,32),b)
1386 pcre2_set_offset_limit_8(G(a,8),b); \
1388 pcre2_set_offset_limit_16(G(a,16),b); \
1390 pcre2_set_offset_limit_32(G(a,32),b)
1394 pcre2_set_parens_nest_limit_8(G(a,8),b); \
1396 pcre2_set_parens_nest_limit_16(G(a,16),b); \
1398 pcre2_set_parens_nest_limit_32(G(a,32),b)
1402 pcre2_set_substitute_callout_8(G(a,8), \
1405 pcre2_set_substitute_callout_16(G(a,16), \
1408 pcre2_set_substitute_callout_32(G(a,32), \
1413 a = pcre2_substitute_8(G(b,8),(PCRE2_SPTR8)c,d,e,f,G(g,8),h, \
1416 a = pcre2_substitute_16(G(b,16),(PCRE2_SPTR16)c,d,e,f,G(g,16),h, \
1419 a = pcre2_substitute_32(G(b,32),(PCRE2_SPTR32)c,d,e,f,G(g,32),h, \
1424 a = pcre2_substring_copy_byname_8(G(b,8),G(c,8),(PCRE2_UCHAR8 *)d,e); \
1426 a = pcre2_substring_copy_byname_16(G(b,16),G(c,16),(PCRE2_UCHAR16 *)d,e); \
1428 a = pcre2_substring_copy_byname_32(G(b,32),G(c,32),(PCRE2_UCHAR32 *)d,e)
1432 a = pcre2_substring_copy_bynumber_8(G(b,8),c,(PCRE2_UCHAR8 *)d,e); \
1434 a = pcre2_substring_copy_bynumber_16(G(b,16),c,(PCRE2_UCHAR16 *)d,e); \
1436 a = pcre2_substring_copy_bynumber_32(G(b,32),c,(PCRE2_UCHAR32 *)d,e)
1446 a = pcre2_substring_get_byname_8(G(b,8),G(c,8),(PCRE2_UCHAR8 **)d,e); \
1448 a = pcre2_substring_get_byname_16(G(b,16),G(c,16),(PCRE2_UCHAR16 **)d,e); \
1450 a = pcre2_substring_get_byname_32(G(b,32),G(c,32),(PCRE2_UCHAR32 **)d,e)
1454 a = pcre2_substring_get_bynumber_8(G(b,8),c,(PCRE2_UCHAR8 **)d,e); \
1456 a = pcre2_substring_get_bynumber_16(G(b,16),c,(PCRE2_UCHAR16 **)d,e); \
1458 a = pcre2_substring_get_bynumber_32(G(b,32),c,(PCRE2_UCHAR32 **)d,e)
1462 a = pcre2_substring_length_byname_8(G(b,8),G(c,8),d); \
1464 a = pcre2_substring_length_byname_16(G(b,16),G(c,16),d); \
1466 a = pcre2_substring_length_byname_32(G(b,32),G(c,32),d)
1470 a = pcre2_substring_length_bynumber_8(G(b,8),c,d); \
1472 a = pcre2_substring_length_bynumber_16(G(b,16),c,d); \
1474 a = pcre2_substring_length_bynumber_32(G(b,32),c,d)
1478 a = pcre2_substring_list_get_8(G(b,8),(PCRE2_UCHAR8 ***)c,d); \
1480 a = pcre2_substring_list_get_16(G(b,16),(PCRE2_UCHAR16 ***)c,d); \
1482 a = pcre2_substring_list_get_32(G(b,32),(PCRE2_UCHAR32 ***)c,d)
1494 a = pcre2_substring_number_from_name_8(G(b,8),G(c,8)); \
1496 a = pcre2_substring_number_from_name_16(G(b,16),G(c,16)); \
1498 a = pcre2_substring_number_from_name_32(G(b,32),G(c,32))
1501 (test_mode == PCRE8_MODE)? (void *)G(x,8) : \
1502 (test_mode == PCRE16_MODE)? (void *)G(x,16) : \
1503 (void *)G(x,32))
1506 if (test_mode == PCRE8_MODE) G(x,8)->y = z; \
1507 else if (test_mode == PCRE16_MODE) G(x,16)->y = z; \
1508 else G(x,32)->y = z
1511 if (test_mode == PCRE8_MODE) G(x,8)->y[v] = z; \
1512 else if (test_mode == PCRE16_MODE) G(x,16)->y[v] = z; \
1513 else G(x,32)->y[v] = z
1516 if (test_mode == PCRE8_MODE) G(x,8) z y; \
1517 else if (test_mode == PCRE16_MODE) G(x,16) z y; \
1518 else G(x,32) z y
1522 G(x,8) = (uint8_t *)(y); \
1524 G(x,16) = (uint16_t *)(y); \
1526 G(x,32) = (uint32_t *)(y)
1533 if (test_mode == PCRE8_MODE) G(a,8)(G(b,8)); \
1534 else if (test_mode == PCRE16_MODE) G(a,16)(G(b,16)); \
1535 else G(a,32)(G(b,32))
1538 if (test_mode == PCRE8_MODE) G(a,8)(G(b,8),G(c,8)); \
1539 else if (test_mode == PCRE16_MODE) G(a,16)(G(b,16),G(c,16)); \
1540 else G(a,32)(G(b,32),G(c,32))
1543 (test_mode == PCRE8_MODE && G(x,8) r (y)) || \
1544 (test_mode == PCRE16_MODE && G(x,16) r (y)) || \
1545 (test_mode == PCRE32_MODE && G(x,32) r (y)))
1548 (test_mode == PCRE8_MODE && G(x,8)->f r (y)) || \
1549 (test_mode == PCRE16_MODE && G(x,16)->f r (y)) || \
1550 (test_mode == PCRE32_MODE && G(x,32)->f r (y)))
1586 ((test_mode == G(G(PCRE,BITONE),_MODE))? (t)(G(a,BITONE)->b) : \
1587 (t)(G(a,BITTWO)->b))
1590 (test_mode == G(G(PCRE,BITONE),_MODE))? \
1591 (t)G(x,BITONE) : (t)G(x,BITTWO))
1594 (test_mode == G(G(PCRE,BITONE),_MODE))? \
1595 (uint32_t)(((G(PCRE2_SPTR,BITONE))(a))[b]) : \
1596 (uint32_t)(((G(PCRE2_SPTR,BITTWO))(a))[b]))
1599 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1600 memcpy(G(a,BITONE),G(b,BITONE),sizeof(G(pcre2_convert_context_,BITONE))); \
1602 memcpy(G(a,BITTWO),G(b,BITTWO),sizeof(G(pcre2_convert_context_,BITTWO)))
1605 (test_mode == G(G(PCRE,BITONE),_MODE))? \
1606 memcpy(G(a,BITONE),(char *)b,(c)*BYTEONE) : \
1607 memcpy(G(a,BITTWO),(char *)b,(c)*BYTETWO)
1610 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1611 memcpy(G(a,BITONE),G(b,BITONE),sizeof(G(pcre2_match_context_,BITONE))); \
1613 memcpy(G(a,BITTWO),G(b,BITTWO),sizeof(G(pcre2_match_context_,BITTWO)))
1616 ((test_mode == G(G(PCRE,BITONE),_MODE))? G(a,BITONE)->b : G(a,BITTWO)->b)
1619 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1620 memcpy(G(a,BITONE),G(b,BITONE),sizeof(G(pcre2_compile_context_,BITONE))); \
1622 memcpy(G(a,BITTWO),G(b,BITTWO),sizeof(G(pcre2_compile_context_,BITTWO)))
1625 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1626 lv = G(pchars,BITONE)((G(PCRE2_SPTR,BITONE))(p)+offset, len, utf, f); \
1628 lv = G(pchars,BITTWO)((G(PCRE2_SPTR,BITTWO))(p)+offset, len, utf, f)
1631 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1632 (void)G(pchars,BITONE)((G(PCRE2_SPTR,BITONE))(p)+offset, len, utf, f); \
1634 (void)G(pchars,BITTWO)((G(PCRE2_SPTR,BITTWO))(p)+offset, len, utf, f)
1637 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1638 a = G(pcre2_callout_enumerate,BITONE)(G(compiled_code,BITONE), \
1639 (int (*)(struct G(pcre2_callout_enumerate_block_,BITONE) *, void *))b,c); \
1641 a = G(pcre2_callout_enumerate,BITTWO)(G(compiled_code,BITTWO), \
1642 (int (*)(struct G(pcre2_callout_enumerate_block_,BITTWO) *, void *))b,c)
1645 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1646 G(a,BITONE) = G(pcre2_code_copy_,BITONE)(b); \
1648 G(a,BITTWO) = G(pcre2_code_copy_,BITTWO)(b)
1651 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1652 a = (void *)G(pcre2_code_copy_,BITONE)(G(b,BITONE)); \
1654 a = (void *)G(pcre2_code_copy_,BITTWO)(G(b,BITTWO))
1657 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1658 a = (void *)G(pcre2_code_copy_with_tables_,BITONE)(G(b,BITONE)); \
1660 a = (void *)G(pcre2_code_copy_with_tables_,BITTWO)(G(b,BITTWO))
1663 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1664 G(a,BITONE) = G(pcre2_compile_,BITONE)(G(b,BITONE),c,d,e,f,g); \
1666 G(a,BITTWO) = G(pcre2_compile_,BITTWO)(G(b,BITTWO),c,d,e,f,g)
1669 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1670 G(pcre2_converted_pattern_free_,BITONE)((G(PCRE2_UCHAR,BITONE) *)a); \
1672 G(pcre2_converted_pattern_free_,BITTWO)((G(PCRE2_UCHAR,BITTWO) *)a)
1675 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1676 a = G(pcre2_dfa_match_,BITONE)(G(b,BITONE),(G(PCRE2_SPTR,BITONE))c,d,e,f, \
1677 G(g,BITONE),h,i,j); \
1679 a = G(pcre2_dfa_match_,BITTWO)(G(b,BITTWO),(G(PCRE2_SPTR,BITTWO))c,d,e,f, \
1680 G(g,BITTWO),h,i,j)
1683 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1684 r = G(pcre2_get_error_message_,BITONE)(a,G(b,BITONE),G(G(b,BITONE),_size/BYTEONE)); \
1686 r = G(pcre2_get_error_message_,BITTWO)(a,G(b,BITTWO),G(G(b,BITTWO),_size/BYTETWO))
1689 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1690 a = G(pcre2_get_ovector_count_,BITONE)(G(b,BITONE)); \
1692 a = G(pcre2_get_ovector_count_,BITTWO)(G(b,BITTWO))
1695 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1696 a = G(pcre2_get_startchar_,BITONE)(G(b,BITONE)); \
1698 a = G(pcre2_get_startchar_,BITTWO)(G(b,BITTWO))
1701 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1702 r = G(pcre2_jit_compile_,BITONE)(G(a,BITONE),b); \
1704 r = G(pcre2_jit_compile_,BITTWO)(G(a,BITTWO),b)
1707 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1708 G(pcre2_jit_free_unused_memory_,BITONE)(G(a,BITONE)); \
1710 G(pcre2_jit_free_unused_memory_,BITTWO)(G(a,BITTWO))
1713 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1714 a = G(pcre2_jit_match_,BITONE)(G(b,BITONE),(G(PCRE2_SPTR,BITONE))c,d,e,f, \
1715 G(g,BITONE),h); \
1717 a = G(pcre2_jit_match_,BITTWO)(G(b,BITTWO),(G(PCRE2_SPTR,BITTWO))c,d,e,f, \
1718 G(g,BITTWO),h)
1721 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1722 a = (PCRE2_JIT_STACK *)G(pcre2_jit_stack_create_,BITONE)(b,c,d); \
1724 a = (PCRE2_JIT_STACK *)G(pcre2_jit_stack_create_,BITTWO)(b,c,d); \
1727 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1728 G(pcre2_jit_stack_assign_,BITONE)(G(a,BITONE),(G(pcre2_jit_callback_,BITONE))b,c); \
1730 G(pcre2_jit_stack_assign_,BITTWO)(G(a,BITTWO),(G(pcre2_jit_callback_,BITTWO))b,c);
1733 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1734 G(pcre2_jit_stack_free_,BITONE)((G(pcre2_jit_stack_,BITONE) *)a); \
1736 G(pcre2_jit_stack_free_,BITTWO)((G(pcre2_jit_stack_,BITTWO) *)a);
1739 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1740 a = G(pcre2_maketables_,BITONE)(NULL); \
1742 a = G(pcre2_maketables_,BITTWO)(NULL)
1745 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1746 a = G(pcre2_match_,BITONE)(G(b,BITONE),(G(PCRE2_SPTR,BITONE))c,d,e,f, \
1747 G(g,BITONE),h); \
1749 a = G(pcre2_match_,BITTWO)(G(b,BITTWO),(G(PCRE2_SPTR,BITTWO))c,d,e,f, \
1750 G(g,BITTWO),h)
1753 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1754 G(a,BITONE) = G(pcre2_match_data_create_,BITONE)(b,c); \
1756 G(a,BITTWO) = G(pcre2_match_data_create_,BITTWO)(b,c)
1759 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1760 G(a,BITONE) = G(pcre2_match_data_create_from_pattern_,BITONE)(G(b,BITONE),c); \
1762 G(a,BITTWO) = G(pcre2_match_data_create_from_pattern_,BITTWO)(G(b,BITTWO),c)
1765 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1766 G(pcre2_match_data_free_,BITONE)(G(a,BITONE)); \
1768 G(pcre2_match_data_free_,BITTWO)(G(a,BITTWO))
1771 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1772 … a = G(pcre2_pattern_convert_,BITONE)(G(b,BITONE),c,d,(G(PCRE2_UCHAR,BITONE) **)e,f,G(g,BITONE)); \
1774 a = G(pcre2_pattern_convert_,BITTWO)(G(b,BITTWO),c,d,(G(PCRE2_UCHAR,BITTWO) **)e,f,G(g,BITTWO))
1777 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1778 a = G(pcre2_pattern_info_,BITONE)(G(b,BITONE),c,d); \
1780 a = G(pcre2_pattern_info_,BITTWO)(G(b,BITTWO),c,d)
1783 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1784 G(pcre2_printint_,BITONE)(G(compiled_code,BITONE),outfile,a); \
1786 G(pcre2_printint_,BITTWO)(G(compiled_code,BITTWO),outfile,a)
1789 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1790 r = G(pcre2_serialize_decode_,BITONE)((G(pcre2_code_,BITONE) **)a,b,c,G(d,BITONE)); \
1792 r = G(pcre2_serialize_decode_,BITTWO)((G(pcre2_code_,BITTWO) **)a,b,c,G(d,BITTWO))
1795 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1796 r = G(pcre2_serialize_encode_,BITONE)((G(const pcre2_code_,BITONE) **)a,b,c,d,G(e,BITONE)); \
1798 r = G(pcre2_serialize_encode_,BITTWO)((G(const pcre2_code_,BITTWO) **)a,b,c,d,G(e,BITTWO))
1801 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1802 G(pcre2_serialize_free_,BITONE)(a); \
1804 G(pcre2_serialize_free_,BITTWO)(a)
1807 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1808 r = G(pcre2_serialize_get_number_of_codes_,BITONE)(a); \
1810 r = G(pcre2_serialize_get_number_of_codes_,BITTWO)(a)
1813 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1814 G(pcre2_set_callout_,BITONE)(G(a,BITONE), \
1815 (int (*)(G(pcre2_callout_block_,BITONE) *, void *))b,c); \
1817 G(pcre2_set_callout_,BITTWO)(G(a,BITTWO), \
1818 (int (*)(G(pcre2_callout_block_,BITTWO) *, void *))b,c);
1821 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1822 G(pcre2_set_character_tables_,BITONE)(G(a,BITONE),b); \
1824 G(pcre2_set_character_tables_,BITTWO)(G(a,BITTWO),b)
1827 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1828 G(pcre2_set_compile_recursion_guard_,BITONE)(G(a,BITONE),b,c); \
1830 G(pcre2_set_compile_recursion_guard_,BITTWO)(G(a,BITTWO),b,c)
1833 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1834 G(pcre2_set_depth_limit_,BITONE)(G(a,BITONE),b); \
1836 G(pcre2_set_depth_limit_,BITTWO)(G(a,BITTWO),b)
1839 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1840 r = G(pcre2_set_glob_escape_,BITONE)(G(a,BITONE),b); \
1842 r = G(pcre2_set_glob_escape_,BITTWO)(G(a,BITTWO),b)
1845 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1846 r = G(pcre2_set_glob_separator_,BITONE)(G(a,BITONE),b); \
1848 r = G(pcre2_set_glob_separator_,BITTWO)(G(a,BITTWO),b)
1851 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1852 G(pcre2_set_heap_limit_,BITONE)(G(a,BITONE),b); \
1854 G(pcre2_set_heap_limit_,BITTWO)(G(a,BITTWO),b)
1857 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1858 G(pcre2_set_match_limit_,BITONE)(G(a,BITONE),b); \
1860 G(pcre2_set_match_limit_,BITTWO)(G(a,BITTWO),b)
1863 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1864 G(pcre2_set_max_pattern_length_,BITONE)(G(a,BITONE),b); \
1866 G(pcre2_set_max_pattern_length_,BITTWO)(G(a,BITTWO),b)
1869 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1870 G(pcre2_set_offset_limit_,BITONE)(G(a,BITONE),b); \
1872 G(pcre2_set_offset_limit_,BITTWO)(G(a,BITTWO),b)
1875 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1876 G(pcre2_set_parens_nest_limit_,BITONE)(G(a,BITONE),b); \
1878 G(pcre2_set_parens_nest_limit_,BITTWO)(G(a,BITTWO),b)
1881 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1882 G(pcre2_set_substitute_callout_,BITONE)(G(a,BITONE), \
1883 (int (*)(G(pcre2_substitute_callout_block_,BITONE) *, void *))b,c); \
1885 G(pcre2_set_substitute_callout_,BITTWO)(G(a,BITTWO), \
1886 (int (*)(G(pcre2_substitute_callout_block_,BITTWO) *, void *))b,c)
1889 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1890 a = G(pcre2_substitute_,BITONE)(G(b,BITONE),(G(PCRE2_SPTR,BITONE))c,d,e,f, \
1891 G(g,BITONE),h,(G(PCRE2_SPTR,BITONE))i,j, \
1892 (G(PCRE2_UCHAR,BITONE) *)k,l); \
1894 a = G(pcre2_substitute_,BITTWO)(G(b,BITTWO),(G(PCRE2_SPTR,BITTWO))c,d,e,f, \
1895 G(g,BITTWO),h,(G(PCRE2_SPTR,BITTWO))i,j, \
1896 (G(PCRE2_UCHAR,BITTWO) *)k,l)
1899 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1900 a = G(pcre2_substring_copy_byname_,BITONE)(G(b,BITONE),G(c,BITONE),\
1901 (G(PCRE2_UCHAR,BITONE) *)d,e); \
1903 a = G(pcre2_substring_copy_byname_,BITTWO)(G(b,BITTWO),G(c,BITTWO),\
1904 (G(PCRE2_UCHAR,BITTWO) *)d,e)
1907 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1908 a = G(pcre2_substring_copy_bynumber_,BITONE)(G(b,BITONE),c,\
1909 (G(PCRE2_UCHAR,BITONE) *)d,e); \
1911 a = G(pcre2_substring_copy_bynumber_,BITTWO)(G(b,BITTWO),c,\
1912 (G(PCRE2_UCHAR,BITTWO) *)d,e)
1915 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1916 G(pcre2_substring_free_,BITONE)((G(PCRE2_UCHAR,BITONE) *)a); \
1917 else G(pcre2_substring_free_,BITTWO)((G(PCRE2_UCHAR,BITTWO) *)a)
1920 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1921 a = G(pcre2_substring_get_byname_,BITONE)(G(b,BITONE),G(c,BITONE),\
1922 (G(PCRE2_UCHAR,BITONE) **)d,e); \
1924 a = G(pcre2_substring_get_byname_,BITTWO)(G(b,BITTWO),G(c,BITTWO),\
1925 (G(PCRE2_UCHAR,BITTWO) **)d,e)
1928 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1929 a = G(pcre2_substring_get_bynumber_,BITONE)(G(b,BITONE),c,\
1930 (G(PCRE2_UCHAR,BITONE) **)d,e); \
1932 a = G(pcre2_substring_get_bynumber_,BITTWO)(G(b,BITTWO),c,\
1933 (G(PCRE2_UCHAR,BITTWO) **)d,e)
1936 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1937 a = G(pcre2_substring_length_byname_,BITONE)(G(b,BITONE),G(c,BITONE),d); \
1939 a = G(pcre2_substring_length_byname_,BITTWO)(G(b,BITTWO),G(c,BITTWO),d)
1942 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1943 a = G(pcre2_substring_length_bynumber_,BITONE)(G(b,BITONE),c,d); \
1945 a = G(pcre2_substring_length_bynumber_,BITTWO)(G(b,BITTWO),c,d)
1948 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1949 a = G(pcre2_substring_list_get_,BITONE)(G(b,BITONE), \
1950 (G(PCRE2_UCHAR,BITONE) ***)c,d); \
1952 a = G(pcre2_substring_list_get_,BITTWO)(G(b,BITTWO), \
1953 (G(PCRE2_UCHAR,BITTWO) ***)c,d)
1956 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1957 G(pcre2_substring_list_free_,BITONE)((G(PCRE2_SPTR,BITONE) *)a); \
1959 G(pcre2_substring_list_free_,BITTWO)((G(PCRE2_SPTR,BITTWO) *)a)
1962 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1963 a = G(pcre2_substring_number_from_name_,BITONE)(G(b,BITONE),G(c,BITONE)); \
1965 a = G(pcre2_substring_number_from_name_,BITTWO)(G(b,BITTWO),G(c,BITTWO))
1968 (test_mode == G(G(PCRE,BITONE),_MODE))? (void *)G(x,BITONE) : \
1969 (void *)G(x,BITTWO))
1972 if (test_mode == G(G(PCRE,BITONE),_MODE)) G(x,BITONE)->y = z; \
1973 else G(x,BITTWO)->y = z
1976 if (test_mode == G(G(PCRE,BITONE),_MODE)) G(x,BITONE)->y[v] = z; \
1977 else G(x,BITTWO)->y[v] = z
1980 if (test_mode == G(G(PCRE,BITONE),_MODE)) G(x,BITONE) z y; \
1981 else G(x,BITTWO) z y
1984 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1985 G(x,BITONE) = (G(G(uint,BITONE),_t) *)(y); \
1987 G(x,BITTWO) = (G(G(uint,BITTWO),_t) *)(y)
1989 #define STRLEN(p) ((test_mode == G(G(PCRE,BITONE),_MODE))? \
1990 G(strlen,BITONE)((G(PCRE2_SPTR,BITONE))p) : \
1991 G(strlen,BITTWO)((G(PCRE2_SPTR,BITTWO))p))
1994 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
1995 G(a,BITONE)(G(b,BITONE)); \
1997 G(a,BITTWO)(G(b,BITTWO))
2000 if (test_mode == G(G(PCRE,BITONE),_MODE)) \
2001 G(a,BITONE))(G(b,BITONE),G(c,BITONE)); \
2003 G(a,BITTWO))(G(b,BITTWO),G(c,BITTWO))
2006 (test_mode == G(G(PCRE,BITONE),_MODE) && G(x,BITONE) r (y)) || \
2007 (test_mode == G(G(PCRE,BITTWO),_MODE) && G(x,BITTWO) r (y)))
2010 (test_mode == G(G(PCRE,BITONE),_MODE) && G(x,BITONE)->f r (y)) || \
2011 (test_mode == G(G(PCRE,BITTWO),_MODE) && G(x,BITTWO)->f r (y)))
2022 #define CASTFLD(t,a,b) (t)(G(a,8)->b)
2023 #define CASTVAR(t,x) (t)G(x,8)
2025 #define CONCTXCPY(a,b) memcpy(G(a,8),G(b,8),sizeof(pcre2_convert_context_8))
2026 #define CONVERT_COPY(a,b,c) memcpy(G(a,8),(char *)b, c)
2027 #define DATCTXCPY(a,b) memcpy(G(a,8),G(b,8),sizeof(pcre2_match_context_8))
2028 #define FLD(a,b) G(a,8)->b
2029 #define PATCTXCPY(a,b) memcpy(G(a,8),G(b,8),sizeof(pcre2_compile_context_8))
2037 #define PCRE2_CODE_COPY_FROM_VOID(a,b) G(a,8) = pcre2_code_copy_8(b)
2038 #define PCRE2_CODE_COPY_TO_VOID(a,b) a = (void *)pcre2_code_copy_8(G(b,8))
2039 #define PCRE2_CODE_COPY_WITH_TABLES_TO_VOID(a,b) a = (void *)pcre2_code_copy_with_tables_8(G(b,8))
2041 G(a,8) = pcre2_compile_8(G(b,8),c,d,e,f,g)
2045 a = pcre2_dfa_match_8(G(b,8),(PCRE2_SPTR8)c,d,e,f,G(g,8),h,i,j)
2047 r = pcre2_get_error_message_8(a,G(b,8),G(G(b,8),_size))
2048 #define PCRE2_GET_OVECTOR_COUNT(a,b) a = pcre2_get_ovector_count_8(G(b,8))
2049 #define PCRE2_GET_STARTCHAR(a,b) a = pcre2_get_startchar_8(G(b,8))
2050 #define PCRE2_JIT_COMPILE(r,a,b) r = pcre2_jit_compile_8(G(a,8),b)
2051 #define PCRE2_JIT_FREE_UNUSED_MEMORY(a) pcre2_jit_free_unused_memory_8(G(a,8))
2053 a = pcre2_jit_match_8(G(b,8),(PCRE2_SPTR8)c,d,e,f,G(g,8),h)
2057 pcre2_jit_stack_assign_8(G(a,8),(pcre2_jit_callback_8)b,c);
2061 a = pcre2_match_8(G(b,8),(PCRE2_SPTR8)c,d,e,f,G(g,8),h)
2062 #define PCRE2_MATCH_DATA_CREATE(a,b,c) G(a,8) = pcre2_match_data_create_8(b,c)
2064 G(a,8) = pcre2_match_data_create_from_pattern_8(G(b,8),c)
2065 #define PCRE2_MATCH_DATA_FREE(a) pcre2_match_data_free_8(G(a,8))
2066 …_PATTERN_CONVERT(a,b,c,d,e,f,g) a = pcre2_pattern_convert_8(G(b,8),c,d,(PCRE2_UCHAR8 **)e,f,G(g,8))
2067 #define PCRE2_PATTERN_INFO(a,b,c,d) a = pcre2_pattern_info_8(G(b,8),c,d)
2070 r = pcre2_serialize_decode_8((pcre2_code_8 **)a,b,c,G(d,8))
2072 r = pcre2_serialize_encode_8((const pcre2_code_8 **)a,b,c,d,G(e,8))
2077 pcre2_set_callout_8(G(a,8),(int (*)(pcre2_callout_block_8 *, void *))b,c)
2078 #define PCRE2_SET_CHARACTER_TABLES(a,b) pcre2_set_character_tables_8(G(a,8),b)
2080 pcre2_set_compile_recursion_guard_8(G(a,8),b,c)
2081 #define PCRE2_SET_DEPTH_LIMIT(a,b) pcre2_set_depth_limit_8(G(a,8),b)
2082 #define PCRE2_SET_GLOB_ESCAPE(r,a,b) r = pcre2_set_glob_escape_8(G(a,8),b)
2083 #define PCRE2_SET_GLOB_SEPARATOR(r,a,b) r = pcre2_set_glob_separator_8(G(a,8),b)
2084 #define PCRE2_SET_HEAP_LIMIT(a,b) pcre2_set_heap_limit_8(G(a,8),b)
2085 #define PCRE2_SET_MATCH_LIMIT(a,b) pcre2_set_match_limit_8(G(a,8),b)
2086 #define PCRE2_SET_MAX_PATTERN_LENGTH(a,b) pcre2_set_max_pattern_length_8(G(a,8),b)
2087 #define PCRE2_SET_OFFSET_LIMIT(a,b) pcre2_set_offset_limit_8(G(a,8),b)
2088 #define PCRE2_SET_PARENS_NEST_LIMIT(a,b) pcre2_set_parens_nest_limit_8(G(a,8),b)
2090 pcre2_set_substitute_callout_8(G(a,8), \
2093 a = pcre2_substitute_8(G(b,8),(PCRE2_SPTR8)c,d,e,f,G(g,8),h, \
2096 a = pcre2_substring_copy_byname_8(G(b,8),G(c,8),(PCRE2_UCHAR8 *)d,e)
2098 a = pcre2_substring_copy_bynumber_8(G(b,8),c,(PCRE2_UCHAR8 *)d,e)
2101 a = pcre2_substring_get_byname_8(G(b,8),G(c,8),(PCRE2_UCHAR8 **)d,e)
2103 a = pcre2_substring_get_bynumber_8(G(b,8),c,(PCRE2_UCHAR8 **)d,e)
2105 a = pcre2_substring_length_byname_8(G(b,8),G(c,8),d)
2107 a = pcre2_substring_length_bynumber_8(G(b,8),c,d)
2109 a = pcre2_substring_list_get_8(G(b,8),(PCRE2_UCHAR8 ***)c,d)
2113 a = pcre2_substring_number_from_name_8(G(b,8),G(c,8));
2114 #define PTR(x) (void *)G(x,8)
2115 #define SETFLD(x,y,z) G(x,8)->y = z
2116 #define SETFLDVEC(x,y,v,z) G(x,8)->y[v] = z
2117 #define SETOP(x,y,z) G(x,8) z y
2118 #define SETCASTPTR(x,y) G(x,8) = (uint8_t *)(y)
2120 #define SUB1(a,b) G(a,8)(G(b,8))
2121 #define SUB2(a,b,c) G(a,8)(G(b,8),G(c,8))
2122 #define TEST(x,r,y) (G(x,8) r (y))
2123 #define TESTFLD(x,f,r,y) (G(x,8)->f r (y))
2129 #define CASTFLD(t,a,b) (t)(G(a,16)->b)
2130 #define CASTVAR(t,x) (t)G(x,16)
2132 #define CONCTXCPY(a,b) memcpy(G(a,16),G(b,16),sizeof(pcre2_convert_context_16))
2133 #define CONVERT_COPY(a,b,c) memcpy(G(a,16),(char *)b, (c)*2)
2134 #define DATCTXCPY(a,b) memcpy(G(a,16),G(b,16),sizeof(pcre2_match_context_16))
2135 #define FLD(a,b) G(a,16)->b
2136 #define PATCTXCPY(a,b) memcpy(G(a,16),G(b,16),sizeof(pcre2_compile_context_16))
2144 #define PCRE2_CODE_COPY_FROM_VOID(a,b) G(a,16) = pcre2_code_copy_16(b)
2145 #define PCRE2_CODE_COPY_TO_VOID(a,b) a = (void *)pcre2_code_copy_16(G(b,16))
2146 #define PCRE2_CODE_COPY_WITH_TABLES_TO_VOID(a,b) a = (void *)pcre2_code_copy_with_tables_16(G(b,16))
2148 G(a,16) = pcre2_compile_16(G(b,16),c,d,e,f,g)
2152 a = pcre2_dfa_match_16(G(b,16),(PCRE2_SPTR16)c,d,e,f,G(g,16),h,i,j)
2154 r = pcre2_get_error_message_16(a,G(b,16),G(G(b,16),_size/2))
2155 #define PCRE2_GET_OVECTOR_COUNT(a,b) a = pcre2_get_ovector_count_16(G(b,16))
2156 #define PCRE2_GET_STARTCHAR(a,b) a = pcre2_get_startchar_16(G(b,16))
2157 #define PCRE2_JIT_COMPILE(r,a,b) r = pcre2_jit_compile_16(G(a,16),b)
2158 #define PCRE2_JIT_FREE_UNUSED_MEMORY(a) pcre2_jit_free_unused_memory_16(G(a,16))
2160 a = pcre2_jit_match_16(G(b,16),(PCRE2_SPTR16)c,d,e,f,G(g,16),h)
2164 pcre2_jit_stack_assign_16(G(a,16),(pcre2_jit_callback_16)b,c);
2168 a = pcre2_match_16(G(b,16),(PCRE2_SPTR16)c,d,e,f,G(g,16),h)
2169 #define PCRE2_MATCH_DATA_CREATE(a,b,c) G(a,16) = pcre2_match_data_create_16(b,c)
2171 G(a,16) = pcre2_match_data_create_from_pattern_16(G(b,16),c)
2172 #define PCRE2_MATCH_DATA_FREE(a) pcre2_match_data_free_16(G(a,16))
2173 …ATTERN_CONVERT(a,b,c,d,e,f,g) a = pcre2_pattern_convert_16(G(b,16),c,d,(PCRE2_UCHAR16 **)e,f,G(g,1…
2174 #define PCRE2_PATTERN_INFO(a,b,c,d) a = pcre2_pattern_info_16(G(b,16),c,d)
2177 r = pcre2_serialize_decode_16((pcre2_code_16 **)a,b,c,G(d,16))
2179 r = pcre2_serialize_encode_16((const pcre2_code_16 **)a,b,c,d,G(e,16))
2184 pcre2_set_callout_16(G(a,16),(int (*)(pcre2_callout_block_16 *, void *))b,c);
2185 #define PCRE2_SET_CHARACTER_TABLES(a,b) pcre2_set_character_tables_16(G(a,16),b)
2187 pcre2_set_compile_recursion_guard_16(G(a,16),b,c)
2188 #define PCRE2_SET_DEPTH_LIMIT(a,b) pcre2_set_depth_limit_16(G(a,16),b)
2189 #define PCRE2_SET_GLOB_ESCAPE(r,a,b) r = pcre2_set_glob_escape_16(G(a,16),b)
2190 #define PCRE2_SET_GLOB_SEPARATOR(r,a,b) r = pcre2_set_glob_separator_16(G(a,16),b)
2191 #define PCRE2_SET_HEAP_LIMIT(a,b) pcre2_set_heap_limit_16(G(a,16),b)
2192 #define PCRE2_SET_MATCH_LIMIT(a,b) pcre2_set_match_limit_16(G(a,16),b)
2193 #define PCRE2_SET_MAX_PATTERN_LENGTH(a,b) pcre2_set_max_pattern_length_16(G(a,16),b)
2194 #define PCRE2_SET_OFFSET_LIMIT(a,b) pcre2_set_offset_limit_16(G(a,16),b)
2195 #define PCRE2_SET_PARENS_NEST_LIMIT(a,b) pcre2_set_parens_nest_limit_16(G(a,16),b)
2197 pcre2_set_substitute_callout_16(G(a,16), \
2200 a = pcre2_substitute_16(G(b,16),(PCRE2_SPTR16)c,d,e,f,G(g,16),h, \
2203 a = pcre2_substring_copy_byname_16(G(b,16),G(c,16),(PCRE2_UCHAR16 *)d,e)
2205 a = pcre2_substring_copy_bynumber_16(G(b,16),c,(PCRE2_UCHAR16 *)d,e)
2208 a = pcre2_substring_get_byname_16(G(b,16),G(c,16),(PCRE2_UCHAR16 **)d,e)
2210 a = pcre2_substring_get_bynumber_16(G(b,16),c,(PCRE2_UCHAR16 **)d,e)
2212 a = pcre2_substring_length_byname_16(G(b,16),G(c,16),d)
2214 a = pcre2_substring_length_bynumber_16(G(b,16),c,d)
2216 a = pcre2_substring_list_get_16(G(b,16),(PCRE2_UCHAR16 ***)c,d)
2220 a = pcre2_substring_number_from_name_16(G(b,16),G(c,16));
2221 #define PTR(x) (void *)G(x,16)
2222 #define SETFLD(x,y,z) G(x,16)->y = z
2223 #define SETFLDVEC(x,y,v,z) G(x,16)->y[v] = z
2224 #define SETOP(x,y,z) G(x,16) z y
2225 #define SETCASTPTR(x,y) G(x,16) = (uint16_t *)(y)
2227 #define SUB1(a,b) G(a,16)(G(b,16))
2228 #define SUB2(a,b,c) G(a,16)(G(b,16),G(c,16))
2229 #define TEST(x,r,y) (G(x,16) r (y))
2230 #define TESTFLD(x,f,r,y) (G(x,16)->f r (y))
2236 #define CASTFLD(t,a,b) (t)(G(a,32)->b)
2237 #define CASTVAR(t,x) (t)G(x,32)
2239 #define CONCTXCPY(a,b) memcpy(G(a,32),G(b,32),sizeof(pcre2_convert_context_32))
2240 #define CONVERT_COPY(a,b,c) memcpy(G(a,32),(char *)b, (c)*4)
2241 #define DATCTXCPY(a,b) memcpy(G(a,32),G(b,32),sizeof(pcre2_match_context_32))
2242 #define FLD(a,b) G(a,32)->b
2243 #define PATCTXCPY(a,b) memcpy(G(a,32),G(b,32),sizeof(pcre2_compile_context_32))
2251 #define PCRE2_CODE_COPY_FROM_VOID(a,b) G(a,32) = pcre2_code_copy_32(b)
2252 #define PCRE2_CODE_COPY_TO_VOID(a,b) a = (void *)pcre2_code_copy_32(G(b,32))
2253 #define PCRE2_CODE_COPY_WITH_TABLES_TO_VOID(a,b) a = (void *)pcre2_code_copy_with_tables_32(G(b,32))
2255 G(a,32) = pcre2_compile_32(G(b,32),c,d,e,f,g)
2259 a = pcre2_dfa_match_32(G(b,32),(PCRE2_SPTR32)c,d,e,f,G(g,32),h,i,j)
2261 r = pcre2_get_error_message_32(a,G(b,32),G(G(b,32),_size/4))
2262 #define PCRE2_GET_OVECTOR_COUNT(a,b) a = pcre2_get_ovector_count_32(G(b,32))
2263 #define PCRE2_GET_STARTCHAR(a,b) a = pcre2_get_startchar_32(G(b,32))
2264 #define PCRE2_JIT_COMPILE(r,a,b) r = pcre2_jit_compile_32(G(a,32),b)
2265 #define PCRE2_JIT_FREE_UNUSED_MEMORY(a) pcre2_jit_free_unused_memory_32(G(a,32))
2267 a = pcre2_jit_match_32(G(b,32),(PCRE2_SPTR32)c,d,e,f,G(g,32),h)
2271 pcre2_jit_stack_assign_32(G(a,32),(pcre2_jit_callback_32)b,c);
2275 a = pcre2_match_32(G(b,32),(PCRE2_SPTR32)c,d,e,f,G(g,32),h)
2276 #define PCRE2_MATCH_DATA_CREATE(a,b,c) G(a,32) = pcre2_match_data_create_32(b,c)
2278 G(a,32) = pcre2_match_data_create_from_pattern_32(G(b,32),c)
2279 #define PCRE2_MATCH_DATA_FREE(a) pcre2_match_data_free_32(G(a,32))
2280 …ATTERN_CONVERT(a,b,c,d,e,f,g) a = pcre2_pattern_convert_32(G(b,32),c,d,(PCRE2_UCHAR32 **)e,f,G(g,3…
2281 #define PCRE2_PATTERN_INFO(a,b,c,d) a = pcre2_pattern_info_32(G(b,32),c,d)
2284 r = pcre2_serialize_decode_32((pcre2_code_32 **)a,b,c,G(d,32))
2286 r = pcre2_serialize_encode_32((const pcre2_code_32 **)a,b,c,d,G(e,32))
2291 pcre2_set_callout_32(G(a,32),(int (*)(pcre2_callout_block_32 *, void *))b,c)
2292 #define PCRE2_SET_CHARACTER_TABLES(a,b) pcre2_set_character_tables_32(G(a,32),b)
2294 pcre2_set_compile_recursion_guard_32(G(a,32),b,c)
2295 #define PCRE2_SET_DEPTH_LIMIT(a,b) pcre2_set_depth_limit_32(G(a,32),b)
2296 #define PCRE2_SET_GLOB_ESCAPE(r,a,b) r = pcre2_set_glob_escape_32(G(a,32),b)
2297 #define PCRE2_SET_GLOB_SEPARATOR(r,a,b) r = pcre2_set_glob_separator_32(G(a,32),b)
2298 #define PCRE2_SET_HEAP_LIMIT(a,b) pcre2_set_heap_limit_32(G(a,32),b)
2299 #define PCRE2_SET_MATCH_LIMIT(a,b) pcre2_set_match_limit_32(G(a,32),b)
2300 #define PCRE2_SET_MAX_PATTERN_LENGTH(a,b) pcre2_set_max_pattern_length_32(G(a,32),b)
2301 #define PCRE2_SET_OFFSET_LIMIT(a,b) pcre2_set_offset_limit_32(G(a,32),b)
2302 #define PCRE2_SET_PARENS_NEST_LIMIT(a,b) pcre2_set_parens_nest_limit_32(G(a,32),b)
2304 pcre2_set_substitute_callout_32(G(a,32), \
2307 a = pcre2_substitute_32(G(b,32),(PCRE2_SPTR32)c,d,e,f,G(g,32),h, \
2310 a = pcre2_substring_copy_byname_32(G(b,32),G(c,32),(PCRE2_UCHAR32 *)d,e)
2312 a = pcre2_substring_copy_bynumber_32(G(b,32),c,(PCRE2_UCHAR32 *)d,e);
2315 a = pcre2_substring_get_byname_32(G(b,32),G(c,32),(PCRE2_UCHAR32 **)d,e)
2317 a = pcre2_substring_get_bynumber_32(G(b,32),c,(PCRE2_UCHAR32 **)d,e)
2319 a = pcre2_substring_length_byname_32(G(b,32),G(c,32),d)
2321 a = pcre2_substring_length_bynumber_32(G(b,32),c,d)
2323 a = pcre2_substring_list_get_32(G(b,32),(PCRE2_UCHAR32 ***)c,d)
2327 a = pcre2_substring_number_from_name_32(G(b,32),G(c,32));
2328 #define PTR(x) (void *)G(x,32)
2329 #define SETFLD(x,y,z) G(x,32)->y = z
2330 #define SETFLDVEC(x,y,v,z) G(x,32)->y[v] = z
2331 #define SETOP(x,y,z) G(x,32) z y
2332 #define SETCASTPTR(x,y) G(x,32) = (uint32_t *)(y)
2334 #define SUB1(a,b) G(a,32)(G(b,32))
2335 #define SUB2(a,b,c) G(a,32)(G(b,32),G(c,32))
2336 #define TEST(x,r,y) (G(x,32) r (y))
2337 #define TESTFLD(x,f,r,y) (G(x,32)->f r (y))
8928 G(general_context,BITS) = G(pcre2_general_context_create_,BITS)(&my_malloc, &my_free, NULL); \ in main()
8929 G(general_context_copy,BITS) = G(pcre2_general_context_copy_,BITS)(G(general_context,BITS)); \ in main()
8930 G(default_pat_context,BITS) = G(pcre2_compile_context_create_,BITS)(G(general_context,BITS)); \ in main()
8931 G(pat_context,BITS) = G(pcre2_compile_context_copy_,BITS)(G(default_pat_context,BITS)); \ in main()
8932 G(default_dat_context,BITS) = G(pcre2_match_context_create_,BITS)(G(general_context,BITS)); \ in main()
8933 G(dat_context,BITS) = G(pcre2_match_context_copy_,BITS)(G(default_dat_context,BITS)); \ in main()
8934 G(default_con_context,BITS) = G(pcre2_convert_context_create_,BITS)(G(general_context,BITS)); \ in main()
8935 G(con_context,BITS) = G(pcre2_convert_context_copy_,BITS)(G(default_con_context,BITS)); \ in main()
8936 G(match_data,BITS) = G(pcre2_match_data_create_,BITS)(max_oveccount, G(general_context,BITS)) in main()
8939 (void)G(pcre2_set_compile_extra_options_,BITS)(G(pat_context,BITS), 0); \ in main()
8940 (void)G(pcre2_set_max_pattern_length_,BITS)(G(pat_context,BITS), 0); \ in main()
8941 (void)G(pcre2_set_offset_limit_,BITS)(G(dat_context,BITS), 0); \ in main()
8942 …(void)G(pcre2_set_recursion_memory_management_,BITS)(G(dat_context,BITS), my_malloc, my_free, NULL… in main()
8943 (void)G(pcre2_get_match_data_size_,BITS)(G(match_data,BITS)) in main()
9183 G(pcre2_general_context_free_,BITS)(G(general_context,BITS)); \ in main()
9184 G(pcre2_general_context_free_,BITS)(G(general_context_copy,BITS)); \ in main()
9185 G(pcre2_compile_context_free_,BITS)(G(pat_context,BITS)); \ in main()
9186 G(pcre2_compile_context_free_,BITS)(G(default_pat_context,BITS)); \ in main()
9187 G(pcre2_match_context_free_,BITS)(G(dat_context,BITS)); \ in main()
9188 G(pcre2_match_context_free_,BITS)(G(default_dat_context,BITS)); \ in main()
9189 G(pcre2_convert_context_free_,BITS)(G(default_con_context,BITS)); \ in main()
9190 G(pcre2_convert_context_free_,BITS)(G(con_context,BITS)); in main()