ruby-changes:44018
From: nobu <ko1@a...>
Date: Wed, 7 Sep 2016 17:50:44 +0900 (JST)
Subject: [ruby-changes:44018] nobu:r56091 (trunk): util.h: POSIX-noncompliant setenv
nobu 2016-09-07 17:50:39 +0900 (Wed, 07 Sep 2016) New Revision: 56091 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=56091 Log: util.h: POSIX-noncompliant setenv * include/ruby/util.h (setenv): remove POSIX-noncompliant definition with 2 arguments. Modified files: trunk/ChangeLog trunk/hash.c trunk/include/ruby/util.h Index: include/ruby/util.h =================================================================== --- include/ruby/util.h (revision 56090) +++ include/ruby/util.h (revision 56091) @@ -64,10 +64,6 @@ void ruby_qsort(void *, const size_t, co https://github.com/ruby/ruby/blob/trunk/include/ruby/util.h#L64 void ruby_setenv(const char *, const char *); void ruby_unsetenv(const char *); -#undef setenv -#undef unsetenv -#define setenv(name,val) ruby_setenv((name),(val)) -#define unsetenv(name,val) ruby_unsetenv(name) char *ruby_strdup(const char *); #undef strdup Index: ChangeLog =================================================================== --- ChangeLog (revision 56090) +++ ChangeLog (revision 56091) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Wed Sep 7 17:50:38 2016 Nobuyoshi Nakada <nobu@r...> + + * include/ruby/util.h (setenv): remove POSIX-noncompliant + definition with 2 arguments. + Wed Sep 7 17:35:37 2016 Martin Duerst <duerst@i...> * unicode/8.0.0/casefold.h, name2ctype.h, unicode/data/8.0.0: Index: hash.c =================================================================== --- hash.c (revision 56090) +++ hash.c (revision 56091) @@ -3350,8 +3350,6 @@ ruby_setenv(const char *name, const char https://github.com/ruby/ruby/blob/trunk/hash.c#L3350 invalid_envname(name); } #elif defined(HAVE_SETENV) && defined(HAVE_UNSETENV) -#undef setenv -#undef unsetenv if (value) { if (setenv(name, value, 1)) rb_sys_fail_str(rb_sprintf("setenv(%s)", name)); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/