From e77ddaf0d1d421da2f655832a45f237558e23115 Mon Sep 17 00:00:00 2001 From: matz Date: Fri, 17 Sep 2004 09:24:13 +0000 Subject: * array.c (rb_ary_delete): element comparison might change array size. [ruby-dev:24273] * parse.y: make ruby parser reentrant. merge ripper parser to the real one. this change makes ruby require bison. * file.c (rb_file_truncate): clear stdio buffer before truncating the file. [ruby-dev:24191] * ext/digest/digest.c: use rb_obj_class() instead of CLASS_OF which might return singleton class. [ruby-dev:24202] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6919 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/cgi/session.rb | 37 +++++++++++++++++++++++++++++++++++++ lib/mkmf.rb | 4 ++-- 2 files changed, 39 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/cgi/session.rb b/lib/cgi/session.rb index 9a49fdedc9..6ca85e1806 100644 --- a/lib/cgi/session.rb +++ b/lib/cgi/session.rb @@ -458,5 +458,42 @@ class CGI GLOBAL_HASH_TABLE.delete(@session_id) end end + + # Dummy session storage class. + # + # Implements session storage place holder. No actual storage + # will be done. + class NullStore + # Create a new NullStore instance. + # + # +session+ is the session this instance is associated with. + # +option+ is a list of initialisation options. None are + # currently recognised. + def initialize(session, option=nil) + end + + # Restore (empty) session state. + def restore + {} + end + + # Update session state. + # + # A no-op. + def update + end + + # Close session storage. + # + # A no-op. + def close + end + + # Delete the session state. + # + # A no-op. + def delete + end + end end end diff --git a/lib/mkmf.rb b/lib/mkmf.rb index e869fc9ca2..98c56ed248 100644 --- a/lib/mkmf.rb +++ b/lib/mkmf.rb @@ -475,7 +475,7 @@ def checking_for(m) r end -def have_library(lib, func = nil, &b) +def have_library(lib, func = nil, header=nil, &b) func = "main" if !func or func.empty? lib = with_config(lib+'lib', lib) checking_for "#{func}() in #{LIBARG%lib}" do @@ -483,7 +483,7 @@ def have_library(lib, func = nil, &b) true else libs = append_library($libs, lib) - if try_func(func, libs, &b) + if try_func(func, libs, header, &b) $libs = libs true else -- cgit v1.2.3