This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
the __gconv_trans_context_fct type
- To: libc-alpha at sources dot redhat dot com
- Subject: the __gconv_trans_context_fct type
- From: Bruno Haible <haible at ilog dot fr>
- Date: Sun, 1 Oct 2000 14:43:24 +0200 (CEST)
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 *);