Changeset 3053 for branches/libc-0.6
- Timestamp:
- Apr 8, 2007, 7:07:36 PM (19 years ago)
- Location:
- branches/libc-0.6/src/emx
- Files:
-
- 3 edited
-
include/InnoTekLIBC/locale.h (modified) (2 diffs)
-
src/lib/locale/locale_collate.c (modified) (1 diff)
-
src/lib/locale/setlocale.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/libc-0.6/src/emx/include/InnoTekLIBC/locale.h
r2511 r3053 237 237 /** String collation information. */ 238 238 extern __LIBC_LOCALECOLLATE __libc_gLocaleCollate; 239 240 239 241 /** Character case conversion tables. */ 240 242 extern __LIBC_LOCALECTYPE __libc_GLocaleCtype; … … 242 244 extern const __LIBC_LOCALECTYPE __libc_GLocaleCtypeDefault; 243 245 /** Cached Unicode (__wchar_t) case conversion tables and flags. */ 244 extern __LIBC_LOCALEWCTYPE __libc_GLocaleWCtype;246 extern __LIBC_LOCALEWCTYPE __libc_GLocaleWCtype; 245 247 /** Locale information structure. */ 246 248 extern __LIBC_LOCALELCONV __libc_gLocaleLconv; -
branches/libc-0.6/src/emx/src/lib/locale/locale_collate.c
r3003 r3053 75 75 }; 76 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 -
branches/libc-0.6/src/emx/src/lib/locale/setlocale.c
r2511 r3053 221 221 static int query_mbcs(UconvObject uobj, char *mbcs, unsigned char *au2MBCSPrefixs); 222 222 223 static int localeCollateDo(__LIBC_PLOCALECOLLATE pCollate, UconvObject uobj, LocaleObject lobj );223 static int localeCollateDo(__LIBC_PLOCALECOLLATE pCollate, UconvObject uobj, LocaleObject lobj); 224 224 static void localeCollateFree(__LIBC_PLOCALECOLLATE pCollate); 225 225 static inline unsigned char Transform(LocaleObject lobj, UconvObject uobj, … … 384 384 * @param uobj The UconvObject to use. Collate is responsible for freeing it. 385 385 * @param lobj The LocaleObject to use. Collate is responsible for freeing it. 386 */ 387 static int localeCollateDo(__LIBC_PLOCALECOLLATE pCollate, UconvObject uobj, LocaleObject lobj) 386 * @param pszLocale Pointer to the locale base specifier. 387 */ 388 static int localeCollateDo(__LIBC_PLOCALECOLLATE pCollate, UconvObject uobj, LocaleObject lobj, const char *pszLocale) 388 389 { 389 390 int rc; … … 391 392 /* Cleanup in case of some special LC_ALL call. */ 392 393 localeCollateFree(pCollate); 394 395 396 397 398 399 400 401 402 403 393 404 394 405 /* … … 435 446 aCW[i].len = sizeof(aCW[i].ucsWeight) / sizeof(aCW[i].ucsWeight[0]); 436 447 } 448 449 450 451 452 437 453 } 438 454 … … 505 521 * @param uobj The UconvObject to use. Ctype is responsible for freeing it. 506 522 * @param lobj The LocaleObject to use. Ctype is responsible for freeing it. 523 507 524 * @param pszCodeset The codeset used. 508 525 */ … … 1221 1238 * @returns negated errno on failure. 1222 1239 * @param pszCodepage Pointer to where the codepage specifier starts. 1240 1241 1223 1242 * @param pucsCodepage Where to store the code page. 1224 1243 * @param cucCodepage Number of UniChar's in the buffer. … … 1396 1415 { 1397 1416 case LC_COLLATE: 1398 rc = localeCollateDo(&pTemp->Collate, uobj, lobj );1417 rc = localeCollateDo(&pTemp->Collate, uobj, lobj); 1399 1418 fFree = rc != 0; 1400 1419 break;
Note:
See TracChangeset
for help on using the changeset viewer.
