1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/shell/command-processor.rb (Shell::CommandProcessor::rmdir):

simple typo.

* string.c (str_new4): ptr may refer null_str.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4328 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2003-08-05 09:27:21 +00:00
parent 5e12815fb1
commit 808aa5f318
5 changed files with 21 additions and 6 deletions

View file

@ -2,10 +2,19 @@ Tue Aug 5 17:58:57 2003 WATANABE Hirofumi <eban@ruby-lang.org>
* lib/fileutils.rb (install): should preserve timestamp only.
Tue Aug 5 17:31:59 2003 Ian Macdonald <ian@caliban.org>
* lib/shell/command-processor.rb (Shell::CommandProcessor::rmdir):
simple typo.
Tue Aug 5 15:47:34 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
* eval.c (rb_load): should preserve current source file/line.
Tue Aug 5 10:04:42 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
* string.c (str_new4): ptr may refer null_str.
Mon Aug 4 17:25:18 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
* stable version 1.8.0 released.

View file

@ -205,7 +205,7 @@ class Shell
#
def rmdir(*path)
for dir in path
Dir.rmdir(expand_path(path))
Dir.rmdir(expand_path(dir))
end
end

View file

@ -128,8 +128,8 @@ extern unsigned long strtoul _((char *, char **, int));
# else
# include <varargs.h>
# endif
extern snprintf __((char *, size_t n, char const *, ...));
extern vsnprintf _((char *, size_t n, char const *, va_list));
extern int snprintf __((char *, size_t n, char const *, ...));
extern int vsnprintf _((char *, size_t n, char const *, va_list));
#endif
#endif /* MISSING_H */

View file

@ -45,7 +45,7 @@ File.foreach "config.status" do |line|
next if $install_name and /^RUBY_INSTALL_NAME$/ =~ name
next if $so_name and /^RUBY_SO_NAME$/ =~ name
v = " CONFIG[\"" + name + "\"] = " +
val.gsub(/\$(?:\$|\{?(\w+)\}?)/) {$1?"$(#{$1})":$&}.dump + "\n"
val.gsub(/\$(?:\$|\{?(\w+)\}?)/) {$1 ? "$(#{$1})" : $&}.dump + "\n"
if fast[name]
v_fast << v
else

View file

@ -144,8 +144,14 @@ str_new4(klass, str)
RSTRING(str2)->len = RSTRING(str)->len;
RSTRING(str2)->ptr = RSTRING(str)->ptr;
RSTRING(str)->aux.shared = str2;
if (FL_TEST(str, ELTS_SHARED) && !RSTRING(str)->aux.shared) {
/* ptr should be null_str */
FL_SET(str2, ELTS_SHARED);
}
else {
FL_SET(str, ELTS_SHARED);
RSTRING(str)->aux.shared = str2;
}
OBJ_INFECT(str2, str);
return str2;