[Python-checkins] CVS: python/dist/src/Modules _sre.c,2.16,2.17

Fredrik Lundh python-dev@python.org
2000年6月30日 14:40:23 -0700


Update of /cvsroot/python/python/dist/src/Modules
In directory slayer.i.sourceforge.net:/tmp/cvs-serv19117/Modules
Modified Files:
	_sre.c 
Log Message:
-- changed $ to match before a trailing newline, even
 if the multiline flag isn't given.
Index: _sre.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/_sre.c,v
retrieving revision 2.16
retrieving revision 2.17
diff -C2 -r2.16 -r2.17
*** _sre.c	2000年06月30日 13:55:15	2.16
--- _sre.c	2000年06月30日 21:40:20	2.17
***************
*** 311,315 ****
 
 	case SRE_AT_END:
! 		return ((void*) ptr == state->end);
 
 	case SRE_AT_END_LINE:
--- 311,317 ----
 
 	case SRE_AT_END:
! return (((void*) (ptr+1) == state->end &&
! SRE_IS_LINEBREAK((int) ptr[0])) ||
! ((void*) ptr == state->end));
 
 	case SRE_AT_END_LINE:

AltStyle によって変換されたページ (->オリジナル) /