diff options
author | (no author) <(no author)@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1998-02-27 07:48:11 +0000 |
---|---|---|
committer | (no author) <(no author)@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1998-02-27 07:48:11 +0000 |
commit | 7425d4f6ef047dd274cbea8115955462d5449330 (patch) | |
tree | 575dcd5c8f6df0908e4198376441d4257dcde75d /struct.c | |
parent | fd1d8cdc09ed86e4a0812120a17ff0d7b04adcaf (diff) |
This commit was manufactured by cvs2svn to create tag 'r1_1b9'.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/tags/r1_1b9@100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'struct.c')
-rw-r--r-- | struct.c | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -196,20 +196,20 @@ struct_s_def(argc, argv) } VALUE -struct_alloc(class, values) - VALUE class, values; +struct_alloc(klass, values) + VALUE klass, values; { VALUE size; int n; - size = rb_iv_get(class, "__size__"); + size = rb_iv_get(klass, "__size__"); n = FIX2INT(size); if (n < RARRAY(values)->len) { ArgError("struct size differs"); } else { NEWOBJ(st, struct RStruct); - OBJSETUP(st, class, T_STRUCT); + OBJSETUP(st, klass, T_STRUCT); st->len = n; st->ptr = 0; /* avoid GC crashing */ st->ptr = ALLOC_N(VALUE, n); @@ -222,15 +222,15 @@ struct_alloc(class, values) } VALUE -struct_new(class, va_alist) - VALUE class; +struct_new(klass, va_alist) + VALUE klass; va_dcl { VALUE val, mem; int size; va_list args; - val = rb_iv_get(class, "__size__"); + val = rb_iv_get(klass, "__size__"); size = FIX2INT(val); mem = ary_new(); va_start(args); @@ -240,7 +240,7 @@ struct_new(class, va_alist) } va_end(args); - return struct_alloc(class, mem); + return struct_alloc(klass, mem); } static VALUE |