Fri, 27 Apr 2001 22:21:53 +0000
[gaim-migrate @ 1773]
la la la
| 347 | 1 | /* Copyright (C) 1996, 1997 Free Software Foundation, Inc. |
| 2 | This file is part of the GNU C Library. | |
| 3 | Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996. | |
| 4 | ||
| 5 | This program is free software; you can redistribute it and/or modify | |
| 6 | it under the terms of the GNU General Public License as published by | |
| 7 | the Free Software Foundation; either version 2, or (at your option) | |
| 8 | any later version. | |
| 9 | ||
| 10 | This program is distributed in the hope that it will be useful, | |
| 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 13 | GNU General Public License for more details. | |
| 14 | ||
| 15 | You should have received a copy of the GNU General Public License | |
| 16 | along with this program; if not, write to the Free Software Foundation, | |
| 17 | Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ | |
| 18 | ||
| 19 | #ifndef PARAMS | |
| 20 | # if __STDC__ | |
| 21 | # define PARAMS(args) args | |
| 22 | # else | |
| 23 | # define PARAMS(args) () | |
| 24 | # endif | |
| 25 | #endif | |
| 26 | ||
| 27 | /* Encoding of locale name parts. */ | |
| 28 | #define CEN_REVISION 1 | |
| 29 | #define CEN_SPONSOR 2 | |
| 30 | #define CEN_SPECIAL 4 | |
| 31 | #define XPG_NORM_CODESET 8 | |
| 32 | #define XPG_CODESET 16 | |
| 33 | #define TERRITORY 32 | |
| 34 | #define CEN_AUDIENCE 64 | |
| 35 | #define XPG_MODIFIER 128 | |
| 36 | ||
| 37 | #define CEN_SPECIFIC (CEN_REVISION|CEN_SPONSOR|CEN_SPECIAL|CEN_AUDIENCE) | |
| 38 | #define XPG_SPECIFIC (XPG_CODESET|XPG_NORM_CODESET|XPG_MODIFIER) | |
| 39 | ||
| 40 | ||
| 41 | struct loaded_l10nfile | |
| 42 | { | |
| 43 | const char *filename; | |
| 44 | int decided; | |
| 45 | ||
| 46 | const void *data; | |
| 47 | ||
| 48 | struct loaded_l10nfile *next; | |
| 49 | struct loaded_l10nfile *successor[1]; | |
| 50 | }; | |
| 51 | ||
| 52 | ||
| 53 | extern const char *_nl_normalize_codeset PARAMS ((const char *codeset, | |
| 54 | size_t name_len)); | |
| 55 | ||
| 56 | extern struct loaded_l10nfile * | |
| 57 | _nl_make_l10nflist PARAMS ((struct loaded_l10nfile **l10nfile_list, | |
| 58 | const char *dirlist, size_t dirlist_len, int mask, | |
| 59 | const char *language, const char *territory, | |
| 60 | const char *codeset, | |
| 61 | const char *normalized_codeset, | |
| 62 | const char *modifier, const char *special, | |
| 63 | const char *sponsor, const char *revision, | |
| 64 | const char *filename, int do_allocate)); | |
| 65 | ||
| 66 | ||
| 67 | extern const char *_nl_expand_alias PARAMS ((const char *name)); | |
| 68 | ||
| 69 | extern int _nl_explode_name PARAMS ((char *name, const char **language, | |
| 70 | const char **modifier, | |
| 71 | const char **territory, | |
| 72 | const char **codeset, | |
| 73 | const char **normalized_codeset, | |
| 74 | const char **special, | |
| 75 | const char **sponsor, | |
| 76 | const char **revision)); | |
| 77 | ||
| 78 | extern char *_nl_find_language PARAMS ((const char *name)); |