mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
parent
606edc1d97
commit
35fc7606f0
3 changed files with 7 additions and 14 deletions
|
|
@ -1376,13 +1376,10 @@ sre_getlower(PyObject* self, PyObject* args)
|
|||
LOCAL(void)
|
||||
state_reset(SRE_STATE* state)
|
||||
{
|
||||
int i;
|
||||
|
||||
state->lastmark = 0;
|
||||
|
||||
/* FIXME: dynamic! */
|
||||
for (i = 0; i < SRE_MARK_SIZE; i++)
|
||||
state->mark[i] = NULL;
|
||||
memset(state->mark, 0, sizeof(*state->mark) * SRE_MARK_SIZE);
|
||||
|
||||
state->lastindex = -1;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue