diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-05-04 16:03:24 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-05-04 16:03:24 +0000 |
| commit | 40efee52b5b7af7c40fa26098157469c4f066153 (patch) | |
| tree | a6f751d98db26e466d957576ef3fee9974cbb471 /ext | |
| parent | d2445fff46b8092de61fbf64c7976324aabfc237 (diff) | |
| download | ruby-40efee52b5b7af7c40fa26098157469c4f066153.tar.gz ruby-40efee52b5b7af7c40fa26098157469c4f066153.tar.xz ruby-40efee52b5b7af7c40fa26098157469c4f066153.zip | |
* array.c (rb_ary_values_at): new method to replace select(index..).
* hash.c (rb_hash_values_at,env_values_at): ditto.
* re.c (match_values_at): ditto.
* struct.c (rb_struct_values_at): ditto.
* re.c (match_select): add iterator behavior.
* ext/curses/curses.c, ext/digest/sha2/sha2.c, ext/iconv/iconv.c,
ext/racc/cparse/cparse.c: include "ruby.h" at the top to shut up
"_FILE_OFFSET_BITS redefined" warning on Solaris.
* class.c (rb_class_protected_instance_methods): now gives
warnings to show migration path. The default will be reversed
on Jan 2004.
* numeric.c (num_step): "1.1.step(1.5,0.1)" to work.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3754 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/curses/curses.c | 3 | ||||
| -rw-r--r-- | ext/digest/sha2/sha2.c | 2 | ||||
| -rw-r--r-- | ext/iconv/iconv.c | 2 | ||||
| -rw-r--r-- | ext/racc/cparse/cparse.c | 2 |
4 files changed, 5 insertions, 4 deletions
diff --git a/ext/curses/curses.c b/ext/curses/curses.c index a666cce89..d2263ef00 100644 --- a/ext/curses/curses.c +++ b/ext/curses/curses.c @@ -13,6 +13,8 @@ * - Takaaki Tateishi (ttate@kt.jaist.ac.jp) */ +#include "ruby.h" + #if defined(HAVE_NCURSES_H) # include <ncurses.h> #elif defined(HAVE_NCURSES_CURSES_H) @@ -46,7 +48,6 @@ #endif #include <stdio.h> -#include "ruby.h" #include "rubyio.h" static VALUE mCurses; diff --git a/ext/digest/sha2/sha2.c b/ext/digest/sha2/sha2.c index a3c325808..31b5ff169 100644 --- a/ext/digest/sha2/sha2.c +++ b/ext/digest/sha2/sha2.c @@ -36,10 +36,10 @@ /* $RoughId: sha2.c,v 1.3 2002/02/26 22:03:36 knu Exp $ */ /* $Id$ */ +#include "sha2.h" #include <stdio.h> #include <string.h> /* memcpy()/memset() or bcopy()/bzero() */ #include <assert.h> /* assert() */ -#include "sha2.h" /* * ASSERT NOTE: diff --git a/ext/iconv/iconv.c b/ext/iconv/iconv.c index 098ffb0cf..e9f268785 100644 --- a/ext/iconv/iconv.c +++ b/ext/iconv/iconv.c @@ -32,10 +32,10 @@ Which coding systems are available, it depends on the platform. =end */ +#include "ruby.h" #include <errno.h> #include <iconv.h> #include <assert.h> -#include "ruby.h" #include "intern.h" /* Invalid value for iconv_t is -1 but 0 for VALUE, I hope VALUE is diff --git a/ext/racc/cparse/cparse.c b/ext/racc/cparse/cparse.c index 6ed6293de..3d75cc9ca 100644 --- a/ext/racc/cparse/cparse.c +++ b/ext/racc/cparse/cparse.c @@ -11,8 +11,8 @@ */ -#include <stdio.h> #include "ruby.h" +#include <stdio.h> /* ----------------------------------------------------------------------- |
