mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-08 12:44:23 +01:00
* dcigettext.c (plural_lookup): Name conflict on some platforms with
"index". Local fix for GnuPG.
This commit is contained in:
parent
c88bc35372
commit
fe5e3e594a
@ -1,3 +1,8 @@
|
|||||||
|
2003-04-07 David Shaw <dshaw@jabberwocky.com>
|
||||||
|
|
||||||
|
* dcigettext.c (plural_lookup): Name conflict on some platforms
|
||||||
|
with "index". Local fix for GnuPG.
|
||||||
|
|
||||||
2001-09-13 GNU <bug-gnu-utils@gnu.org>
|
2001-09-13 GNU <bug-gnu-utils@gnu.org>
|
||||||
|
|
||||||
* Version 0.10.40 released.
|
* Version 0.10.40 released.
|
||||||
|
@ -974,18 +974,18 @@ plural_lookup (domain, n, translation, translation_len)
|
|||||||
size_t translation_len;
|
size_t translation_len;
|
||||||
{
|
{
|
||||||
struct loaded_domain *domaindata = (struct loaded_domain *) domain->data;
|
struct loaded_domain *domaindata = (struct loaded_domain *) domain->data;
|
||||||
unsigned long int index;
|
unsigned long int ind; /* gnupg */
|
||||||
const char *p;
|
const char *p;
|
||||||
|
|
||||||
index = plural_eval (domaindata->plural, n);
|
ind = plural_eval (domaindata->plural, n); /* gnupg */
|
||||||
if (index >= domaindata->nplurals)
|
if (ind >= domaindata->nplurals) /* gnupg */
|
||||||
/* This should never happen. It means the plural expression and the
|
/* This should never happen. It means the plural expression and the
|
||||||
given maximum value do not match. */
|
given maximum value do not match. */
|
||||||
index = 0;
|
ind = 0; /* gnupg */
|
||||||
|
|
||||||
/* Skip INDEX strings at TRANSLATION. */
|
/* Skip INDEX strings at TRANSLATION. */
|
||||||
p = translation;
|
p = translation;
|
||||||
while (index-- > 0)
|
while (ind-- > 0) /* gnupg */
|
||||||
{
|
{
|
||||||
#ifdef _LIBC
|
#ifdef _LIBC
|
||||||
p = __rawmemchr (p, '\0');
|
p = __rawmemchr (p, '\0');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user