* ruby.c (process_options): get rid of warning on DOSISH.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20869 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
20a745f1cf
commit
e5bfdb8391
@ -1,3 +1,7 @@
|
|||||||
|
Fri Dec 19 15:51:48 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* ruby.c (process_options): get rid of warning on DOSISH.
|
||||||
|
|
||||||
Fri Dec 19 07:45:37 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
|
Fri Dec 19 07:45:37 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
* error.c (exc_equal): duck typing equal to make it transitive.
|
* error.c (exc_equal): duck typing equal to make it transitive.
|
||||||
|
2
ruby.c
2
ruby.c
@ -1281,7 +1281,7 @@ process_options(VALUE arg)
|
|||||||
opt->script_name = rb_str_new_cstr(opt->script);
|
opt->script_name = rb_str_new_cstr(opt->script);
|
||||||
opt->script = RSTRING_PTR(opt->script_name);
|
opt->script = RSTRING_PTR(opt->script_name);
|
||||||
#if defined DOSISH || defined __CYGWIN__
|
#if defined DOSISH || defined __CYGWIN__
|
||||||
translate_char(opt->script, '\\', '/');
|
translate_char(RSTRING_PTR(opt->script_name), '\\', '/');
|
||||||
#endif
|
#endif
|
||||||
rb_obj_freeze(opt->script_name);
|
rb_obj_freeze(opt->script_name);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user