Changeset View
Changeset View
Standalone View
Standalone View
lib/libc/locale/xlocale_private.h
Show First 20 Lines • Show All 85 Lines • ▼ Show 20 Lines | |||||
* retain count is less than 0, they are freed. | * retain count is less than 0, they are freed. | ||||
*/ | */ | ||||
struct xlocale_refcounted { | struct xlocale_refcounted { | ||||
/** Number of references to this component. */ | /** Number of references to this component. */ | ||||
long retain_count; | long retain_count; | ||||
/** Function used to destroy this component, if one is required*/ | /** Function used to destroy this component, if one is required*/ | ||||
void(*destructor)(void*); | void(*destructor)(void*); | ||||
}; | }; | ||||
#define XLOCALE_VERSION_LEN 12 | |||||
/** | /** | ||||
* Header for a locale component. All locale components must begin with this | * Header for a locale component. All locale components must begin with this | ||||
* header. | * header. | ||||
*/ | */ | ||||
struct xlocale_component { | struct xlocale_component { | ||||
struct xlocale_refcounted header; | struct xlocale_refcounted header; | ||||
/** Name of the locale used for this component. */ | /** Name of the locale used for this component. */ | ||||
char locale[ENCODING_LEN+1]; | char locale[ENCODING_LEN+1]; | ||||
/** Version of the data for this component. */ | |||||
char version[XLOCALE_VERSION_LEN]; | |||||
}; | }; | ||||
/** | /** | ||||
* xlocale structure, stores per-thread locale information. | * xlocale structure, stores per-thread locale information. | ||||
*/ | */ | ||||
struct _xlocale { | struct _xlocale { | ||||
struct xlocale_refcounted header; | struct xlocale_refcounted header; | ||||
/** Components for the locale. */ | /** Components for the locale. */ | ||||
▲ Show 20 Lines • Show All 145 Lines • Show Last 20 Lines |