* verify.c (verify_jvm_instructions): Fix typo.
[official-gcc.git] / gcc / intl / gettextP.h
blob1b69b28cd6d0a0bb0ada9b0299de4d5246e9db79
1 /* Header describing internals of gettext library
2 Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
3 Written by Ulrich Drepper <drepper@gnu.ai.mit.edu>, 1995.
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.
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.
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. */
19 #ifndef _GETTEXTP_H
20 #define _GETTEXTP_H
22 #include "loadinfo.h"
24 /* @@ end of prolog @@ */
26 #ifndef PARAMS
27 # if __STDC__
28 # define PARAMS(args) args
29 # else
30 # define PARAMS(args) ()
31 # endif
32 #endif
34 #ifndef internal_function
35 # define internal_function
36 #endif
38 #ifndef W
39 # define W(flag, data) ((flag) ? SWAP (data) : (data))
40 #endif
43 #ifdef _LIBC
44 # include <byteswap.h>
45 # define SWAP(i) bswap_32 (i)
46 #else
47 static nls_uint32 SWAP PARAMS ((unsigned int i));
49 static inline nls_uint32
50 SWAP (i)
51 unsigned int i;
53 nls_uint32 x = (nls_uint32) i;
54 return (x << 24) | ((x & 0xff00) << 8) | ((x >> 8) & 0xff00) | (x >> 24);
56 #endif
59 struct loaded_domain
61 const char *data;
62 int use_mmap;
63 size_t mmap_size;
64 int must_swap;
65 nls_uint32 nstrings;
66 struct string_desc *orig_tab;
67 struct string_desc *trans_tab;
68 nls_uint32 hash_size;
69 nls_uint32 *hash_tab;
72 struct binding
74 struct binding *next;
75 char *domainname;
76 char *dirname;
79 struct loaded_l10nfile *_nl_find_domain PARAMS ((const char *__dirname,
80 char *__locale,
81 const char *__domainname))
82 internal_function;
83 void _nl_load_domain PARAMS ((struct loaded_l10nfile *__domain))
84 internal_function;
85 void _nl_unload_domain PARAMS ((struct loaded_domain *__domain))
86 internal_function;
88 /* @@ begin of epilog @@ */
90 #endif /* gettextP.h */