From: Adam Dickmeiss Date: Fri, 27 Sep 2013 13:11:46 +0000 (+0200) Subject: Change inp argument to const for yaz_read_UTF8_char X-Git-Tag: v4.2.69~5 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=a3e400f4aca554102ee4c84082dcf8f7244ff6d4;p=yaz-moved-to-github.git Change inp argument to const for yaz_read_UTF8_char --- diff --git a/include/yaz/yaz-iconv.h b/include/yaz/yaz-iconv.h index 4c763f7..4ce4e83 100644 --- a/include/yaz/yaz-iconv.h +++ b/include/yaz/yaz-iconv.h @@ -65,7 +65,7 @@ YAZ_EXPORT int yaz_iconv_close (yaz_iconv_t cd); /** \brief tests whether conversion is handled by YAZ' iconv or system iconv */ YAZ_EXPORT int yaz_iconv_isbuiltin(yaz_iconv_t cd); -YAZ_EXPORT unsigned long yaz_read_UTF8_char(unsigned char *inp, +YAZ_EXPORT unsigned long yaz_read_UTF8_char(const unsigned char *inp, size_t inbytesleft, size_t *no_read, int *error); diff --git a/src/utf8.c b/src/utf8.c index fcff6cd..1d2552b 100644 --- a/src/utf8.c +++ b/src/utf8.c @@ -38,7 +38,7 @@ static size_t init_utf8(yaz_iconv_t cd, yaz_iconv_decoder_t d, return 0; } -unsigned long yaz_read_UTF8_char(unsigned char *inp, +unsigned long yaz_read_UTF8_char(const unsigned char *inp, size_t inbytesleft, size_t *no_read, int *error) {