diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-01 19:55:25 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-01 19:55:25 +0000 |
commit | 9ed3d64d1d3e0fd60c9a65d621efdf66c59b0d9d (patch) | |
tree | a22c964558bdf523fdbc872feb8c70695d150915 /ruby.c | |
parent | 871913462f7e6d3a74b7408ab1677e93f53b0b23 (diff) |
* suppress warnings on cygwin, mingw and mswin.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@16740 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ruby.c')
-rw-r--r-- | ruby.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -809,6 +809,9 @@ proc_options(argc, argv) } else { script = argv[0]; +#if defined DOSISH || defined __CYGWIN__ + translate_char(argv[0], '\\', '/'); +#endif if (script[0] == '\0') { script = "-"; } @@ -825,10 +828,10 @@ proc_options(argc, argv) if (!script) script = argv[0]; script = ruby_sourcefile = rb_source_filename(script); script_node = NEW_NEWLINE(0); - } #if defined DOSISH || defined __CYGWIN__ - translate_char(script, '\\', '/'); + translate_char(ruby_sourcefile, '\\', '/'); #endif + } argc--; argv++; } } |