[Python-checkins] CVS: python/dist/src/Modules _sre.c,2.58,2.59
Fredrik Lundh
effbot@users.sourceforge.net
Mon, 02 Jul 2001 12:54:30 -0700
Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv18524/Modules
Modified Files:
_sre.c
Log Message:
reapplied darryl gallion's minimizing repeat fix. I'm still not 100%
sure about this one, but test #133283 now works even with the fix in
place, and so does the test suite. we'll see what comes up...
Index: _sre.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/_sre.c,v
retrieving revision 2.58
retrieving revision 2.59
diff -C2 -r2.58 -r2.59
*** _sre.c 2001/07/02 17:04:48 2.58
--- _sre.c 2001/07/02 19:54:28 2.59
***************
*** 1105,1109 ****
state->repeat = rp->prev;
/* FIXME: the following fix doesn't always work (#133283) */
! if (0 && rp->pattern[2] == 65535) {
/* unbounded repeat */
for (;;) {
--- 1105,1109 ----
state->repeat = rp->prev;
/* FIXME: the following fix doesn't always work (#133283) */
! if (rp->pattern[2] == 65535) {
/* unbounded repeat */
for (;;) {