Back to Evolution Project page


Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Header Files   Sources   Compound Members   File Members  

gettextP.h

00001 /* Header describing internals of gettext library
00002    Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
00003    Written by Ulrich Drepper <drepper@gnu.ai.mit.edu>, 1995.
00004 
00005    This program is free software; you can redistribute it and/or modify
00006    it under the terms of the GNU General Public License as published by
00007    the Free Software Foundation; either version 2, or (at your option)
00008    any later version.
00009 
00010    This program is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY; without even the implied warranty of
00012    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013    GNU General Public License for more details.
00014 
00015    You should have received a copy of the GNU General Public License
00016    along with this program; if not, write to the Free Software Foundation,
00017    Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
00018 
00019 #ifndef _GETTEXTP_H
00020 #define _GETTEXTP_H
00021 
00022 #include "loadinfo.h"
00023 
00024 /* @@ end of prolog @@ */
00025 
00026 #ifndef PARAMS
00027 # if __STDC__
00028 #  define PARAMS(args) args
00029 # else
00030 #  define PARAMS(args) ()
00031 # endif
00032 #endif
00033 
00034 #ifndef internal_function
00035 # define internal_function
00036 #endif
00037 
00038 #ifndef W
00039 # define W(flag, data) ((flag) ? SWAP (data) : (data))
00040 #endif
00041 
00042 
00043 #ifdef _LIBC
00044 # include <byteswap.h>
00045 # define SWAP(i) bswap_32 (i)
00046 #else
00047 static nls_uint32 SWAP PARAMS ((nls_uint32 i));
00048 
00049 static inline nls_uint32
00050 SWAP (i)
00051      nls_uint32 i;
00052 {
00053   return (i << 24) | ((i & 0xff00) << 8) | ((i >> 8) & 0xff00) | (i >> 24);
00054 }
00055 #endif
00056 
00057 
00058 struct loaded_domain
00059 {
00060   const char *data;
00061   int use_mmap;
00062   size_t mmap_size;
00063   int must_swap;
00064   nls_uint32 nstrings;
00065   struct string_desc *orig_tab;
00066   struct string_desc *trans_tab;
00067   nls_uint32 hash_size;
00068   nls_uint32 *hash_tab;
00069 };
00070 
00071 struct binding
00072 {
00073   struct binding *next;
00074   char *domainname;
00075   char *dirname;
00076 };
00077 
00078 struct loaded_l10nfile *_nl_find_domain PARAMS ((const char *__dirname,
00079                          char *__locale,
00080                          const char *__domainname))
00081      internal_function;
00082 void _nl_load_domain PARAMS ((struct loaded_l10nfile *__domain))
00083      internal_function;
00084 void _nl_unload_domain PARAMS ((struct loaded_domain *__domain))
00085      internal_function;
00086 
00087 /* @@ begin of epilog @@ */
00088 
00089 #endif /* gettextP.h  */

Generated at Mon Nov 6 22:47:04 2000 for TheGameofEvolution by doxygen 1.0.0 written by Dimitri van Heesch, © 1997-1999