diff options
author | Fredrik Lundh <fredrik@pythonware.com> | 2000-07-02 17:33:27 (GMT) |
---|---|---|
committer | Fredrik Lundh <fredrik@pythonware.com> | 2000-07-02 17:33:27 (GMT) |
commit | 7cafe4d7e466996d5fc32e871fe834e0e0c94282 (patch) | |
tree | dc3572d1d6bd95316c7a044cfd8639be014e3520 /Modules/sre.h | |
parent | b19948b7fb96cfc2ed69bb58f2205d1399f1f9f5 (diff) | |
download | cpython-7cafe4d7e466996d5fc32e871fe834e0e0c94282.zip cpython-7cafe4d7e466996d5fc32e871fe834e0e0c94282.tar.gz cpython-7cafe4d7e466996d5fc32e871fe834e0e0c94282.tar.bz2 |
- actually enabled charset anchors in the engine (still not
used by the code generator)
- changed max repeat value in engine (to match earlier array fix)
- added experimental "which part matched?" mechanism to sre; see
http://hem.passagen.se/eff/2000_07_01_bot-archive.htm#416954
or python-dev for details.
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 274f085..7e7d835 100644 --- a/Modules/sre.h +++ b/Modules/sre.h @@ -33,6 +33,7 @@ typedef struct { PyObject_HEAD PyObject* string; /* link to the target string */ PatternObject* pattern; /* link to the regex (pattern) object */ + int index; /* last index marker seen by the engine (-1 if none) */ int groups; /* number of groups (start/end marks) */ int mark[2]; } MatchObject; @@ -57,6 +58,7 @@ typedef struct { /* character size */ int charsize; /* registers */ + int index; int lastmark; void* mark[SRE_MARK_SIZE]; /* backtracking stack */ |