diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2017-12-04 12:29:05 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-04 12:29:05 (GMT) |
commit | 70d56fb52582d9d3f7c00860d6e90570c6259371 (patch) | |
tree | 61e54b78f19535bfcf41d521b98def725de63497 /Modules/sre.h | |
parent | e69fbb6a560a02d0587b9075afd338a1e9073af0 (diff) | |
download | cpython-70d56fb52582d9d3f7c00860d6e90570c6259371.zip cpython-70d56fb52582d9d3f7c00860d6e90570c6259371.tar.gz cpython-70d56fb52582d9d3f7c00860d6e90570c6259371.tar.bz2 |
bpo-25054, bpo-1647489: Added support of splitting on zerowidth patterns. (#4471)
Also fixed searching patterns that could match an empty string.
Diffstat (limited to 'Modules/sre.h')
-rw-r--r-- | Modules/sre.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/sre.h b/Modules/sre.h index 585d284..a728488 100644 --- a/Modules/sre.h +++ b/Modules/sre.h @@ -67,6 +67,7 @@ typedef struct { void* end; /* end of original string */ /* attributes for the match object */ PyObject* string; + Py_buffer buffer; Py_ssize_t pos, endpos; int isbytes; int charsize; /* character size */ @@ -74,11 +75,12 @@ typedef struct { Py_ssize_t lastindex; Py_ssize_t lastmark; void** mark; + int match_all; + int must_advance; /* dynamically allocated stuff */ char* data_stack; size_t data_stack_size; size_t data_stack_base; - Py_buffer buffer; /* current repeat context */ SRE_REPEAT *repeat; } SRE_STATE; |