diff options
author | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-03-17 12:37:20 +0000 |
---|---|---|
committer | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-03-17 12:37:20 +0000 |
commit | 4ca0483a2879d6db9174d26f62ea98de33058650 (patch) | |
tree | 378e316fe28c3f5abd268a7fecf90729cfe56fe2 /internal.h | |
parent | 90ab5beb42a226a92d31a1da5cf9d99d276e05e6 (diff) | |
download | ruby-4ca0483a2879d6db9174d26f62ea98de33058650.tar.gz |
* array.c (rb_ary_max, rb_ary_min): implement Array#max and min with
arguments. replace super call with rb_nmin_run.
* enum.c (nmin_run): exported (as rb_nmin_run).
* internal.h: added a prototype for rb_nmin_run.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54152 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'internal.h')
-rw-r--r-- | internal.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/internal.h b/internal.h index 4a38762266..ce9de3b29b 100644 --- a/internal.h +++ b/internal.h @@ -806,6 +806,7 @@ int rb_data_is_encoding(VALUE obj); /* enum.c */ VALUE rb_f_send(int argc, VALUE *argv, VALUE recv); +VALUE rb_nmin_run(VALUE obj, VALUE num, int by, int rev, int ary); /* error.c */ extern VALUE rb_eEAGAIN; |