diff options
author | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-01-18 11:49:46 +0000 |
---|---|---|
committer | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-01-18 11:49:46 +0000 |
commit | 736668f2b00b8c0f33a55cef16a0dcf8708fda7e (patch) | |
tree | 01942da47fa180b9346b963319b5081d6fbce6c1 | |
parent | 47d0703ee5fb25d5a0586e32932bdd43a7ef4b64 (diff) | |
download | ruby-736668f2b00b8c0f33a55cef16a0dcf8708fda7e.tar.gz |
* ruby.c: use translate_char() on Cygwin.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5490 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | ruby.c | 6 |
2 files changed, 7 insertions, 3 deletions
@@ -1,3 +1,7 @@ +Sun Jan 18 20:47:35 2004 WATANABE Hirofumi <eban@ruby-lang.org> + + * ruby.c: use translate_char() on Cygwin. + Sun Jan 18 20:00:16 2004 NAKAMURA, Hiroshi <nakahiro@sarion.co.jp> * lib/soap/wsdlDriver.rb, lib/wsdl/soap/operation.rb: add support of @@ -212,7 +212,7 @@ ruby_incpush(path) #define LOAD_RELATIVE 1 #endif -#ifdef DOSISH +#if defined DOSISH || defined __CYGWIN__ static inline void translate_char _((char *, int, int)); static inline void @@ -260,7 +260,7 @@ ruby_init_loadpath() #endif libpath[FILENAME_MAX] = '\0'; -#ifdef DOSISH +#if defined DOSISH || defined __CYGWIN__ translate_char(libpath, '\\', '/'); #endif p = strrchr(libpath, '/'); @@ -755,7 +755,7 @@ proc_options(argc, argv) script = ruby_sourcefile = rb_source_filename(script); script_node = NEW_NEWLINE(0); } -#ifdef DOSISH +#if defined DOSISH || defined __CYGWIN__ translate_char(script, '\\', '/'); #endif argc--; argv++; |