home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / tar-1.11.8-src.tgz / tar.out / fsf / tar / intl / gettextP.h < prev    next >
C/C++ Source or Header  |  1996-09-28  |  2KB  |  70 lines

  1. /* gettextP.h -- header describing internals of gettext library
  2.    Copyright (C) 1995 Software Foundation, Inc.
  3.  
  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.
  8.  
  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.
  13.  
  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., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  17.  
  18. #ifndef _GETTEXTP_H
  19. #define _GETTEXTP_H
  20.  
  21. /* @@ end of prolog @@ */
  22.  
  23. #ifndef __P
  24. # ifdef __STDC__
  25. #  define __P(args) args
  26. # else
  27. #  define __P(args) ()
  28. # endif
  29. #endif
  30.  
  31. #ifndef W
  32. # define W(flag, data) ((flag) ? SWAP (data) : (data))
  33. #endif
  34.  
  35. static inline nls_uint32
  36. SWAP (i)
  37.      nls_uint32 i;
  38. {
  39.   return (i << 24) | ((i & 0xff00) << 8) | ((i >> 8) & 0xff00) | (i >> 24);
  40. }
  41.  
  42.  
  43. struct loaded_domain
  44. {
  45.   struct loaded_domain *next;
  46.   const char *data;
  47.   const char *filename;
  48.   int must_swap;
  49.   nls_uint32 nstrings;
  50.   struct string_desc *orig_tab;
  51.   struct string_desc *trans_tab;
  52.   nls_uint32 hash_size;
  53.   nls_uint32 *hash_tab;
  54. };
  55.  
  56. struct binding
  57. {
  58.   struct binding *next;
  59.   char *domainname;
  60.   char *dirname;
  61. };
  62.  
  63. struct loaded_domain *_nl_find_domain __P ((const char *domainname,
  64.                         int category));
  65. struct loaded_domain *_nl_load_msg_cat __P ((const char *filename));
  66.  
  67. /* @@ begin of epilog @@ */
  68.  
  69. #endif /* gettextP.h  */
  70.