~ubuntu-branches/ubuntu/oneiric/groundhog/oneiric

« back to all changes in this revision

Viewing changes to intl/loadinfo.h

  • Committer: Bazaar Package Importer
  • Author(s): Stephen M Moraco
  • Date: 2004-08-20 23:12:32 UTC
  • mfrom: (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20040820231232-18s0op2f9g21ag1z
Tags: 1.4-6
Update Policy Version

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Copyright (C) 1996, 1997 Free Software Foundation, Inc.
 
1
/* Copyright (C) 1996-1999, 2000, 2001 Free Software Foundation, Inc.
2
2
   This file is part of the GNU C Library.
3
3
   Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996.
4
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)
 
5
   This program is free software; you can redistribute it and/or modify it
 
6
   under the terms of the GNU Library General Public License as published
 
7
   by the Free Software Foundation; either version 2, or (at your option)
8
8
   any later version.
9
9
 
10
10
   This program is distributed in the hope that it will be useful,
11
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.  */
 
12
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
13
   Library General Public License for more details.
 
14
 
 
15
   You should have received a copy of the GNU Library General Public
 
16
   License along with this program; if not, write to the Free Software
 
17
   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
 
18
   USA.  */
 
19
 
 
20
#ifndef _LOADINFO_H
 
21
#define _LOADINFO_H     1
 
22
 
 
23
/* Declarations of locale dependent catalog lookup functions.
 
24
   Implemented in
 
25
 
 
26
     localealias.c    Possibly replace a locale name by another.
 
27
     explodename.c    Split a locale name into its various fields.
 
28
     l10nflist.c      Generate a list of filenames of possible message catalogs.
 
29
     finddomain.c     Find and open the relevant message catalogs.
 
30
 
 
31
   The main function _nl_find_domain() in finddomain.c is declared
 
32
   in gettextP.h.
 
33
 */
18
34
 
19
35
#ifndef PARAMS
20
 
# if __STDC__
 
36
# if __STDC__ || defined __GNUC__ || defined __SUNPRO_C || defined __cplusplus || __PROTOTYPES
21
37
#  define PARAMS(args) args
22
38
# else
23
39
#  define PARAMS(args) ()
24
40
# endif
25
41
#endif
26
42
 
 
43
#ifndef internal_function
 
44
# define internal_function
 
45
#endif
 
46
 
 
47
/* Tell the compiler when a conditional or integer expression is
 
48
   almost always true or almost always false.  */
 
49
#ifndef HAVE_BUILTIN_EXPECT
 
50
# define __builtin_expect(expr, val) (expr)
 
51
#endif
 
52
 
 
53
/* Separator in PATH like lists of pathnames.  */
 
54
#if defined _WIN32 || defined __WIN32__ || defined __EMX__ || defined __DJGPP__
 
55
  /* Win32, OS/2, DOS */
 
56
# define PATH_SEPARATOR ';'
 
57
#else
 
58
  /* Unix */
 
59
# define PATH_SEPARATOR ':'
 
60
#endif
 
61
 
27
62
/* Encoding of locale name parts.  */
28
63
#define CEN_REVISION            1
29
64
#define CEN_SPONSOR             2
50
85
};
51
86
 
52
87
 
53
 
extern const char *_nl_normalize_codeset PARAMS ((const unsigned char *codeset,
 
88
/* Normalize codeset name.  There is no standard for the codeset
 
89
   names.  Normalization allows the user to use any of the common
 
90
   names.  The return value is dynamically allocated and has to be
 
91
   freed by the caller.  */
 
92
extern const char *_nl_normalize_codeset PARAMS ((const char *codeset,
54
93
                                                  size_t name_len));
55
94
 
56
95
extern struct loaded_l10nfile *
66
105
 
67
106
extern const char *_nl_expand_alias PARAMS ((const char *name));
68
107
 
 
108
/* normalized_codeset is dynamically allocated and has to be freed by
 
109
   the caller.  */
69
110
extern int _nl_explode_name PARAMS ((char *name, const char **language,
70
111
                                     const char **modifier,
71
112
                                     const char **territory,
74
115
                                     const char **special,
75
116
                                     const char **sponsor,
76
117
                                     const char **revision));
 
118
 
 
119
extern char *_nl_find_language PARAMS ((const char *name));
 
120
 
 
121
#endif  /* loadinfo.h */