summaryrefslogtreecommitdiff
path: root/src/pcre2posix.h
diff options
context:
space:
mode:
authorph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069>2017-06-05 18:25:47 +0000
committerph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069>2017-06-05 18:25:47 +0000
commit3bb618c91795bc56f3062d7e09f4950b84a064d9 (patch)
tree6b00b279d05ab6ecd19d83a5783f9034b6cf12a6 /src/pcre2posix.h
parent5b20a763d32c58e8b2184a5393f8efe0144c28b9 (diff)
downloadpcre2-3bb618c91795bc56f3062d7e09f4950b84a064d9.tar.gz
Implement REG_PEND (GNU extension) for the POSIX wrapper.
git-svn-id: svn://vcs.exim.org/pcre2/code/trunk@820 6239d852-aaf2-0410-a92c-79f79f948069
Diffstat (limited to 'src/pcre2posix.h')
-rw-r--r--src/pcre2posix.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/pcre2posix.h b/src/pcre2posix.h
index 6505976..c17be3b 100644
--- a/src/pcre2posix.h
+++ b/src/pcre2posix.h
@@ -62,6 +62,7 @@ extern "C" {
#define REG_NOTEMPTY 0x0100 /* NOT defined by POSIX; maps to PCRE2_NOTEMPTY */
#define REG_UNGREEDY 0x0200 /* NOT defined by POSIX; maps to PCRE2_UNGREEDY */
#define REG_UCP 0x0400 /* NOT defined by POSIX; maps to PCRE2_UCP */
+#define REG_PEND 0x0800 /* GNU feature: pass end pattern by re_endp */
/* This is not used by PCRE2, but by defining it we make it easier
to slot PCRE2 into existing programs that make POSIX calls. */
@@ -91,11 +92,13 @@ enum {
};
-/* The structure representing a compiled regular expression. */
+/* The structure representing a compiled regular expression. It is also used
+for passing the pattern end pointer when REG_PEND is set. */
typedef struct {
void *re_pcre2_code;
void *re_match_data;
+ const char *re_endp;
size_t re_nsub;
size_t re_erroffset;
int re_cflags;