* COP2 testing changes.
[binutils-gdb.git] / intl / gettextP.h
blobbb8d55235adb0b8a6886d54c9d8249a30c364f60
1 /* Header describing internals of gettext library
2 Copyright (C) 1995, 1996, 1997 Free 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 Foundation,
16 Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
18 #ifndef _GETTEXTP_H
19 #define _GETTEXTP_H
21 #include "loadinfo.h"
23 /* @@ end of prolog @@ */
25 #ifndef PARAMS
26 # if __STDC__
27 # define PARAMS(args) args
28 # else
29 # define PARAMS(args) ()
30 # endif
31 #endif
33 #ifndef W
34 # define W(flag, data) ((flag) ? SWAP (data) : (data))
35 #endif
38 static nls_uint32 SWAP PARAMS ((nls_uint32 i));
40 static inline nls_uint32
41 SWAP (i)
42 nls_uint32 i;
44 return (i << 24) | ((i & 0xff00) << 8) | ((i >> 8) & 0xff00) | (i >> 24);
48 struct loaded_domain
50 const char *data;
51 int must_swap;
52 nls_uint32 nstrings;
53 struct string_desc *orig_tab;
54 struct string_desc *trans_tab;
55 nls_uint32 hash_size;
56 nls_uint32 *hash_tab;
59 struct binding
61 struct binding *next;
62 char *domainname;
63 char *dirname;
66 struct loaded_l10nfile *_nl_find_domain PARAMS ((const char *__dirname,
67 char *__locale,
68 const char *__domainname));
69 void _nl_load_domain PARAMS ((struct loaded_l10nfile *__domain));
71 /* @@ begin of epilog @@ */
73 #endif /* gettextP.h */