the __gconv_trans_context_fct type
Bruno Haible
haible@ilog.fr
Sun Oct 1 05:46:00 GMT 2000
The __gconv_trans_context_fct has wrong argument types. As one can see
from iconv/skeleton.c:468, it is called with arguments of type
(void *, const unsigned char *, const unsigned char *, unsigned char *,
unsigned char *). (The first argument is 'trans->__data', not 'trans'.)
2000-09-30 Bruno Haible <haible@clisp.cons.org>
* iconv/gconv.h (__gconv_trans_context_fct): Change first argument's
type to 'void *'.
*** glibc-20000928/iconv/gconv.h.bak Mon Jul 3 16:39:24 2000
--- glibc-20000928/iconv/gconv.h Fri Sep 29 01:03:28 2000
***************
*** 84,91 ****
size_t *);
/* Function to call to provide transliteration module with context. */
! typedef int (*__gconv_trans_context_fct) (struct __gconv_trans_data *,
! __const unsigned char *,
__const unsigned char *,
unsigned char *, unsigned char *);
--- 84,90 ----
size_t *);
/* Function to call to provide transliteration module with context. */
! typedef int (*__gconv_trans_context_fct) (void *, __const unsigned char *,
__const unsigned char *,
unsigned char *, unsigned char *);
More information about the Libc-alpha
mailing list