summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-12-27 16:13:56 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-12-27 16:13:56 +0000
commitc40c0f726b8f4a1aabdbc88ebf8958747af685cf (patch)
treec940f443624dac29eb1aae0c428df92d06e6cc3a /ext
parent212d3ebfff502238f032e5ff9160c1ef1b4b4412 (diff)
* {win32,bcc32}/Makefile.sub: remove `=' from --make-flags options.
nmake quotes args if included `=' in args. * instruby.rb: use getopts.rb. * ext/dbm/extconf.rb: substitute ' with ". * ext/gdbm/gdbm.c: add prototypes to avoid VC++ warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3229 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/dbm/extconf.rb2
-rw-r--r--ext/gdbm/gdbm.c4
2 files changed, 5 insertions, 1 deletions
diff --git a/ext/dbm/extconf.rb b/ext/dbm/extconf.rb
index e67ede88f5..7f59ebd218 100644
--- a/ext/dbm/extconf.rb
+++ b/ext/dbm/extconf.rb
@@ -32,7 +32,7 @@ def db_check(db)
if have_library(db, db_prefix("dbm_open")) || have_func(db_prefix("dbm_open"))
for hdr in $dbm_conf_headers.fetch(db, ["ndbm.h"])
if have_header(hdr.dup)
- $CFLAGS += " " + hsearch + "-DDBM_HDR='<"+hdr+">'"
+ $CFLAGS += " " + hsearch + '-DDBM_HDR="<'+hdr+'>"'
return true
end
end
diff --git a/ext/gdbm/gdbm.c b/ext/gdbm/gdbm.c
index 143449c21b..edbd976231 100644
--- a/ext/gdbm/gdbm.c
+++ b/ext/gdbm/gdbm.c
@@ -65,6 +65,8 @@ fgdbm_close(obj)
return Qnil;
}
+static VALUE fgdbm_s_alloc _((VALUE));
+
static VALUE
fgdbm_s_alloc(klass)
VALUE klass;
@@ -511,6 +513,8 @@ fgdbm_invert(obj)
return hash;
}
+static VALUE each_pair _((VALUE));
+
static VALUE
each_pair(obj)
VALUE obj;