mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-29 05:51:10 +00:00
c44a663dca
2001-04-05 David S. Miller <davem@redhat.com> Add hp-timing support for sparcv9/sparc64 targets. * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: New file * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: New file * sysdeps/sparc/sparc64/hp-timing.c: New file * sysdeps/sparc/sparc64/hp-timing.h: New file * sysdeps/sparc/sparc32/sparcv9/Makefile: Build hp-timing. * sysdeps/sparc/sparc64/Makefile: Likewise. 2001-04-09 Jakub Jelinek <jakub@redhat.com> * sysdeps/generic/fd_to_filename.h: New file. * sysdeps/unix/sysv/linux/fd_to_filename.h: New file. * libio/freopen.c (freopen): If FILENAME is NULL, try to get filename from the open file descriptor. * libio/freopen64.c (freopen64): Likewise. 2001-04-09 Bruno Haible <haible@clisp.cons.org> * misc/error.c (error): fflush stdout also if error_print_progname != NULL. (error_at_line): Likewise. 2001-04-07 Bruno Haible <haible@clisp.cons.org> * intl/gettextP.h (struct loaded_domain): Add codeset_cntr field. (struct binding): Add codeset_cntr field. (_nl_load_domain): Add domainbinding argument. (_nl_init_domain_conv, _nl_free_domain_conv): New declarations. (_nl_find_msg): New declaration, moved here from loadinfo.h. * intl/loadinfo.h (struct loaded_l10nfile): Remove domainbinding field. (_nl_make_l10nflist): Remove domainbinding argument. (_nl_find_msg): Move declaration to gettextP.h. * intl/bindtextdom.c (set_binding_values): Initialize ->codeset_cntr to 0. Increment it when ->codeset is changed. * intl/dcigettext.c (DCIGETTEXT): Pass binding to _nl_find_msg. (_nl_find_msg): Add domainbinding argument. Reinitialize the converter if domainbinding->codeset_cntr has been incremented. * intl/finddomain.c (_nl_find_domain): Don't pass domainbinding to _nl_make_l10nflist(). Pass it to _nl_load_domain() instead. * intl/l10nflist.c (_nl_make_l10nflist): Remove domainbinding argument. * intl/loadmsgcat.c (_nl_init_domain_conv): New function, extracted from _nl_load_domain. Append //TRANSLIT also when using libiconv. (_nl_free_domain_conv): New function, extracted from _nl_unload_domain. (_nl_load_domain): Add domainbinding argument. Call _nl_init_domain_conv. (_nl_unload_domain): Call _nl_free_domain_conv. * intl/Makefile (distribute): Add tst-codeset.sh, tstcodeset.po. (test-srcs): Add tst-codeset. (tests): Depend on tst-codeset.out. (tst-codeset.out): New rule. (CFLAGS-tst-codeset.c): New variable. * intl/tst-codeset.sh: New file. * intl/tstcodeset.po: New file. * intl/tst-codeset.c: New file. * locale/findlocale.c (_nl_find_locale): Update _nl_make_l10nflist calls.
101 lines
3.1 KiB
C
101 lines
3.1 KiB
C
/* Copyright (C) 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
|
|
This file is part of the GNU C Library.
|
|
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996.
|
|
|
|
The GNU C Library is free software; you can redistribute it and/or
|
|
modify it under the terms of the GNU Library General Public License as
|
|
published by the Free Software Foundation; either version 2 of the
|
|
License, or (at your option) any later version.
|
|
|
|
The GNU C Library is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Library General Public License for more details.
|
|
|
|
You should have received a copy of the GNU Library General Public
|
|
License along with the GNU C Library; see the file COPYING.LIB. If not,
|
|
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
Boston, MA 02111-1307, USA. */
|
|
|
|
#ifndef _LOADINFO_H
|
|
#define _LOADINFO_H 1
|
|
|
|
#ifndef PARAMS
|
|
# if __STDC__
|
|
# define PARAMS(args) args
|
|
# else
|
|
# define PARAMS(args) ()
|
|
# endif
|
|
#endif
|
|
|
|
#ifndef internal_function
|
|
# define internal_function
|
|
#endif
|
|
|
|
/* Tell the compiler when a conditional or integer expression is
|
|
almost always true or almost always false. */
|
|
#ifndef HAVE_BUILTIN_EXPECT
|
|
# define __builtin_expect(expr, val) (expr)
|
|
#endif
|
|
|
|
/* Encoding of locale name parts. */
|
|
#define CEN_REVISION 1
|
|
#define CEN_SPONSOR 2
|
|
#define CEN_SPECIAL 4
|
|
#define XPG_NORM_CODESET 8
|
|
#define XPG_CODESET 16
|
|
#define TERRITORY 32
|
|
#define CEN_AUDIENCE 64
|
|
#define XPG_MODIFIER 128
|
|
|
|
#define CEN_SPECIFIC (CEN_REVISION|CEN_SPONSOR|CEN_SPECIAL|CEN_AUDIENCE)
|
|
#define XPG_SPECIFIC (XPG_CODESET|XPG_NORM_CODESET|XPG_MODIFIER)
|
|
|
|
|
|
struct loaded_l10nfile
|
|
{
|
|
const char *filename;
|
|
int decided;
|
|
|
|
const void *data;
|
|
|
|
struct loaded_l10nfile *next;
|
|
struct loaded_l10nfile *successor[1];
|
|
};
|
|
|
|
|
|
/* Normalize codeset name. There is no standard for the codeset
|
|
names. Normalization allows the user to use any of the common
|
|
names. The return value is dynamically allocated and has to be
|
|
freed by the caller. */
|
|
extern const char *_nl_normalize_codeset PARAMS ((const char *codeset,
|
|
size_t name_len));
|
|
|
|
extern struct loaded_l10nfile *
|
|
_nl_make_l10nflist PARAMS ((struct loaded_l10nfile **l10nfile_list,
|
|
const char *dirlist, size_t dirlist_len, int mask,
|
|
const char *language, const char *territory,
|
|
const char *codeset,
|
|
const char *normalized_codeset,
|
|
const char *modifier, const char *special,
|
|
const char *sponsor, const char *revision,
|
|
const char *filename, int do_allocate));
|
|
|
|
|
|
extern const char *_nl_expand_alias PARAMS ((const char *name));
|
|
|
|
/* normalized_codeset is dynamically allocated and has to be freed by
|
|
the caller. */
|
|
extern int _nl_explode_name PARAMS ((char *name, const char **language,
|
|
const char **modifier,
|
|
const char **territory,
|
|
const char **codeset,
|
|
const char **normalized_codeset,
|
|
const char **special,
|
|
const char **sponsor,
|
|
const char **revision));
|
|
|
|
extern char *_nl_find_language PARAMS ((const char *name));
|
|
|
|
#endif /* loadinfo.h */
|