diff options
Diffstat (limited to 'src/pcre2_pattern_info.c')
-rw-r--r-- | src/pcre2_pattern_info.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/pcre2_pattern_info.c b/src/pcre2_pattern_info.c index 98482f9..0392a0b 100644 --- a/src/pcre2_pattern_info.c +++ b/src/pcre2_pattern_info.c @@ -97,6 +97,7 @@ if (where == NULL) /* Requests field length */ case PCRE2_INFO_JITSIZE: case PCRE2_INFO_SIZE: + case PCRE2_INFO_FRAMESIZE: return sizeof(size_t); case PCRE2_INFO_NAMETABLE: @@ -157,6 +158,11 @@ switch(what) &(re->start_bitmap[0]) : NULL; break; + case PCRE2_INFO_FRAMESIZE: + *((size_t *)where) = sizeof(heapframe) + + ((re->top_bracket - 1) * 2 * sizeof(PCRE2_SIZE)); + break; + case PCRE2_INFO_HASBACKSLASHC: *((uint32_t *)where) = (re->flags & PCRE2_HASBKC) != 0; break; |