ruby-changes:44327
From: nobu <ko1@a...>
Date: Wed, 12 Oct 2016 17:24:43 +0900 (JST)
Subject: [ruby-changes:44327] nobu:r56400 (trunk): ruby.c: fix macros
nobu 2016-10-12 17:24:36 +0900 (Wed, 12 Oct 2016) New Revision: 56400 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=56400 Log: ruby.c: fix macros * ruby.c (open_load_file): FILE_ALT_SEPARATOR and EXEEXT are config.status variables, not available in config.h. Modified files: trunk/ruby.c Index: ruby.c =================================================================== --- ruby.c (revision 56399) +++ ruby.c (revision 56400) @@ -1890,9 +1890,9 @@ open_load_file(VALUE fname_v, int *xflag https://github.com/ruby/ruby/blob/trunk/ruby.c#L1890 #endif MODE_TO_LOAD; #if defined DOSISH || defined __CYGWIN__ -# define isdirsep(x) ((x) == '/' || (x) == FILE_ALT_SEPARATOR) +# define isdirsep(x) ((x) == '/' || (x) == '\\') { - static const char exeext[] = EXEEXT; + static const char exeext[] = ".exe"; enum {extlen = sizeof(exeext)-1}; if (flen > extlen && !isdirsep(fname[flen-extlen-1]) && STRNCASECMP(fname+flen-extlen, exeext, extlen) == 0) { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/