From 4263bb432accd9bd98654c3e8cc312414e7db906 Mon Sep 17 00:00:00 2001 From: matz Date: Thu, 2 Dec 1999 06:58:52 +0000 Subject: [PATCH] 19991292 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@574 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 8 ++++++++ ToDo | 1 + eval.c | 2 +- lib/cgi/session.rb | 2 +- marshal.c | 2 +- mkconfig.rb | 10 ++++++++-- ruby.c | 7 ++++--- version.h | 4 ++-- 8 files changed, 26 insertions(+), 10 deletions(-) diff --git a/ChangeLog b/ChangeLog index 19410008e6..cb9a695a89 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +Thu Dec 2 10:21:43 1999 Yukihiro Matsumoto + + * eval.c (rb_thread_loading_done): wrong parameter to st_delete(). + +Wed Dec 1 11:24:06 1999 Nobuyoshi Nakada + + * ruby.c (process_sflag): process -s properly (should not force `--'). + Wed Dec 1 09:47:33 1999 Kazunori NISHI * string.c (rb_str_split_method): should increment end too. diff --git a/ToDo b/ToDo index 6ccbd17381..1e9cd7fd0d 100644 --- a/ToDo +++ b/ToDo @@ -42,6 +42,7 @@ Standard Libraries - Dir.glob(pat){|f|...} - sprintf/printf's $ to specify argument order - Dir.glob("**/*.c") ala zsh +* SyntaxError and NameError should not be subclasses of StandardError, maybe. * debugger for thread programming * Struct::new([name,]member,...) ?? * String#scanf(?) diff --git a/eval.c b/eval.c index f1a5a8dabd..00006aeff5 100644 --- a/eval.c +++ b/eval.c @@ -7377,7 +7377,7 @@ rb_thread_loading_done(feature) const char *feature; { if (loading_tbl) { - st_delete(loading_tbl, feature, 0); + st_delete(loading_tbl, &feature, 0); } } diff --git a/lib/cgi/session.rb b/lib/cgi/session.rb index c584fdb49b..edbae8c850 100644 --- a/lib/cgi/session.rb +++ b/lib/cgi/session.rb @@ -1,5 +1,5 @@ -require 'CGI' +require 'cgi' require 'final' class CGI diff --git a/marshal.c b/marshal.c index fa2fa4bdd1..fe29385b42 100644 --- a/marshal.c +++ b/marshal.c @@ -735,7 +735,7 @@ r_object(arg) VALUE value = r_object(arg); rb_hash_aset(v, key, value); } - if (type = TYPE_HASH_DEF) { + if (type == TYPE_HASH_DEF) { RHASH(v)->ifnone = r_object(arg); } return v; diff --git a/mkconfig.rb b/mkconfig.rb index 093d02344d..671e9bdbe8 100644 --- a/mkconfig.rb +++ b/mkconfig.rb @@ -75,15 +75,21 @@ end print v_fast, v_others print <len; args = RARRAY(rb_argv)->ptr; - while (n--) { - char *s = STR2CSTR(*args); + while (n > 0) { + char *s = STR2CSTR(*args++); char *p; - if (s[0] != '-') continue; + if (s[0] != '-') break; + n--; if (s[1] == '-' && s[2] == '\0') break; s[0] = '$'; diff --git a/version.h b/version.h index 93847821a3..6baa265780 100644 --- a/version.h +++ b/version.h @@ -1,4 +1,4 @@ #define RUBY_VERSION "1.5.0" -#define RUBY_RELEASE_DATE "1999-12-01" +#define RUBY_RELEASE_DATE "1999-12-02" #define RUBY_VERSION_CODE 150 -#define RUBY_RELEASE_CODE 19991201 +#define RUBY_RELEASE_CODE 19991202