Skip to content

Commit

Permalink
* ruby.c: use translate_char() on Cygwin.
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5490 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
eban committed Jan 18, 2004
1 parent 47d0703 commit 736668f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Sun Jan 18 20:47:35 2004 WATANABE Hirofumi <[email protected]>

* ruby.c: use translate_char() on Cygwin.

Sun Jan 18 20:00:16 2004 NAKAMURA, Hiroshi <[email protected]>

* lib/soap/wsdlDriver.rb, lib/wsdl/soap/operation.rb: add support of
Expand Down
6 changes: 3 additions & 3 deletions ruby.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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, '/');
Expand Down Expand Up @@ -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++;
Expand Down

0 comments on commit 736668f

Please sign in to comment.