00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef _LOADINFO_H
00020 #define _LOADINFO_H 1
00021
00022 #ifndef PARAMS
00023 # if __STDC__
00024 # define PARAMS(args) args
00025 # else
00026 # define PARAMS(args) ()
00027 # endif
00028 #endif
00029
00030 #ifndef internal_function
00031 # define internal_function
00032 #endif
00033
00034
00035
00036 #ifndef HAVE_BUILTIN_EXPECT
00037 # define __builtin_expect(expr, val) (expr)
00038 #endif
00039
00040
00041 #if defined _WIN32 || defined __WIN32__ || defined __EMX__ || defined __DJGPP__
00042
00043 # define PATH_SEPARATOR ';'
00044 #else
00045
00046 # define PATH_SEPARATOR ':'
00047 #endif
00048
00049
00050 #define CEN_REVISION 1
00051 #define CEN_SPONSOR 2
00052 #define CEN_SPECIAL 4
00053 #define XPG_NORM_CODESET 8
00054 #define XPG_CODESET 16
00055 #define TERRITORY 32
00056 #define CEN_AUDIENCE 64
00057 #define XPG_MODIFIER 128
00058
00059 #define CEN_SPECIFIC (CEN_REVISION|CEN_SPONSOR|CEN_SPECIAL|CEN_AUDIENCE)
00060 #define XPG_SPECIFIC (XPG_CODESET|XPG_NORM_CODESET|XPG_MODIFIER)
00061
00062
00063 struct loaded_l10nfile
00064 {
00065 const char *filename;
00066 int decided;
00067
00068 const void *data;
00069
00070 struct loaded_l10nfile *next;
00071 struct loaded_l10nfile *successor[1];
00072 };
00073
00074
00075
00076
00077
00078
00079 extern const char *_nl_normalize_codeset PARAMS ((const char *codeset,
00080 size_t name_len));
00081
00082 extern struct loaded_l10nfile *
00083 _nl_make_l10nflist PARAMS ((struct loaded_l10nfile **l10nfile_list,
00084 const char *dirlist, size_t dirlist_len, int mask,
00085 const char *language, const char *territory,
00086 const char *codeset,
00087 const char *normalized_codeset,
00088 const char *modifier, const char *special,
00089 const char *sponsor, const char *revision,
00090 const char *filename, int do_allocate));
00091
00092
00093 extern const char *_nl_expand_alias PARAMS ((const char *name));
00094
00095
00096
00097 extern int _nl_explode_name PARAMS ((char *name, const char **language,
00098 const char **modifier,
00099 const char **territory,
00100 const char **codeset,
00101 const char **normalized_codeset,
00102 const char **special,
00103 const char **sponsor,
00104 const char **revision));
00105
00106 extern char *_nl_find_language PARAMS ((const char *name));
00107
00108 #endif