mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
19991292
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@574 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a3f29338ad
commit
4263bb432a
8 changed files with 26 additions and 10 deletions
|
@ -1,3 +1,11 @@
|
||||||
|
Thu Dec 2 10:21:43 1999 Yukihiro Matsumoto <matz@netlab.co.jp>
|
||||||
|
|
||||||
|
* eval.c (rb_thread_loading_done): wrong parameter to st_delete().
|
||||||
|
|
||||||
|
Wed Dec 1 11:24:06 1999 Nobuyoshi Nakada <nobu.nakada@nifty.ne.jp>
|
||||||
|
|
||||||
|
* ruby.c (process_sflag): process -s properly (should not force `--').
|
||||||
|
|
||||||
Wed Dec 1 09:47:33 1999 Kazunori NISHI <kazunori@swlab.csce.kyushu-u.ac.jp>
|
Wed Dec 1 09:47:33 1999 Kazunori NISHI <kazunori@swlab.csce.kyushu-u.ac.jp>
|
||||||
|
|
||||||
* string.c (rb_str_split_method): should increment end too.
|
* string.c (rb_str_split_method): should increment end too.
|
||||||
|
|
1
ToDo
1
ToDo
|
@ -42,6 +42,7 @@ Standard Libraries
|
||||||
- Dir.glob(pat){|f|...}
|
- Dir.glob(pat){|f|...}
|
||||||
- sprintf/printf's $ to specify argument order
|
- sprintf/printf's $ to specify argument order
|
||||||
- Dir.glob("**/*.c") ala zsh
|
- Dir.glob("**/*.c") ala zsh
|
||||||
|
* SyntaxError and NameError should not be subclasses of StandardError, maybe.
|
||||||
* debugger for thread programming
|
* debugger for thread programming
|
||||||
* Struct::new([name,]member,...) ??
|
* Struct::new([name,]member,...) ??
|
||||||
* String#scanf(?)
|
* String#scanf(?)
|
||||||
|
|
2
eval.c
2
eval.c
|
@ -7377,7 +7377,7 @@ rb_thread_loading_done(feature)
|
||||||
const char *feature;
|
const char *feature;
|
||||||
{
|
{
|
||||||
if (loading_tbl) {
|
if (loading_tbl) {
|
||||||
st_delete(loading_tbl, feature, 0);
|
st_delete(loading_tbl, &feature, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
|
|
||||||
require 'CGI'
|
require 'cgi'
|
||||||
require 'final'
|
require 'final'
|
||||||
|
|
||||||
class CGI
|
class CGI
|
||||||
|
|
|
@ -735,7 +735,7 @@ r_object(arg)
|
||||||
VALUE value = r_object(arg);
|
VALUE value = r_object(arg);
|
||||||
rb_hash_aset(v, key, value);
|
rb_hash_aset(v, key, value);
|
||||||
}
|
}
|
||||||
if (type = TYPE_HASH_DEF) {
|
if (type == TYPE_HASH_DEF) {
|
||||||
RHASH(v)->ifnone = r_object(arg);
|
RHASH(v)->ifnone = r_object(arg);
|
||||||
}
|
}
|
||||||
return v;
|
return v;
|
||||||
|
|
10
mkconfig.rb
10
mkconfig.rb
|
@ -75,15 +75,21 @@ end
|
||||||
print v_fast, v_others
|
print v_fast, v_others
|
||||||
print <<EOS
|
print <<EOS
|
||||||
CONFIG["compile_dir"] = "#{Dir.pwd}"
|
CONFIG["compile_dir"] = "#{Dir.pwd}"
|
||||||
CONFIG.each_value do |val|
|
MAKEFILE_CONFIG = {}
|
||||||
|
CONFIG.each{|k,v| MAKEFILE_CONFIG[k] = v.dup}
|
||||||
|
def Config::expand(val)
|
||||||
val.gsub!(/\\$\\(([^()]+)\\)/) do |var|
|
val.gsub!(/\\$\\(([^()]+)\\)/) do |var|
|
||||||
key = $1
|
key = $1
|
||||||
if CONFIG.key? key
|
if CONFIG.key? key
|
||||||
"\#{CONFIG[\\\"\#{key}\\\"]}"
|
"\#{Config::expand(CONFIG[\\\"\#{key}\\\"])}"
|
||||||
else
|
else
|
||||||
var
|
var
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
val
|
||||||
|
end
|
||||||
|
CONFIG.each_value do |val|
|
||||||
|
Config::expand(val)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
EOS
|
EOS
|
||||||
|
|
7
ruby.c
7
ruby.c
|
@ -266,11 +266,12 @@ process_sflag()
|
||||||
|
|
||||||
n = RARRAY(rb_argv)->len;
|
n = RARRAY(rb_argv)->len;
|
||||||
args = RARRAY(rb_argv)->ptr;
|
args = RARRAY(rb_argv)->ptr;
|
||||||
while (n--) {
|
while (n > 0) {
|
||||||
char *s = STR2CSTR(*args);
|
char *s = STR2CSTR(*args++);
|
||||||
char *p;
|
char *p;
|
||||||
|
|
||||||
if (s[0] != '-') continue;
|
if (s[0] != '-') break;
|
||||||
|
n--;
|
||||||
if (s[1] == '-' && s[2] == '\0') break;
|
if (s[1] == '-' && s[2] == '\0') break;
|
||||||
|
|
||||||
s[0] = '$';
|
s[0] = '$';
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#define RUBY_VERSION "1.5.0"
|
#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_VERSION_CODE 150
|
||||||
#define RUBY_RELEASE_CODE 19991201
|
#define RUBY_RELEASE_CODE 19991202
|
||||||
|
|
Loading…
Reference in a new issue