From 2bd608801708e2fa3d0e39f1220604a81a036a78 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 18 Jan 1999 23:15:16 +0000 Subject: Update. 1999-01-18 Ulrich Drepper * iconv/gconv_conf.c (add_module): Complete rewrite. Use cleverer data structures and avoid creating intermediate representations first. Rewrite also all helper functions. * iconv/gconv_db.c (find_derivation): Use new data structure for module database. * iconv/Versions: Remove __gconv_nmodules. * iconv/iconv_prog.c: Rewrite generation of charset name list to use new data structure. * iconv/gconv_int.h (struct gconv_module): Add new elements for database data structure. (__gconv_modules_db): Update type. (__gconv_transform_dummy): Removed. * iconv/gconv_builtin.h: Remove dummy transformation. * iconv/gconv_simple.c: Remove __gconv_transform_dummy. * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Remove __syscall_vfork, add vfork. * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise. * Rules: Add dummp.c and dummy.o to common-generated. --- iconv/gconv_simple.c | 32 -------------------------------- 1 file changed, 32 deletions(-) (limited to 'iconv/gconv_simple.c') diff --git a/iconv/gconv_simple.c b/iconv/gconv_simple.c index c71c5ed0a4..4084d04b44 100644 --- a/iconv/gconv_simple.c +++ b/iconv/gconv_simple.c @@ -46,38 +46,6 @@ static const unsigned char encoding_byte[] = }; - -int -__gconv_transform_dummy (struct gconv_step *step, struct gconv_step_data *data, - const char **inbuf, const char *inbufend, - size_t *written, int do_flush) -{ - size_t do_write; - - /* We have no stateful encoding. So we don't have to do anything - special. */ - if (do_flush) - do_write = 0; - else - { - do_write = MIN (inbufend - *inbuf, data->outbufend - data->outbuf); - - memcpy (data->outbuf, inbuf, do_write); - - *inbuf -= do_write; - *data->outbuf += do_write; - } - - /* ### TODO Actually, this number must be devided according to the - size of the input charset. I.e., if the input is in UCS4 the - number of copied bytes must be divided by 4. */ - if (written != NULL) - *written = do_write; - - return GCONV_OK; -} - - /* Transform from the internal, UCS4-like format, to UCS4. The difference between the internal ucs4 format and the real UCS4 format is, if any, the endianess. The Unicode/ISO 10646 says that -- cgit v1.2.3