From c40c0f726b8f4a1aabdbc88ebf8958747af685cf Mon Sep 17 00:00:00 2001 From: eban Date: Fri, 27 Dec 2002 16:13:56 +0000 Subject: * {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 --- ext/dbm/extconf.rb | 2 +- ext/gdbm/gdbm.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'ext') 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; -- cgit v1.2.3