diff options
author | Benjamin Peterson <benjamin@python.org> | 2012-03-07 20:50:25 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2012-03-07 20:50:25 (GMT) |
commit | e48944b69c5c720a9ae5631daa4dbf27e8369371 (patch) | |
tree | 9636e80fbb8cd60b66490a18be47b584c386c3ae /Modules/sre.h | |
parent | 30b8e5461d4d913365ae4151616089107ec9cfac (diff) | |
download | cpython-e48944b69c5c720a9ae5631daa4dbf27e8369371.zip cpython-e48944b69c5c720a9ae5631daa4dbf27e8369371.tar.gz cpython-e48944b69c5c720a9ae5631daa4dbf27e8369371.tar.bz2 |
keep the buffer object around while we're using it (closes #14212)
Diffstat (limited to 'Modules/sre.h')
-rw-r--r-- | Modules/sre.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/sre.h b/Modules/sre.h index 518c11d..aec9b54 100644 --- a/Modules/sre.h +++ b/Modules/sre.h @@ -31,6 +31,7 @@ typedef struct { int flags; /* flags used when compiling pattern source */ PyObject *weakreflist; /* List of weak references */ int charsize; /* pattern charsize (or -1) */ + Py_buffer view; /* pattern code */ Py_ssize_t codesize; SRE_CODE code[1]; @@ -80,6 +81,7 @@ typedef struct { char* data_stack; size_t data_stack_size; size_t data_stack_base; + Py_buffer buffer; /* current repeat context */ SRE_REPEAT *repeat; /* hooks */ |