Main Page   Compound List   File List   Compound Members   File Members  

loadinfo.h

00001 /* Copyright (C) 1996-1999, 2000, 2001 Free Software Foundation, Inc.
00002    This file is part of the GNU C Library.
00003    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996.
00004 
00005    This program is free software; you can redistribute it and/or modify
00006    it under the terms of the GNU General Public License as published by
00007    the Free Software Foundation; either version 2, or (at your option)
00008    any later version.
00009 
00010    This program is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY; without even the implied warranty of
00012    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013    GNU General Public License for more details.
00014 
00015    You should have received a copy of the GNU General Public License
00016    along with this program; if not, write to the Free Software Foundation,
00017    Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
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 /* Tell the compiler when a conditional or integer expression is
00035    almost always true or almost always false.  */
00036 #ifndef HAVE_BUILTIN_EXPECT
00037 # define __builtin_expect(expr, val) (expr)
00038 #endif
00039 
00040 /* Separator in PATH like lists of pathnames.  */
00041 #if defined _WIN32 || defined __WIN32__ || defined __EMX__ || defined __DJGPP__
00042   /* Win32, OS/2, DOS */
00043 # define PATH_SEPARATOR ';'
00044 #else
00045   /* Unix */
00046 # define PATH_SEPARATOR ':'
00047 #endif
00048 
00049 /* Encoding of locale name parts.  */
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 /* Normalize codeset name.  There is no standard for the codeset
00076    names.  Normalization allows the user to use any of the common
00077    names.  The return value is dynamically allocated and has to be
00078    freed by the caller.  */
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 /* normalized_codeset is dynamically allocated and has to be freed by
00096    the caller.  */
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  /* loadinfo.h */

Generated at Wed Oct 12 09:20:53 2005 for libuser by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001