diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1998-04-07 08:34:10 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1998-04-07 08:34:10 +0000 |
commit | ba06b1a81f81e089849c7c877eba7b1d3618b126 (patch) | |
tree | 57e77c2ade50f201b4aafdc071cf86fb95eb7016 /bignum.c | |
parent | f8fc9136223c83c2791566d3efa52843f89aa127 (diff) |
dynamic (nested) local variables
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@151 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bignum.c')
-rw-r--r-- | bignum.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -1241,6 +1241,13 @@ big_size(big) return INT2FIX(RBIGNUM(big)->len*sizeof(USHORT)); } +static VALUE +big_zero_p(big) + VALUE big; +{ + return FALSE; +} + void Init_Bignum() { @@ -1274,4 +1281,5 @@ Init_Bignum() rb_define_method(cBignum, "to_f", big_to_f, 0); rb_define_method(cBignum, "abs", big_abs, 0); rb_define_method(cBignum, "size", big_size, 0); + rb_define_method(cBignum, "zero?", big_zero_p, 0); } |