| 323 |
|
|
| 324 |
/* Check a class for variable quantification */ |
/* Check a class for variable quantification */ |
| 325 |
|
|
| 326 |
#if defined SUPPORT_UTF8 || !defined COMPILE_PCRE8 |
#if defined SUPPORT_UTF || !defined COMPILE_PCRE8 |
| 327 |
case OP_XCLASS: |
case OP_XCLASS: |
| 328 |
cc += GET(cc, 1) - PRIV(OP_lengths)[OP_CLASS]; |
cc += GET(cc, 1) - PRIV(OP_lengths)[OP_CLASS]; |
| 329 |
/* Fall through */ |
/* Fall through */ |
| 824 |
case OP_SOM: |
case OP_SOM: |
| 825 |
case OP_THEN: |
case OP_THEN: |
| 826 |
case OP_THEN_ARG: |
case OP_THEN_ARG: |
| 827 |
#if defined SUPPORT_UTF8 || !defined COMPILE_PCRE8 |
#if defined SUPPORT_UTF || !defined COMPILE_PCRE8 |
| 828 |
case OP_XCLASS: |
case OP_XCLASS: |
| 829 |
#endif |
#endif |
| 830 |
return SSB_FAIL; |
return SSB_FAIL; |
| 1325 |
return NULL; |
return NULL; |
| 1326 |
} |
} |
| 1327 |
|
|
| 1328 |
|
if ((re->flags & PCRE_MODE) == 0) |
| 1329 |
|
{ |
| 1330 |
|
#ifdef COMPILE_PCRE8 |
| 1331 |
|
*errorptr = "argument is compiled in 16 bit mode"; |
| 1332 |
|
#else |
| 1333 |
|
*errorptr = "argument is compiled in 8 bit mode"; |
| 1334 |
|
#endif |
| 1335 |
|
return NULL; |
| 1336 |
|
} |
| 1337 |
|
|
| 1338 |
if ((options & ~PUBLIC_STUDY_OPTIONS) != 0) |
if ((options & ~PUBLIC_STUDY_OPTIONS) != 0) |
| 1339 |
{ |
{ |
| 1340 |
*errorptr = "unknown or incorrect option bit(s) set"; |
*errorptr = "unknown or incorrect option bit(s) set"; |
| 1356 |
/* Set the character tables in the block that is passed around */ |
/* Set the character tables in the block that is passed around */ |
| 1357 |
|
|
| 1358 |
tables = re->tables; |
tables = re->tables; |
| 1359 |
|
|
| 1360 |
|
#ifdef COMPILE_PCRE8 |
| 1361 |
if (tables == NULL) |
if (tables == NULL) |
| 1362 |
(void)pcre_fullinfo(external_re, NULL, PCRE_INFO_DEFAULT_TABLES, |
(void)pcre_fullinfo(external_re, NULL, PCRE_INFO_DEFAULT_TABLES, |
| 1363 |
(void *)(&tables)); |
(void *)(&tables)); |
| 1364 |
|
#else |
| 1365 |
|
if (tables == NULL) |
| 1366 |
|
(void)pcre16_fullinfo(external_re, NULL, PCRE_INFO_DEFAULT_TABLES, |
| 1367 |
|
(void *)(&tables)); |
| 1368 |
|
#endif |
| 1369 |
|
|
| 1370 |
compile_block.lcc = tables + lcc_offset; |
compile_block.lcc = tables + lcc_offset; |
| 1371 |
compile_block.fcc = tables + fcc_offset; |
compile_block.fcc = tables + fcc_offset; |