diff options
author | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2011-12-02 11:39:21 +0000 |
---|---|---|
committer | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2011-12-02 11:39:21 +0000 |
commit | 0ca9f2fe960116f87e44542eb426f4f6dc5ec522 (patch) | |
tree | 4ed103c208086e65b3529c2fd74d34afc5891e59 /doc | |
parent | 3d39f0a5f16085686668180e80e3008cb3fe878f (diff) | |
download | pcre-0ca9f2fe960116f87e44542eb426f4f6dc5ec522.tar.gz |
Preserve the size of JIT compiled code. Add PCRE_INFO_JITSIZE and use it for
the /M option in pcretest.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@780 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'doc')
-rw-r--r-- | doc/pcreapi.3 | 8 | ||||
-rw-r--r-- | doc/pcretest.1 | 7 |
2 files changed, 12 insertions, 3 deletions
diff --git a/doc/pcreapi.3 b/doc/pcreapi.3 index 22b9d15..7a352fd 100644 --- a/doc/pcreapi.3 +++ b/doc/pcreapi.3 @@ -1147,6 +1147,12 @@ particular pattern. See the .\" documentation for details of what can and cannot be handled. .sp + PCRE_INFO_JITSIZE +.sp +If the pattern was successfully studied with the PCRE_STUDY_JIT_COMPILE option, +return the size of the JIT compiled code, otherwise return zero. The fourth +argument should point to a \fBsize_t\fP variable. +.sp PCRE_INFO_LASTLITERAL .sp Return the value of the rightmost literal byte that must exist in any matched @@ -2547,6 +2553,6 @@ Cambridge CB2 3QH, England. .rs .sp .nf -Last updated: 01 December 2011 +Last updated: 02 December 2011 Copyright (c) 1997-2011 University of Cambridge. .fi diff --git a/doc/pcretest.1 b/doc/pcretest.1 index 2689bfa..31656cf 100644 --- a/doc/pcretest.1 +++ b/doc/pcretest.1 @@ -319,7 +319,10 @@ as the tables pointer; that is, \fB/L\fP applies only to the expression on which it appears. .P The \fB/M\fP modifier causes the size of memory block used to hold the compiled -pattern to be output. +pattern to be output. This does not include the size of the \fBpcre\fP block; +it is just the actual compiled data. If the pattern is successfully studied +with the PCRE_STUDY_JIT_COMPILE option, the size of the JIT compiled code is +also output. .P If the \fB/S\fP modifier appears once, it causes \fBpcre_study()\fP to be called after the expression has been compiled, and the results used when the @@ -875,6 +878,6 @@ Cambridge CB2 3QH, England. .rs .sp .nf -Last updated: 26 August 2011 +Last updated: 02 December 2011 Copyright (c) 1997-2011 University of Cambridge. .fi |