From 4d37e19c34bf96551f11c9ea6437413bd2248bb5 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 12 Jun 2000 22:31:34 +0000 Subject: [PATCH] Update. 2000-06-12 Ulrich Drepper * iconv/gconv.h (__gconv_trans_context_fct): Remove two parameters. * iconv/skeleton.c (FUNCTION_NAME): Call __trans_context_fct if it exists. --- ChangeLog | 7 +++++++ iconv/gconv.h | 4 +--- iconv/skeleton.c | 7 +++++++ 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6bb155e..d533c38 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2000-06-12 Ulrich Drepper + + * iconv/gconv.h (__gconv_trans_context_fct): Remove two + parameters. + * iconv/skeleton.c (FUNCTION_NAME): Call __trans_context_fct if it + exists. + 2000-06-12 Jes Sorensen * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: New file. diff --git a/iconv/gconv.h b/iconv/gconv.h index 5717ddb..2bba133 100644 --- a/iconv/gconv.h +++ b/iconv/gconv.h @@ -87,9 +87,7 @@ typedef int (*__gconv_trans_fct) (struct __gconv_step *step, typedef int (*__gconv_trans_context_fct) (struct __gconv_trans_data *data, __const unsigned char *, __const unsigned char *, - __const unsigned char *, - unsigned char *, unsigned char *, - unsigned char *); + unsigned char *, unsigned char *); /* Function to query module about supported encoded character sets. */ typedef int (*__gconv_trans_query_fct) (__const char **, size_t *); diff --git a/iconv/skeleton.c b/iconv/skeleton.c index dca2c7f..d64d759 100644 --- a/iconv/skeleton.c +++ b/iconv/skeleton.c @@ -412,6 +412,13 @@ FUNCTION_NAME (struct __gconv_step *step, struct __gconv_step_data *data, } #endif + /* Give the transliteration module the chance to store the + original text and the result in case it needs a context. */ + if (data->__trans.__trans_context_fct != NULL) + DL_CALL_FCT (data->__trans.__trans_context_fct, + (data->__trans.__data, inptr, *inptrp, + outstart, outbuf)); + /* We finished one use of the loops. */ ++data->__invocation_counter; -- 2.7.4