mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-03 16:21:06 +00:00
Pass additional parameter to conversion function.
This commit is contained in:
parent
2280445594
commit
3de968b60f
@ -1,6 +1,6 @@
|
|||||||
/* Convert characters in input buffer using conversion descriptor to
|
/* Convert characters in input buffer using conversion descriptor to
|
||||||
output buffer.
|
output buffer.
|
||||||
Copyright (C) 1997, 1998, 1999 Free Software Foundation, Inc.
|
Copyright (C) 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
|
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
|
||||||
|
|
||||||
@ -47,7 +47,7 @@ __gconv (__gconv_t cd, const unsigned char **inbuf,
|
|||||||
/* We just flush. */
|
/* We just flush. */
|
||||||
result = DL_CALL_FCT (cd->__steps->__fct,
|
result = DL_CALL_FCT (cd->__steps->__fct,
|
||||||
(cd->__steps, cd->__data, NULL, NULL,
|
(cd->__steps, cd->__data, NULL, NULL,
|
||||||
converted, 1));
|
converted, 1, 0));
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
const unsigned char *last_start;
|
const unsigned char *last_start;
|
||||||
@ -59,7 +59,7 @@ __gconv (__gconv_t cd, const unsigned char **inbuf,
|
|||||||
last_start = *inbuf;
|
last_start = *inbuf;
|
||||||
result = DL_CALL_FCT (cd->__steps->__fct,
|
result = DL_CALL_FCT (cd->__steps->__fct,
|
||||||
(cd->__steps, cd->__data, inbuf, inbufend,
|
(cd->__steps, cd->__data, inbuf, inbufend,
|
||||||
converted, 0));
|
converted, 0, 0));
|
||||||
}
|
}
|
||||||
while (result == __GCONV_EMPTY_INPUT && last_start != *inbuf
|
while (result == __GCONV_EMPTY_INPUT && last_start != *inbuf
|
||||||
&& *inbuf + cd->__steps->__min_needed_from <= inbufend);
|
&& *inbuf + cd->__steps->__min_needed_from <= inbufend);
|
||||||
|
Loading…
Reference in New Issue
Block a user