1
1
/* Handle list of needed message catalogs
2
Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
3
Written by Ulrich Drepper <drepper@gnu.ai.mit.edu>, 1995.
2
Copyright (C) 1995-1999, 2000, 2001 Free Software Foundation, Inc.
3
Written by Ulrich Drepper <drepper@gnu.org>, 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)
5
This program is free software; you can redistribute it and/or modify it
6
under the terms of the GNU Library General Public License as published
7
by the Free Software Foundation; either version 2, or (at your option)
10
10
This program is distributed in the hope that it will be useful,
11
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.
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
Library 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. */
15
You should have received a copy of the GNU Library General Public
16
License along with this program; if not, write to the Free Software
17
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
19
20
#ifdef HAVE_CONFIG_H
20
21
# include <config.h>
26
25
#include <sys/types.h>
28
#if defined STDC_HEADERS || defined _LIBC
38
#if defined HAVE_STRING_H || defined _LIBC
43
# define memcpy(Dst, Src, Num) bcopy (Src, Dst, Num)
46
#if !HAVE_STRCHR && !defined _LIBC
52
29
#if defined HAVE_UNISTD_H || defined _LIBC
53
30
# include <unistd.h>
57
33
#include "gettextP.h"
59
35
# include <libintl.h>
61
# include "libgettext.h"
37
# include "libgnuintl.h"
64
40
/* @@ end of prolog @@ */
71
47
established bindings. */
72
48
struct loaded_l10nfile *
74
_nl_find_domain (dirname, locale, domainname)
50
_nl_find_domain (dirname, locale, domainname, domainbinding)
75
51
const char *dirname;
77
53
const char *domainname;
54
struct binding *domainbinding;
79
56
struct loaded_l10nfile *retval;
80
57
const char *language;
128
105
for (cnt = 0; retval->successor[cnt] != NULL; ++cnt)
130
107
if (retval->successor[cnt]->decided == 0)
131
_nl_load_domain (retval->successor[cnt]);
108
_nl_load_domain (retval->successor[cnt], domainbinding);
133
110
if (retval->successor[cnt]->data != NULL)
177
154
if (retval->decided == 0)
178
_nl_load_domain (retval);
155
_nl_load_domain (retval, domainbinding);
179
156
if (retval->data == NULL)
182
159
for (cnt = 0; retval->successor[cnt] != NULL; ++cnt)
184
161
if (retval->successor[cnt]->decided == 0)
185
_nl_load_domain (retval->successor[cnt]);
162
_nl_load_domain (retval->successor[cnt], domainbinding);
186
163
if (retval->successor[cnt]->data != NULL)