summaryrefslogtreecommitdiffstats
path: root/pack.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-01-05 04:41:21 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-01-05 04:41:21 +0000
commit56e60da9db31c4b6ec8d6433be9710470daaf34a (patch)
treece7e90b3c16ce6246be9850c9b1ea1328992c0e7 /pack.c
parentc3f7c758488c87d12a779345c567f1b4b5e910b0 (diff)
downloadruby-56e60da9db31c4b6ec8d6433be9710470daaf34a.tar.gz
ruby-56e60da9db31c4b6ec8d6433be9710470daaf34a.tar.xz
ruby-56e60da9db31c4b6ec8d6433be9710470daaf34a.zip
20000105
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@598 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'pack.c')
-rw-r--r--pack.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/pack.c b/pack.c
index 999f93a0e..0b0ebb020 100644
--- a/pack.c
+++ b/pack.c
@@ -6,7 +6,7 @@
$Date$
created at: Thu Feb 10 15:17:05 JST 1994
- Copyright (C) 1993-1999 Yukihiro Matsumoto
+ Copyright (C) 1993-2000 Yukihiro Matsumoto
************************************************/
@@ -329,7 +329,7 @@ pack_pack(ary, fmt)
int natint; /* native integer */
#endif
- p = str2cstr(fmt, &plen);
+ p = rb_str2cstr(fmt, &plen);
pend = p + plen;
res = rb_str_new(0, 0);
@@ -379,7 +379,7 @@ pack_pack(ary, fmt)
plen = 0;
}
else {
- ptr = str2cstr(from, &plen);
+ ptr = rb_str2cstr(from, &plen);
}
if (p[-1] == '*')
@@ -813,7 +813,7 @@ pack_pack(ary, fmt)
case 'u':
case 'm':
- ptr = str2cstr(NEXTFROM, &plen);
+ ptr = rb_str2cstr(NEXTFROM, &plen);
if (len <= 1)
len = 45;
@@ -1030,9 +1030,9 @@ pack_unpack(str, fmt)
int natint; /* native integer */
#endif
- s = str2cstr(str, &len);
+ s = rb_str2cstr(str, &len);
send = s + len;
- p = str2cstr(fmt, &len);
+ p = rb_str2cstr(fmt, &len);
pend = p + len;
ary = rb_ary_new();