summaryrefslogtreecommitdiffstats
path: root/ext
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-25 06:01:22 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-25 06:01:22 +0000
commit793c6289efdb489fd4f8e3f14d19fbcf931d2c70 (patch)
treebbb7d65d1214541ad1574248284d3dc165934959 /ext
parente64525540af1f5cf8a6d535cdbe15a079f9f710c (diff)
downloadruby-793c6289efdb489fd4f8e3f14d19fbcf931d2c70.tar.gz
ruby-793c6289efdb489fd4f8e3f14d19fbcf931d2c70.tar.xz
ruby-793c6289efdb489fd4f8e3f14d19fbcf931d2c70.zip
* enum.c (enum_yield): when multiple values yielded from #each
pack them into an array. [ruby-dev:32708] * enum.c: all method but all?, any?, one? and none? passed packed multiple values to the block. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14667 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/dbm/extconf.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/dbm/extconf.rb b/ext/dbm/extconf.rb
index 0074ab605..4d1226406 100644
--- a/ext/dbm/extconf.rb
+++ b/ext/dbm/extconf.rb
@@ -36,7 +36,7 @@ def headers.db_check(db)
db_prefix ||= ""
if (have_library(db, db_prefix+"dbm_open") || have_func(db_prefix+"dbm_open")) and
- hdr = self.fetch(db, ["ndbm.h"]).find {|hdr| have_type("DBM", hdr, hsearch)}
+ hdr = self.fetch(db, ["ndbm.h"]).find {|h| have_type("DBM", h, hsearch)}
have_func(db_prefix+"dbm_clearerr") unless have_gdbm
$defs << hsearch if hsearch
$defs << '-DDBM_HDR="<'+hdr+'>"'