mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* file.c (isdirsep): backslash is valid path separator on cygwin too.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@15732 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
17099f82c7
commit
613ad45042
3 changed files with 13 additions and 10 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
Sat Mar 8 18:50:57 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* file.c (isdirsep): backslash is valid path separator on cygwin too.
|
||||||
|
|
||||||
Fri Mar 7 19:56:10 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Fri Mar 7 19:56:10 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* lib/mkmf.rb: rdoc added. [ruby-Patches-9762]
|
* lib/mkmf.rb: rdoc added. [ruby-Patches-9762]
|
||||||
|
|
13
file.c
13
file.c
|
@ -2299,12 +2299,17 @@ rb_file_s_umask(argc, argv)
|
||||||
return INT2FIX(omask);
|
return INT2FIX(omask);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined DOSISH
|
#ifdef __CYGWIN__
|
||||||
|
#undef DOSISH
|
||||||
|
#endif
|
||||||
|
#if defined __CYGWIN__ || defined DOSISH
|
||||||
#define DOSISH_UNC
|
#define DOSISH_UNC
|
||||||
|
#define DOSISH_DRIVE_LETTER
|
||||||
#define isdirsep(x) ((x) == '/' || (x) == '\\')
|
#define isdirsep(x) ((x) == '/' || (x) == '\\')
|
||||||
#else
|
#else
|
||||||
#define isdirsep(x) ((x) == '/')
|
#define isdirsep(x) ((x) == '/')
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef CharNext /* defined as CharNext[AW] on Windows. */
|
#ifndef CharNext /* defined as CharNext[AW] on Windows. */
|
||||||
# if defined(DJGPP)
|
# if defined(DJGPP)
|
||||||
# define CharNext(p) ((p) + mblen(p, MB_CUR_MAX))
|
# define CharNext(p) ((p) + mblen(p, MB_CUR_MAX))
|
||||||
|
@ -2313,12 +2318,6 @@ rb_file_s_umask(argc, argv)
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __CYGWIN__
|
|
||||||
#undef DOSISH
|
|
||||||
#define DOSISH_UNC
|
|
||||||
#define DOSISH_DRIVE_LETTER
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef DOSISH_DRIVE_LETTER
|
#ifdef DOSISH_DRIVE_LETTER
|
||||||
static inline int
|
static inline int
|
||||||
has_drive_letter(buf)
|
has_drive_letter(buf)
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#define RUBY_VERSION "1.8.6"
|
#define RUBY_VERSION "1.8.6"
|
||||||
#define RUBY_RELEASE_DATE "2008-03-07"
|
#define RUBY_RELEASE_DATE "2008-03-08"
|
||||||
#define RUBY_VERSION_CODE 186
|
#define RUBY_VERSION_CODE 186
|
||||||
#define RUBY_RELEASE_CODE 20080307
|
#define RUBY_RELEASE_CODE 20080308
|
||||||
#define RUBY_PATCHLEVEL 5000
|
#define RUBY_PATCHLEVEL 5000
|
||||||
|
|
||||||
#define RUBY_VERSION_MAJOR 1
|
#define RUBY_VERSION_MAJOR 1
|
||||||
|
@ -9,7 +9,7 @@
|
||||||
#define RUBY_VERSION_TEENY 6
|
#define RUBY_VERSION_TEENY 6
|
||||||
#define RUBY_RELEASE_YEAR 2008
|
#define RUBY_RELEASE_YEAR 2008
|
||||||
#define RUBY_RELEASE_MONTH 3
|
#define RUBY_RELEASE_MONTH 3
|
||||||
#define RUBY_RELEASE_DAY 7
|
#define RUBY_RELEASE_DAY 8
|
||||||
|
|
||||||
#ifdef RUBY_EXTERN
|
#ifdef RUBY_EXTERN
|
||||||
RUBY_EXTERN const char ruby_version[];
|
RUBY_EXTERN const char ruby_version[];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue