Regenerated: autoconf -m /gd/gnu/autoconf sysdeps/unix/configure.in
[glibc/history.git] / intl / gettextP.h
blob12031c605b6bbc9080389851f223b595c2071dc9
1 /* gettextP.h -- header describing internals of gettext library
2 Copyright (C) 1995 Software Foundation, Inc.
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2, or (at your option)
7 any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
18 #ifndef _GETTEXTP_H
19 #define _GETTEXTP_H
21 /* @@ end of prolog @@ */
23 #ifndef __P
24 # if __STDC__
25 # define __P(args) args
26 # else
27 # define __P(args) ()
28 # endif
29 #endif
31 #ifndef W
32 # define W(flag, data) ((flag) ? SWAP (data) : (data))
33 #endif
35 static inline nls_uint32
36 SWAP (i)
37 nls_uint32 i;
39 return (i << 24) | ((i & 0xff00) << 8) | ((i >> 8) & 0xff00) | (i >> 24);
43 struct loaded_domain
45 struct loaded_domain *next;
46 struct loaded_domain *successor[31];
48 const char *filename;
49 int decided;
51 const char *data;
52 int must_swap;
53 nls_uint32 nstrings;
54 struct string_desc *orig_tab;
55 struct string_desc *trans_tab;
56 nls_uint32 hash_size;
57 nls_uint32 *hash_tab;
60 struct binding
62 struct binding *next;
63 char *domainname;
64 char *dirname;
67 struct loaded_domain *_nl_find_domain __P ((const char *__dirname,
68 char *__locale,
69 const char *__domainname));
70 void _nl_load_domain __P ((struct loaded_domain *__domain));
72 const char *_nl_expand_alias __P ((const char *__name));
74 /* @@ begin of epilog @@ */
76 #endif /* gettextP.h */