From: handa Date: Mon, 22 Aug 2005 05:05:33 +0000 (+0000) Subject: (mconv_buffer_converter): Prototype adjusted. X-Git-Tag: REL-1-3-0~244 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=bac685c904c61b28925f89b48774facf9285629b;p=m17n%2Fm17n-lib.git (mconv_buffer_converter): Prototype adjusted. (mconv_decode_buffer, mconv_rebind_buffer): Likewise. --- diff --git a/src/m17n.h b/src/m17n.h index 7b3de3c..979ba43 100644 --- a/src/m17n.h +++ b/src/m17n.h @@ -765,7 +765,8 @@ extern MSymbol mconv_resolve_coding (MSymbol symbol); extern int mconv_list_codings (MSymbol **symbols); -extern MConverter *mconv_buffer_converter (MSymbol coding, unsigned char *buf, +extern MConverter *mconv_buffer_converter (MSymbol coding, + const unsigned char *buf, int n); extern MConverter *mconv_stream_converter (MSymbol coding, FILE *fp); @@ -775,13 +776,13 @@ extern int mconv_reset_converter (MConverter *converter); extern void mconv_free_converter (MConverter *converter); extern MConverter *mconv_rebind_buffer (MConverter *converter, - unsigned char *buf, int n); + const unsigned char *buf, int n); extern MConverter *mconv_rebind_stream (MConverter *converter, FILE *fp); extern MText *mconv_decode (MConverter *converter, MText *mt); -MText *mconv_decode_buffer (MSymbol name, unsigned char *buf, int n); +MText *mconv_decode_buffer (MSymbol name, const unsigned char *buf, int n); MText *mconv_decode_stream (MSymbol name, FILE *fp);