summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFredrik Lundh <fredrik@pythonware.com>2001-07-02 17:04:48 (GMT)
committerFredrik Lundh <fredrik@pythonware.com>2001-07-02 17:04:48 (GMT)
commitf71ae461bfb23bce2367a7bdad13cd08ef099555 (patch)
tree1953a576f6c7db5c7ffcc3914e3458aa5b813b2b
parent19af43d78a8bd85dc39ea62cc4bc130778cfc643 (diff)
downloadcpython-f71ae461bfb23bce2367a7bdad13cd08ef099555.zip
cpython-f71ae461bfb23bce2367a7bdad13cd08ef099555.tar.gz
cpython-f71ae461bfb23bce2367a7bdad13cd08ef099555.tar.bz2
pythonware repository roundtrip (untabification)
-rw-r--r--Modules/_sre.c25
1 files changed, 13 insertions, 12 deletions
diff --git a/Modules/_sre.c b/Modules/_sre.c
index 51a747a..16629bc 100644
--- a/Modules/_sre.c
+++ b/Modules/_sre.c
@@ -30,6 +30,7 @@
* 2001-04-15 fl export copyright as Python attribute, not global
* 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.
*
@@ -506,18 +507,18 @@ SRE_CHARSET(SRE_CODE* set, SRE_CODE ch)
set += 16;
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_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:
/* <CATEGORY> <code> */