X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/b75a7d8f3b4adbae880cab104ce2c6a50eee4db2..635ab21dab8439adcb4398246a23211b9a46cc1a:/icuSources/i18n/ucln_in.c diff --git a/icuSources/i18n/ucln_in.c b/icuSources/i18n/ucln_in.c index 1f92321c..34653e07 100644 --- a/icuSources/i18n/ucln_in.c +++ b/icuSources/i18n/ucln_in.c @@ -1,11 +1,11 @@ /* ****************************************************************************** * * -* Copyright (C) 2001-2003, International Business Machines * +* Copyright (C) 2001-2004, International Business Machines * * Corporation and others. All Rights Reserved. * * * ****************************************************************************** -* file name: ucln_cmn.c +* file name: ucln_in.c * encoding: US-ASCII * tab size: 8 (not used) * indentation:4 @@ -16,38 +16,35 @@ #include "ucln.h" #include "ucln_in.h" +#include "uassert.h" /* Leave this copyright notice here! It needs to go somewhere in this library. */ static const char copyright[] = U_COPYRIGHT_STRING; +static cleanupFunc *gCleanupFunctions[UCLN_I18N_COUNT]; + static UBool i18n_cleanup(void) { -#if !UCONFIG_NO_TRANSLITERATION - transliterator_cleanup(); -#endif - -#if !UCONFIG_NO_REGULAR_EXPRESSIONS - regex_cleanup(); -#endif - -#if !UCONFIG_NO_FORMATTING - calendar_cleanup(); - numfmt_cleanup(); - currency_cleanup(); - timeZone_cleanup(); -#endif - -#if !UCONFIG_NO_COLLATION - collator_cleanup(); - ucol_cleanup(); - ucol_bld_cleanup(); -#endif - + ECleanupI18NType libType; + + for (libType = UCLN_I18N_START+1; libType