2 * slookup.c - static lookup of character sets.
8 #define ENUM_CHARSET(x) extern charset_spec const charset_##x;
12 static charset_spec
const *const cs_table
[] = {
14 #define ENUM_CHARSET(x) &charset_##x,
20 charset_spec
const *charset_find_spec(int charset
)
24 for (i
= 0; i
< (int)lenof(cs_table
); i
++)
25 if (cs_table
[i
]->charset
== charset
)