1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* transcode_data.h (rb_transcoder): resetsize_func and resetstate_func

also returns ssize_t.

* enc/trans/iso2022.trans: follow the type change.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19354 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2008-09-15 02:11:50 +00:00
parent 1cda105886
commit 0675246ba6
3 changed files with 10 additions and 3 deletions

View file

@ -1,3 +1,10 @@
Mon Sep 15 11:11:04 2008 Tanaka Akira <akr@fsij.org>
* transcode_data.h (rb_transcoder): resetsize_func and resetstate_func
also returns ssize_t.
* enc/trans/iso2022.trans: follow the type change.
Mon Sep 15 10:28:10 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
* test/matrix/test_matrix.rb (setup): typo.

View file

@ -163,7 +163,7 @@ fun_so_iso2022jp_encoder(void *statep, const unsigned char *s, size_t l, unsigne
return o - output0;
}
static int
static ssize_t
iso2022jp_encoder_reset_sequence_size(void *statep)
{
unsigned char *sp = statep;

View file

@ -87,8 +87,8 @@ struct rb_transcoder {
ssize_t (*func_io)(void*, VALUE, const unsigned char*, size_t); /* info -> output */
ssize_t (*func_so)(void*, const unsigned char*, size_t, unsigned char*, size_t); /* start -> output */
ssize_t (*finish_func)(void*, unsigned char*, size_t); /* -> output */
int (*resetsize_func)(void*); /* -> len */
int (*resetstate_func)(void*, unsigned char*, size_t); /* -> output */
ssize_t (*resetsize_func)(void*); /* -> len */
ssize_t (*resetstate_func)(void*, unsigned char*, size_t); /* -> output */
};
void rb_declare_transcoder(const char *enc1, const char *enc2, const char *lib);