Changeset f3386d7 in mainline for uspace/lib/posix/include/posix/locale.h
- Timestamp:
- 2013-07-15T20:44:54Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f8d3df3
- Parents:
- 273c976 (diff), a940f1d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/include/posix/locale.h
r273c976 rf3386d7 36 36 #define POSIX_LOCALE_H_ 37 37 38 #ifndef __POSIX_DEF__ 39 #define __POSIX_DEF__(x) x 40 #endif 41 38 42 #ifndef NULL 39 43 #define NULL ((void *) 0) … … 42 46 #ifndef __locale_t_defined 43 47 #define __locale_t_defined 44 typedef struct __posix_locale * posix_locale_t;48 typedef struct __posix_locale *__POSIX_DEF__(locale_t); 45 49 #ifndef LIBPOSIX_INTERNAL 46 #define locale_t posix_locale_t50 #define locale_t __POSIX_DEF__(locale_t) 47 51 #endif 48 52 #endif … … 82 86 #define LC_GLOBAL_LOCALE NULL 83 87 84 struct posix_lconv{88 struct __POSIX_DEF__(lconv) { 85 89 char *currency_symbol; 86 90 char *decimal_point; … … 109 113 }; 110 114 111 extern char * posix_setlocale(int category, const char *locale);112 extern struct posix_lconv *posix_localeconv(void);115 extern char *__POSIX_DEF__(setlocale)(int category, const char *locale); 116 extern struct __POSIX_DEF__(lconv) *__POSIX_DEF__(localeconv)(void); 113 117 114 118 /* POSIX Extensions */ 115 extern posix_locale_t posix_duplocale(posix_locale_tlocobj);116 extern void posix_freelocale(posix_locale_tlocobj);117 extern posix_locale_t posix_newlocale(int category_mask, const char *locale,118 posix_locale_tbase);119 extern posix_locale_t posix_uselocale(posix_locale_tnewloc);119 extern __POSIX_DEF__(locale_t) __POSIX_DEF__(duplocale)(__POSIX_DEF__(locale_t) locobj); 120 extern void __POSIX_DEF__(freelocale)(__POSIX_DEF__(locale_t) locobj); 121 extern __POSIX_DEF__(locale_t) __POSIX_DEF__(newlocale)(int category_mask, const char *locale, 122 __POSIX_DEF__(locale_t) base); 123 extern __POSIX_DEF__(locale_t) __POSIX_DEF__(uselocale)(__POSIX_DEF__(locale_t) newloc); 120 124 121 #ifndef LIBPOSIX_INTERNAL122 #define lconv posix_lconv123 124 #define setlocale posix_setlocale125 #define localeconv posix_localeconv126 127 #define newlocale posix_newlocale128 #define uselocale posix_uselocale129 #define duplocale posix_duplocale130 #define freelocale posix_freelocale131 #endif132 125 133 126 #endif /* POSIX_LOCALE_H_ */
Note:
See TracChangeset
for help on using the changeset viewer.