OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [intl/] [gettextP.h] - Diff between revs 578 and 1765

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 578 Rev 1765
/* Header describing internals of gettext library
/* Header describing internals of gettext library
   Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
   Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
 
 
   This program is free software; you can redistribute it and/or modify
   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 2, or (at your option)
   the Free Software Foundation; either version 2, or (at your option)
   any later version.
   any later version.
 
 
   This program is distributed in the hope that it will be useful,
   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.
   GNU General Public License for more details.
 
 
   You should have received a copy of the GNU General Public License
   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software Foundation,
   along with this program; if not, write to the Free Software Foundation,
   Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
   Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 
 
#ifndef _GETTEXTP_H
#ifndef _GETTEXTP_H
#define _GETTEXTP_H
#define _GETTEXTP_H
 
 
#include "loadinfo.h"
#include "loadinfo.h"
 
 
/* @@ end of prolog @@ */
/* @@ end of prolog @@ */
 
 
#ifndef PARAMS
#ifndef PARAMS
# if __STDC__
# if __STDC__
#  define PARAMS(args) args
#  define PARAMS(args) args
# else
# else
#  define PARAMS(args) ()
#  define PARAMS(args) ()
# endif
# endif
#endif
#endif
 
 
#ifndef W
#ifndef W
# define W(flag, data) ((flag) ? SWAP (data) : (data))
# define W(flag, data) ((flag) ? SWAP (data) : (data))
#endif
#endif
 
 
 
 
static nls_uint32 SWAP PARAMS ((nls_uint32 i));
static nls_uint32 SWAP PARAMS ((nls_uint32 i));
 
 
static inline nls_uint32
static inline nls_uint32
SWAP (i)
SWAP (i)
     nls_uint32 i;
     nls_uint32 i;
{
{
  return (i << 24) | ((i & 0xff00) << 8) | ((i >> 8) & 0xff00) | (i >> 24);
  return (i << 24) | ((i & 0xff00) << 8) | ((i >> 8) & 0xff00) | (i >> 24);
}
}
 
 
 
 
struct loaded_domain
struct loaded_domain
{
{
  const char *data;
  const char *data;
  int must_swap;
  int must_swap;
  nls_uint32 nstrings;
  nls_uint32 nstrings;
  struct string_desc *orig_tab;
  struct string_desc *orig_tab;
  struct string_desc *trans_tab;
  struct string_desc *trans_tab;
  nls_uint32 hash_size;
  nls_uint32 hash_size;
  nls_uint32 *hash_tab;
  nls_uint32 *hash_tab;
};
};
 
 
struct binding
struct binding
{
{
  struct binding *next;
  struct binding *next;
  char *domainname;
  char *domainname;
  char *dirname;
  char *dirname;
};
};
 
 
struct loaded_l10nfile *_nl_find_domain PARAMS ((const char *__dirname,
struct loaded_l10nfile *_nl_find_domain PARAMS ((const char *__dirname,
                                                 char *__locale,
                                                 char *__locale,
                                                 const char *__domainname));
                                                 const char *__domainname));
void _nl_load_domain PARAMS ((struct loaded_l10nfile *__domain));
void _nl_load_domain PARAMS ((struct loaded_l10nfile *__domain));
 
 
/* @@ begin of epilog @@ */
/* @@ begin of epilog @@ */
 
 
#endif /* gettextP.h  */
#endif /* gettextP.h  */
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.