[Python-checkins] CVS: python/dist/src/Modules _sre.c,2.57,2.58
Fredrik Lundh
effbot@users.sourceforge.net
Mon, 02 Jul 2001 10:04:50 -0700
Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv2526/Modules
Modified Files:
_sre.c
Log Message:
pythonware repository roundtrip (untabification)
Index: _sre.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/_sre.c,v
retrieving revision 2.57
retrieving revision 2.58
diff -C2 -r2.57 -r2.58
*** _sre.c 2001/07/02 16:58:38 2.57
--- _sre.c 2001/07/02 17:04:48 2.58
***************
*** 31,34 ****
--- 31,35 ----
* 2001-04-28 fl added __copy__ methods (work in progress)
* 2001-05-14 fl fixes for 1.5.2
+ * 2001-07-01 fl added BIGCHARSET support (from Martin von Loewis)
*
* Copyright (c) 1997-2001 by Secret Labs AB. All rights reserved.
***************
*** 507,522 ****
break;
! case SRE_OP_BIGCHARSET:
! /* <BIGCHARSET> <blockcount> <256 blockindices> <blocks> */
! {
! int count, block;
! count = *(set++);
! block = ((unsigned char*)set)[ch >> 8];
! set += 128;
! if (set[block*16 + ((ch & 255)>>4)] & (1 << (ch & 15)))
! return ok;
! set += count*16;
! break;
! }
case SRE_OP_CATEGORY:
--- 508,523 ----
break;
! case SRE_OP_BIGCHARSET:
! /* <BIGCHARSET> <blockcount> <256 blockindices> <blocks> */
! {
! int count, block;
! count = *(set++);
! block = ((unsigned char*)set)[ch >> 8];
! set += 128;
! if (set[block*16 + ((ch & 255)>>4)] & (1 << (ch & 15)))
! return ok;
! set += count*16;
! break;
! }
case SRE_OP_CATEGORY: