aboutsummaryrefslogtreecommitdiff
path: root/locale/lc-collate.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-12-24 05:42:34 +0000
committerUlrich Drepper <drepper@redhat.com>1999-12-24 05:42:34 +0000
commit575b273bdc8b2fe0be70396486e9fbc400b2e641 (patch)
tree6df0b1bb75edc18a3786b5f7fe470ac7bce3ea73 /locale/lc-collate.c
parent46fd4f671c45b70909e03160aa4568db5f6c8556 (diff)
downloadglibc-575b273bdc8b2fe0be70396486e9fbc400b2e641.zip
glibc-575b273bdc8b2fe0be70396486e9fbc400b2e641.tar.gz
glibc-575b273bdc8b2fe0be70396486e9fbc400b2e641.tar.bz2
Update.
1999-12-23 Ulrich Drepper <drepper@cygnus.com> * locale/en_BW: New file. * locale/en_ZW: New file. Contributed by Schalk W. Cronjé <schalkc@ntaba.co.za>. Contributed by Schalk W. Cronjé <schalkc@ntaba.co.za>.
Diffstat (limited to 'locale/lc-collate.c')
-rw-r--r--locale/lc-collate.c39
1 files changed, 7 insertions, 32 deletions
diff --git a/locale/lc-collate.c b/locale/lc-collate.c
index c448e10..02262b5 100644
--- a/locale/lc-collate.c
+++ b/locale/lc-collate.c
@@ -21,47 +21,22 @@
#include <endian.h>
-extern const u_int32_t _nl_C_LC_COLLATE_symbol_hash[];
-extern const char _nl_C_LC_COLLATE_symbol_strings[];
-extern const u_int32_t _nl_C_LC_COLLATE_symbol_classes[];
-
-
_NL_CURRENT_DEFINE (LC_COLLATE);
-const u_int32_t *__collate_tablewc;
-const u_int32_t *__collate_extrawc;
-
-const u_int32_t *__collate_element_hash;
-const char *__collate_element_strings;
-const uint32_t *__collate_element_values;
-
-const u_int32_t *__collate_symbol_hash = _nl_C_LC_COLLATE_symbol_hash;
-const char *__collate_symbol_strings = _nl_C_LC_COLLATE_symbol_strings;
-const u_int32_t *__collate_symbol_classeswc = _nl_C_LC_COLLATE_symbol_classes;
-
+const int32_t *__collate_tablemb;
+const unsigned char *__collate_weightmb;
+const unsigned char *__collate_extramb;
/* We are called after loading LC_CTYPE data to load it into
the variables used by the collation functions and regex. */
void
_nl_postload_collate (void)
{
-#if 0
- /* XXX For now */
#define paste(a,b) paste1(a,b)
#define paste1(a,b) a##b
+#define current(x) _NL_CURRENT (LC_COLLATE, paste(_NL_COLLATE_,x))
-#define current(x) \
- ((const unsigned int *) _NL_CURRENT (LC_COLLATE, paste(_NL_COLLATE_,x)))
-
- __collate_tablewc = current (TABLEWC);
- __collate_extrawc = current (EXTRAWC);
-
- __collate_element_hash = current (ELEM_HASH);
- __collate_element_strings = (const char *) current (ELEM_STR_POOL);
- __collate_element_values = (const uint32_t *) current (ELEM_VAL);
-
- __collate_symbol_hash = current (SYMB_HASH);
- __collate_symbol_strings = (const char *) current (SYMB_STR_POOL);
- __collate_symbol_classeswc = current (SYMB_CLASSWC);
-#endif
+ __collate_tablemb = (const int32_t *) current (TABLEMB);
+ __collate_weightmb = (const unsigned char *) current (WEIGHTMB);
+ __collate_extramb = (const unsigned char *) current (EXTRAMB);
}