OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [gdb-5.3/] [intl/] [loadinfo.h] - Blame information for rev 1777

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1181 sfurman
/* 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 unsigned 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));

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.