diff options
author | ph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069> | 2017-12-22 15:56:27 +0000 |
---|---|---|
committer | ph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069> | 2017-12-22 15:56:27 +0000 |
commit | 1c19b1fe61481390f7c5b33d5a67cd7b9978f4ba (patch) | |
tree | b5d9ef472dc977ae6bdbf731b2c0a2d90635a2e8 /src/pcre2.h.in | |
parent | a0ed1419b31b7a3c778223d6ab45bec4dc491bda (diff) | |
download | pcre2-1c19b1fe61481390f7c5b33d5a67cd7b9978f4ba.tar.gz |
Add callout_flags to callout blocks, and set bits within it from pcre2_match()
interpretation.
git-svn-id: svn://vcs.exim.org/pcre2/code/trunk@893 6239d852-aaf2-0410-a92c-79f79f948069
Diffstat (limited to 'src/pcre2.h.in')
-rw-r--r-- | src/pcre2.h.in | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/pcre2.h.in b/src/pcre2.h.in index 6718689..a3a3fa6 100644 --- a/src/pcre2.h.in +++ b/src/pcre2.h.in @@ -494,6 +494,11 @@ without changing the API of the function, thereby allowing old clients to work without modification. Define the generic version in a macro; the width-specific versions are generated from this macro below. */ +/* Flags for the callout_flags field. These are cleared after a callout. */ + +#define PCRE2_CALLOUT_STARTMATCH 0x00000001u /* Set for each bumpalong */ +#define PCRE2_CALLOUT_BACKTRACK 0x00000002u /* Set after a backtrack */ + #define PCRE2_STRUCTURE_LIST \ typedef struct pcre2_callout_block { \ uint32_t version; /* Identifies version of block */ \ @@ -513,6 +518,8 @@ typedef struct pcre2_callout_block { \ PCRE2_SIZE callout_string_offset; /* Offset to string within pattern */ \ PCRE2_SIZE callout_string_length; /* Length of string compiled into pattern */ \ PCRE2_SPTR callout_string; /* String compiled into pattern */ \ + /* ------------------- Added for Version 2 -------------------------- */ \ + uint32_t callout_flags; /* See above for list */ \ /* ------------------------------------------------------------------ */ \ } pcre2_callout_block; \ \ |