summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
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;