summaryrefslogtreecommitdiff
path: root/transcode_data.h
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-14 18:06:20 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-14 18:06:20 +0000
commita3c8c0adec2ccf37ffe88fa542cd9db650aa31bf (patch)
tree15cabf6537a110ed2c3bd6f4f3ee296e4516344c /transcode_data.h
parent2f67b43aeca4530842db1324983a0e7a563917cc (diff)
* transcode_data.h: output function takes output buffer size.
* transcode.c: give output buffer size for output functions. * enc/trans/newline.trans: follow the type change. * enc/trans/escape.trans: ditto. * enc/trans/utf_16_32.trans: ditto. * enc/trans/iso2022.trans: ditto. * enc/trans/japanese.trans: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19350 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'transcode_data.h')
-rw-r--r--transcode_data.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/transcode_data.h b/transcode_data.h
index 98f48a4de9..a460c12e3c 100644
--- a/transcode_data.h
+++ b/transcode_data.h
@@ -84,11 +84,11 @@ struct rb_transcoder {
int (*state_fini_func)(void*); /* ret==0:success ret!=0:failure(errno) */
VALUE (*func_ii)(void*, VALUE); /* info -> info */
VALUE (*func_si)(void*, const unsigned char*, size_t); /* start -> info */
- int (*func_io)(void*, VALUE, const unsigned char*); /* info -> output */
- int (*func_so)(void*, const unsigned char*, size_t, unsigned char*); /* start -> output */
- int (*finish_func)(void*, unsigned char*); /* -> output */
+ int (*func_io)(void*, VALUE, const unsigned char*, size_t); /* info -> output */
+ int (*func_so)(void*, const unsigned char*, size_t, unsigned char*, size_t); /* start -> output */
+ int (*finish_func)(void*, unsigned char*, size_t); /* -> output */
int (*resetsize_func)(void*); /* -> len */
- int (*resetstate_func)(void*, unsigned char*); /* -> output */
+ int (*resetstate_func)(void*, unsigned char*, size_t); /* -> output */
};
void rb_declare_transcoder(const char *enc1, const char *enc2, const char *lib);