diff options
author | ocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-09-12 10:44:21 +0000 |
---|---|---|
committer | ocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-09-12 10:44:21 +0000 |
commit | dda5dc00cff334cac373096d444a0fd59e716124 (patch) | |
tree | d9ab9c1dc4cede235a3bbaea653c07f38ea880b9 /prec.c | |
parent | 51e25545aeb1555051b95c5b31b4f3ca6ec6b6fe (diff) | |
download | ruby-dda5dc00cff334cac373096d444a0fd59e716124.tar.gz |
* array.c: moved to ANSI function style from K&R function style.
(used protoize on windows, so still K&R remains on #ifdef part of
other platforms. And `foo _((boo))' stuff is still there)
[ruby-dev:26975]
* bignum.c, class.c, compar.c, dir.c, dln.c, dmyext.c, enum.c,
enumerator.c, error.c, eval.c, file.c, gc.c, hash.c, inits.c,
io.c, main.c, marshal.c, math.c, numeric.c, object.c, pack.c,
prec.c, process.c, random.c, range.c, re.c, regcomp.c, regenc.c,
regerror.c, regexec.c, regparse.c, regparse.h, ruby.c, signal.c,
sprintf.c, st.c, string.c, struct.c, time.c, util.h, variable.c,
version.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9126 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'prec.c')
-rw-r--r-- | prec.c | 17 |
1 files changed, 6 insertions, 11 deletions
@@ -32,8 +32,7 @@ static ID prc_pr, prc_if; */ static VALUE -prec_prec(x, klass) - VALUE x, klass; +prec_prec(VALUE x, VALUE klass) { return rb_funcall(klass, prc_if, 1, x); } @@ -47,8 +46,7 @@ prec_prec(x, klass) */ static VALUE -prec_prec_i(x) - VALUE x; +prec_prec_i(VALUE x) { VALUE klass = rb_cInteger; @@ -64,8 +62,7 @@ prec_prec_i(x) */ static VALUE -prec_prec_f(x) - VALUE x; +prec_prec_f(VALUE x) { VALUE klass = rb_cFloat; @@ -86,8 +83,7 @@ prec_prec_f(x) */ static VALUE -prec_induced_from(module, x) - VALUE module, x; +prec_induced_from(VALUE module, VALUE x) { rb_raise(rb_eTypeError, "undefined conversion from %s into %s", rb_obj_classname(x), rb_class2name(module)); @@ -104,8 +100,7 @@ prec_induced_from(module, x) */ static VALUE -prec_included(module, include) - VALUE module, include; +prec_included(VALUE module, VALUE include) { switch (TYPE(include)) { case T_CLASS: @@ -128,7 +123,7 @@ prec_included(module, include) */ void -Init_Precision() +Init_Precision(void) { rb_mPrecision = rb_define_module("Precision"); rb_define_singleton_method(rb_mPrecision, "included", prec_included, 1); |