aboutsummaryrefslogtreecommitdiff
path: root/iconv/gconv_simple.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-01-18 23:15:16 +0000
committerUlrich Drepper <drepper@redhat.com>1999-01-18 23:15:16 +0000
commit2bd608801708e2fa3d0e39f1220604a81a036a78 (patch)
tree8e941c6a4cd4d12302fcaa0a78dd1c6a88dad16f /iconv/gconv_simple.c
parent464d646f3e667e42742a995b841080ec7b6a1540 (diff)
downloadglibc-2bd608801708e2fa3d0e39f1220604a81a036a78.tar
glibc-2bd608801708e2fa3d0e39f1220604a81a036a78.tar.gz
glibc-2bd608801708e2fa3d0e39f1220604a81a036a78.tar.bz2
glibc-2bd608801708e2fa3d0e39f1220604a81a036a78.zip
Update.
1999-01-18 Ulrich Drepper <drepper@cygnus.com> * 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.
Diffstat (limited to 'iconv/gconv_simple.c')
-rw-r--r--iconv/gconv_simple.c32
1 files changed, 0 insertions, 32 deletions
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