ruby-changes:39703
From: nobu <ko1@a...>
Date: Mon, 7 Sep 2015 22:05:49 +0900 (JST)
Subject: [ruby-changes:39703] nobu:r51784 (trunk): win32.c: use plain strdup
nobu 2015-09-07 22:05:31 +0900 (Mon, 07 Sep 2015) New Revision: 51784 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=51784 Log: win32.c: use plain strdup * win32/win32.c (insert): should use plain strdup() instead of ruby_strdup() at startup time, and plain free()ed in cmdglob(). Modified files: trunk/ChangeLog trunk/win32/win32.c Index: ChangeLog =================================================================== --- ChangeLog (revision 51783) +++ ChangeLog (revision 51784) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Mon Sep 7 22:05:28 2015 Nobuyoshi Nakada <nobu@r...> + + * win32/win32.c (insert): should use plain strdup() instead of + ruby_strdup() at startup time, and plain free()ed in cmdglob(). + Mon Sep 7 16:50:07 2015 Nobuyoshi Nakada <nobu@r...> * vm_core.h (rb_vm_struct): define objspace always regardless Index: win32/win32.c =================================================================== --- win32/win32.c (revision 51783) +++ win32/win32.c (revision 51784) @@ -90,6 +90,7 @@ static char *w32_getenv(const char *name https://github.com/ruby/ruby/blob/trunk/win32/win32.c#L90 #undef close #undef setsockopt #undef dup2 +#undef strdup #if RUBY_MSVCRT_VERSION >= 140 # define _filbuf _fgetc_nolock -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/