svn rev #22344: trunk/src/lib/krb5/unicode/ure/
raeburn@MIT.EDU
raeburn at MIT.EDU
Mon May 11 19:34:57 EDT 2009
http://src.mit.edu/fisheye/changelog/krb5/?cs=22344
Commit By: raeburn
Log Message:
reduce character-class table entry size (40%) based on limited data ranges; make table const
Changed Files:
U trunk/src/lib/krb5/unicode/ure/ure.c
Modified: trunk/src/lib/krb5/unicode/ure/ure.c
===================================================================
--- trunk/src/lib/krb5/unicode/ure/ure.c 2009-05-11 22:46:56 UTC (rev 22343)
+++ trunk/src/lib/krb5/unicode/ure/ure.c 2009-05-11 23:34:56 UTC (rev 22344)
@@ -547,8 +547,8 @@
typedef struct {
ucs2_t key;
- unsigned long len;
- unsigned long next;
+ unsigned int len : 8;
+ unsigned int next : 8;
_ure_cclsetup_t func;
unsigned long mask;
} _ure_trie_t;
@@ -600,7 +600,7 @@
_ure_add_range(&sym->sym.ccl, &range, b);
}
-static _ure_trie_t cclass_trie[] = {
+static const _ure_trie_t cclass_trie[] = {
{0x003a, 1, 1, 0, 0},
{0x0061, 9, 10, 0, 0},
{0x0063, 8, 19, 0, 0},
@@ -678,7 +678,7 @@
{
int i;
unsigned long n;
- _ure_trie_t *tp;
+ const _ure_trie_t *tp;
ucs2_t *sp, *ep;
/*
More information about the cvs-krb5
mailing list