mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
19991108
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@558 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a9e9697994
commit
2841285182
12 changed files with 57 additions and 55 deletions
|
|
@ -39,10 +39,10 @@
|
|||
#define RSHIFT(x,y) ((x)>>y)
|
||||
#define FILE_COUNT _cnt
|
||||
#define DLEXT ".dll"
|
||||
#define RUBY_LIB "/usr/local/lib/ruby/1.4"
|
||||
#define RUBY_ARCHLIB "/usr/local/lib/ruby/1.4/i386-mswin32"
|
||||
#define RUBY_SITE_LIB "/usr/local/lib/ruby/1.4/site_ruby"
|
||||
#define RUBY_SITE_ARCHLIB "/usr/local/lib/ruby/1.4/site_ruby/i386-mswin32"
|
||||
#define RUBY_LIB "/usr/local/lib/ruby/1.5"
|
||||
#define RUBY_ARCHLIB "/usr/local/lib/ruby/1.5/i386-mswin32"
|
||||
#define RUBY_SITE_LIB "/usr/local/lib/ruby/1.5/site_ruby"
|
||||
#define RUBY_SITE_ARCHLIB "/usr/local/lib/ruby/1.5/site_ruby/i386-mswin32"
|
||||
#define RUBY_PLATFORM "i386-mswin32"
|
||||
|
||||
#define SIZEOF_INT 4
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ s%@CPPFLAGS@%%g
|
|||
s%@CXXFLAGS@%%g
|
||||
s%@FFLAGS@%%g
|
||||
s%@DEFS@%
|
||||
-DUSE_THREAD -DSIZEOF_INT=4 -DSIZEOF_SHORT=2 -DSIZEOF_LONG=4 -DSIZEOF_VOIDP=4 -DSIZEOF_FLOAT=4 -DSIZEOF_DOUBLE=8 -DHAVE_PROTOTYPES=1 -DHAVE_STDARG_PROTOTYPES=1 -DHAVE_STDLIB_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_ST_RDEV=1 -DGETGROUPS_T=int -DRETSIGTYPE=void -DHAVE_ALLOCA=1 -DHAVE_FMOD=1 -DHAVE_WAITPID=1 -DHAVE_GETCWD=1 -DHAVE_CHSIZE=1 -DHAVE_GETGROUPS=1 -DHAVE_GETLOGIN=1 -DRSHIFT=\(x,y\)\ \(\(x\)\>\>y\) -DFILE_COUNT=_cnt -DDLEXT=\".dll\" -DRUBY_LIB=\"/usr/local/lib/ruby/1.4\" -DRUBY_ARCHLIB=\"/usr/local/lib/ruby/1.4/i386-mswin32\" -DRUBY_PLATFORM=\"i386-mswin32\" %g
|
||||
-DUSE_THREAD -DSIZEOF_INT=4 -DSIZEOF_SHORT=2 -DSIZEOF_LONG=4 -DSIZEOF_VOIDP=4 -DSIZEOF_FLOAT=4 -DSIZEOF_DOUBLE=8 -DHAVE_PROTOTYPES=1 -DHAVE_STDARG_PROTOTYPES=1 -DHAVE_STDLIB_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_ST_RDEV=1 -DGETGROUPS_T=int -DRETSIGTYPE=void -DHAVE_ALLOCA=1 -DHAVE_FMOD=1 -DHAVE_WAITPID=1 -DHAVE_GETCWD=1 -DHAVE_CHSIZE=1 -DHAVE_GETGROUPS=1 -DHAVE_GETLOGIN=1 -DRSHIFT=\(x,y\)\ \(\(x\)\>\>y\) -DFILE_COUNT=_cnt -DDLEXT=\".dll\" -DRUBY_PLATFORM=\"i386-mswin32\" %g
|
||||
s%@LDFLAGS@%%g
|
||||
s%@LIBS@%advapi32.lib wsock32.lib%g
|
||||
s%@exec_prefix@%${prefix}%g
|
||||
|
|
|
|||
|
|
@ -1218,12 +1218,6 @@ NtMakeCmdVector (char *cmdline, char ***vec, int InputCmd)
|
|||
// UNIX compatible directory access functions for NT
|
||||
//
|
||||
|
||||
//
|
||||
// File names are converted to lowercase if the
|
||||
// CONVERT_TO_LOWER_CASE variable is defined.
|
||||
//
|
||||
|
||||
#define CONVERT_TO_LOWER_CASE
|
||||
#define PATHLEN 1024
|
||||
|
||||
//
|
||||
|
|
@ -1246,8 +1240,6 @@ opendir(char *filename)
|
|||
char root[PATHLEN];
|
||||
char volname[PATHLEN];
|
||||
DWORD serial, maxname, flags;
|
||||
BOOL downcase;
|
||||
char *dummy;
|
||||
|
||||
//
|
||||
// check to see if we\'ve got a directory
|
||||
|
|
@ -1258,21 +1250,6 @@ opendir(char *filename)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
//
|
||||
// check out the file system characteristics
|
||||
//
|
||||
if (GetFullPathName(filename, PATHLEN, root, &dummy)) {
|
||||
if (dummy = strchr(root, '\\'))
|
||||
*++dummy = '\0';
|
||||
if (GetVolumeInformation(root, volname, PATHLEN,
|
||||
&serial, &maxname, &flags, 0, 0)) {
|
||||
downcase = !(flags & FS_CASE_SENSITIVE);
|
||||
}
|
||||
}
|
||||
else {
|
||||
downcase = TRUE;
|
||||
}
|
||||
|
||||
//
|
||||
// Get us a DIR structure
|
||||
//
|
||||
|
|
@ -1309,8 +1286,6 @@ opendir(char *filename)
|
|||
idx = strlen(FindData.cFileName)+1;
|
||||
p->start = ALLOC_N(char, idx);
|
||||
strcpy (p->start, FindData.cFileName);
|
||||
if (downcase)
|
||||
strlwr(p->start);
|
||||
p->nfiles++;
|
||||
|
||||
//
|
||||
|
|
@ -1334,8 +1309,6 @@ opendir(char *filename)
|
|||
rb_fatal ("opendir: malloc failed!\n");
|
||||
}
|
||||
strcpy(&p->start[idx], FindData.cFileName);
|
||||
if (downcase)
|
||||
strlwr(&p->start[idx]);
|
||||
p->nfiles++;
|
||||
idx += len+1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue