summaryrefslogtreecommitdiffstats
path: root/Modules/sre.h
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2012-03-07 20:50:25 (GMT)
committerBenjamin Peterson <benjamin@python.org>2012-03-07 20:50:25 (GMT)
commite48944b69c5c720a9ae5631daa4dbf27e8369371 (patch)
tree9636e80fbb8cd60b66490a18be47b584c386c3ae /Modules/sre.h
parent30b8e5461d4d913365ae4151616089107ec9cfac (diff)
downloadcpython-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.h2
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 */