summaryrefslogtreecommitdiffstats
path: root/Objects/stringlib/ucs1lib.h
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2012-05-10 14:36:02 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2012-05-10 14:36:02 (GMT)
commitca5f91b888bc0056fc08d062f65cc783bbba8532 (patch)
tree6f40cd659395052192a79984ab96d6c4709eb491 /Objects/stringlib/ucs1lib.h
parentfda08b0860e4f5d61c54021efc56fd7893b4b391 (diff)
downloadcpython-ca5f91b888bc0056fc08d062f65cc783bbba8532.zip
cpython-ca5f91b888bc0056fc08d062f65cc783bbba8532.tar.gz
cpython-ca5f91b888bc0056fc08d062f65cc783bbba8532.tar.bz2
Issue #14738: Speed-up UTF-8 decoding on non-ASCII data. Patch by Serhiy Storchaka.
Diffstat (limited to 'Objects/stringlib/ucs1lib.h')
-rw-r--r--Objects/stringlib/ucs1lib.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Objects/stringlib/ucs1lib.h b/Objects/stringlib/ucs1lib.h
index ed2b0a3..e8c6fcb 100644
--- a/Objects/stringlib/ucs1lib.h
+++ b/Objects/stringlib/ucs1lib.h
@@ -7,6 +7,7 @@
#define STRINGLIB(F) ucs1lib_##F
#define STRINGLIB_OBJECT PyUnicodeObject
#define STRINGLIB_SIZEOF_CHAR 1
+#define STRINGLIB_MAX_CHAR 0xFFu
#define STRINGLIB_CHAR Py_UCS1
#define STRINGLIB_TYPE_NAME "unicode"
#define STRINGLIB_PARSE_CODE "U"