source: branches/libc-0.6/src/binutils/intl/loadinfo.h

Last change on this file was 610, checked in by bird, 22 years ago

This commit was generated by cvs2svn to compensate for changes in r609,
which included commits to RCS files with non-trunk default branches.

  • Property cvs2svn:cvs-rev set to 1.1.1.2
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 2.4 KB
Line 
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
41struct 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
53extern const char *_nl_normalize_codeset PARAMS ((const unsigned char *codeset,
54 size_t name_len));
55
56extern 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
67extern const char *_nl_expand_alias PARAMS ((const char *name));
68
69extern 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));
Note: See TracBrowser for help on using the repository browser.