aboutsummaryrefslogtreecommitdiffstats
path: root/enc/trans/japanese.trans
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-14 18:35:17 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-14 18:35:17 +0000
commitc767be3039c9d511cc01541a7560896404e2ab80 (patch)
tree376bb5e7a4966dd710851ea524de5d9883bf2c2b /enc/trans/japanese.trans
parenta3c8c0adec2ccf37ffe88fa542cd9db650aa31bf (diff)
downloadruby-c767be3039c9d511cc01541a7560896404e2ab80.tar.gz
* transcode_data.h: return output functions ssize_t.
* transcode.c (transcode_restartable0): don't need to cast the result of 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@19351 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enc/trans/japanese.trans')
-rw-r--r--enc/trans/japanese.trans4
1 files changed, 2 insertions, 2 deletions
diff --git a/enc/trans/japanese.trans b/enc/trans/japanese.trans
index 4af9b5387c..ce5d0bb70f 100644
--- a/enc/trans/japanese.trans
+++ b/enc/trans/japanese.trans
@@ -19,7 +19,7 @@
<%= transcode_generated_code %>
-static int
+static ssize_t
fun_so_eucjp2sjis(void *statep, const unsigned char *s, size_t l, unsigned char *o, size_t osize)
{
if (s[0] == 0x8e) {
@@ -40,7 +40,7 @@ fun_so_eucjp2sjis(void *statep, const unsigned char *s, size_t l, unsigned char
}
}
-static int
+static ssize_t
fun_so_sjis2eucjp(void *statep, const unsigned char *s, size_t l, unsigned char *o, size_t osize)
{
if (l == 1) {