Back to index

plt-scheme  4.2.1
loadinfo.h
Go to the documentation of this file.
00001 #ifndef PARAMS
00002 # if __STDC__
00003 #  define PARAMS(args) args
00004 # else
00005 #  define PARAMS(args) ()
00006 # endif
00007 #endif
00008 
00009 /* Encoding of locale name parts.  */
00010 #define CEN_REVISION        1
00011 #define CEN_SPONSOR         2
00012 #define CEN_SPECIAL         4
00013 #define XPG_NORM_CODESET    8
00014 #define XPG_CODESET         16
00015 #define TERRITORY           32
00016 #define CEN_AUDIENCE        64
00017 #define XPG_MODIFIER        128
00018 
00019 #define CEN_SPECIFIC (CEN_REVISION|CEN_SPONSOR|CEN_SPECIAL|CEN_AUDIENCE)
00020 #define XPG_SPECIFIC (XPG_CODESET|XPG_NORM_CODESET|XPG_MODIFIER)
00021 
00022 
00023 struct loaded_l10nfile
00024 {
00025   const char *filename;
00026   int decided;
00027 
00028   const void *data;
00029 
00030   struct loaded_l10nfile *next;
00031   struct loaded_l10nfile *successor[1];
00032 };
00033 
00034 
00035 extern const char *_nl_normalize_codeset PARAMS ((const char *codeset,
00036                                             size_t name_len));
00037 
00038 extern struct loaded_l10nfile *
00039 _nl_make_l10nflist PARAMS ((struct loaded_l10nfile **l10nfile_list,
00040                          const char *dirlist, size_t dirlist_len, int mask,
00041                          const char *language, const char *territory,
00042                          const char *codeset,
00043                          const char *normalized_codeset,
00044                          const char *modifier, const char *special,
00045                          const char *sponsor, const char *revision,
00046                          const char *filename, int do_allocate));
00047 
00048 
00049 extern const char *_nl_expand_alias PARAMS ((const char *name));
00050 
00051 extern int _nl_explode_name PARAMS ((char *name, const char **language,
00052                                  const char **modifier,
00053                                  const char **territory,
00054                                  const char **codeset,
00055                                  const char **normalized_codeset,
00056                                  const char **special,
00057                                  const char **sponsor,
00058                                  const char **revision));