summaryrefslogtreecommitdiffstats
path: root/usr.sbin/nginx/src/pcre/pcre_fullinfo.c
diff options
context:
space:
mode:
authorrobert <robert@openbsd.org>2011-12-14 21:53:38 +0000
committerrobert <robert@openbsd.org>2011-12-14 21:53:38 +0000
commit1b47847038c012dc84c1d23c32bde0a7185b54ad (patch)
tree1cb8a149942c88704a4d53cf93068facf23077cd /usr.sbin/nginx/src/pcre/pcre_fullinfo.c
parentmove show_queue() and related functions from queue_shared.c (diff)
downloadwireguard-openbsd-1b47847038c012dc84c1d23c32bde0a7185b54ad.tar.xz
wireguard-openbsd-1b47847038c012dc84c1d23c32bde0a7185b54ad.zip
merge pcre-8.21
Diffstat (limited to 'usr.sbin/nginx/src/pcre/pcre_fullinfo.c')
-rw-r--r--usr.sbin/nginx/src/pcre/pcre_fullinfo.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/usr.sbin/nginx/src/pcre/pcre_fullinfo.c b/usr.sbin/nginx/src/pcre/pcre_fullinfo.c
index b08067de738..4895b2aab2d 100644
--- a/usr.sbin/nginx/src/pcre/pcre_fullinfo.c
+++ b/usr.sbin/nginx/src/pcre/pcre_fullinfo.c
@@ -100,6 +100,19 @@ switch (what)
*((size_t *)where) = (study == NULL)? 0 : study->size;
break;
+ case PCRE_INFO_JITSIZE:
+#ifdef SUPPORT_JIT
+ *((size_t *)where) =
+ (extra_data != NULL &&
+ (extra_data->flags & PCRE_EXTRA_EXECUTABLE_JIT) != 0 &&
+ extra_data->executable_jit != NULL)?
+ _pcre_jit_get_size(extra_data->executable_jit) : 0;
+#else
+ *((size_t *)where) = 0;
+#endif
+
+ break;
+
case PCRE_INFO_CAPTURECOUNT:
*((int *)where) = re->top_bracket;
break;