[#6660] Ruby on Neko ? — Nicolas Cannasse <ncannasse@...>

Hi folks,

14 messages 2005/11/19

[#6672] testing for hardlink with "test(?-, ...)" flawed on Windows — noreply@...

Bugs item #2858, was opened at 2005-11-20 16:35

13 messages 2005/11/20

[#6684] semenatics of if/unless/while statement modifiers — Stefan Kaes <skaes@...>

Hi all,

81 messages 2005/11/21
[#6685] Re: semenatics of if/unless/while statement modifiers — Mauricio Fern疣dez <mfp@...> 2005/11/22

On Tue, Nov 22, 2005 at 08:22:59AM +0900, Stefan Kaes wrote:

[#6686] Re: semenatics of if/unless/while statement modifiers — Stefan Kaes <skaes@...> 2005/11/22

Mauricio Fern疣dez wrote:

[#6687] Re: semenatics of if/unless/while statement modifiers — Eric Hodel <drbrain@...7.net> 2005/11/22

On Nov 21, 2005, at 4:37 PM, Stefan Kaes wrote:

[#6689] Re: semenatics of if/unless/while statement modifiers — Stefan Kaes <skaes@...> 2005/11/22

Eric Hodel wrote:

[#6693] Re: semenatics of if/unless/while statement modifiers — Yukihiro Matsumoto <matz@...> 2005/11/22

Hi,

[#6695] Re: semenatics of if/unless/while statement modifiers — Stefan Kaes <skaes@...> 2005/11/22

Yukihiro Matsumoto wrote:

[#6718] Re: semenatics of if/unless/while statement modifiers — mathew <meta@...> 2005/11/22

[#6722] Re: semenatics of if/unless/while statement modifiers — Stefan Kaes <skaes@...> 2005/11/22

mathew wrote:

[#6707] Re: semenatics of if/unless/while statement modifiers — "David A. Black" <dblack@...> 2005/11/22

Hi --

[#6708] Re: semenatics of if/unless/while statement modifiers — Stefan Kaes <skaes@...> 2005/11/22

David A. Black wrote:

[#6714] Re: semenatics of if/unless/while statement modifiers — "David A. Black" <dblack@...> 2005/11/22

Hi --

[#6717] Re: semenatics of if/unless/while statement modifiers — Stefan Kaes <skaes@...> 2005/11/22

David A. Black wrote:

[#6798] ruby 1.8.4 preview2 — Yukihiro Matsumoto <matz@...>

Hi,

37 messages 2005/11/30

Re: [ ruby-Bugs-2715 ] [PATCH] 1.8.3 ruby.c doesn't compile on OS X due to missing char **environ

From: nobuyoshi nakada <nobuyoshi.nakada@...>
Date: 2005-11-02 06:20:24 UTC
List: ruby-core #6547
Hi,

At Wed, 2 Nov 2005 14:40:45 +0900,
Blair Zajac wrote in [ruby-core:06546]:
> > I'm not sure if it's OK to replace environ by _NSGetEnviron() since
> > this code assumes UNIX style environment variable memory map.  Could
> > anyone confirm this is OK or not for Mac OS X?
> > 
> > 							matz.
> Regarding _NSGetEnviron and the memory map, I don't know, but you're already
> using this in several places in ruby:

"UNIX style environment variable memory map" means that elements of
environ point the continuous area followes just after the area pointed
by elements of argv, and it must be visible from other processes.  If
not, using _NSGetEnviron() here has no sense completely.

BTW:

> eval.c:
> 
> #if defined(__APPLE__)
> #define environ (*_NSGetEnviron())
> #elif !defined(_WIN32) && !defined(__MACOS__) || defined(_WIN32_WCE)
> extern char **environ;
> #endif
> char **rb_origenviron;
> 
> 
> hash.c:

I guess hash.c also should use rb_origenviron.


Index: hash.c
===================================================================
RCS file: /cvs/ruby/src/ruby/hash.c,v
retrieving revision 1.128.2.14
diff -U2 -p -r1.128.2.14 hash.c
--- hash.c	19 Jul 2005 08:25:37 -0000	1.128.2.14
+++ hash.c	2 Nov 2005 06:15:05 -0000
@@ -1608,5 +1608,5 @@ rb_hash_merge(hash1, hash2)
 static int path_tainted = -1;
 
-static char **origenviron;
+extern char **rb_origenviron;
 #ifdef _WIN32
 #define GET_ENVIRON(e) (e = rb_w32_get_environ())
@@ -2476,5 +2476,4 @@ Init_Hash()
 
 #ifndef __MACOS__ /* environment variables nothing on MacOS. */
-    origenviron = environ;
     envtbl = rb_obj_alloc(rb_cObject);
     rb_extend_object(envtbl, rb_mEnumerable);
Index: ruby.c
===================================================================
RCS file: /cvs/ruby/src/ruby/ruby.c,v
retrieving revision 1.83.2.11
diff -U2 -p -r1.83.2.11 ruby.c
--- ruby.c	28 Jun 2005 13:09:58 -0000	1.83.2.11
+++ ruby.c	2 Nov 2005 05:59:51 -0000
@@ -972,5 +972,5 @@ VALUE rb_argv;
 VALUE rb_argv0;
 
-#if !defined(PSTAT_SETCMD) && !defined(HAVE_SETPROCTITLE) && !defined(DOSISH)
+#if !defined(PSTAT_SETCMD) && !defined(HAVE_SETPROCTITLE) && !defined(DOSISH) && !defined(__APPLE__)
 static struct {
     char *begin, *end;


-- 
Nobu Nakada

In This Thread

Prev Next