summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-23 12:07:23 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-23 12:07:23 +0000
commite8b0f17319d78b7435d84d7875d923117eebc37e (patch)
treee784769fdb709d56709599b9597070d065ef5eed /string.c
parent548027ef61c706a1459ab38c43482e1e333844a4 (diff)
* array.c (ary_resize_capa): Remove an unused function.
* array.c, bignum.c, dir.c, enumerator.c, gc.c, io.c, numeric.c, object.c, re.c, string.c, struct.c: Mixing two styles is not a good thing. Stick with the K&R style in 1.8. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23052 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r--string.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/string.c b/string.c
index d3b947c550..d1589bede9 100644
--- a/string.c
+++ b/string.c
@@ -514,7 +514,8 @@ rb_str_modify(str)
}
static inline void
-str_discard(VALUE str)
+str_discard(str)
+ VALUE str;
{
if (str_independent(str)) {
xfree(RSTRING_PTR(str));
@@ -716,7 +717,9 @@ rb_str_unlocktmp(str)
}
void
-rb_str_set_len(VALUE str, long len)
+rb_str_set_len(str, len)
+ VALUE str;
+ long len;
{
RSTRING(str)->len = len;
RSTRING(str)->ptr[len] = '\0';
@@ -3961,7 +3964,8 @@ rb_str_each_byte(str)
*/
static VALUE
-rb_str_each_char(VALUE str)
+rb_str_each_char(str)
+ VALUE str;
{
int i, len, n;
const char *ptr;