From: Michal Rokos Date: 2002-04-23T18:54:59+09:00 Subject: [Patch? (well question is more appropriate for this)] gc.c Hello, question is if this patch is correct? Or by different formulation: How works the original version? (Expecially: VALUE stack_end; alloca(0) and the following LENGTH macros.) ^^^ Thanks for lesson. Michal Index: gc.c =================================================================== RCS file: /src/ruby/gc.c,v retrieving revision 1.89 diff -u -r1.89 gc.c --- gc.c 2002/03/07 11:19:37 1.89 +++ gc.c 2002/04/23 09:24:02 @@ -370,13 +370,13 @@ #endif #ifdef C_ALLOCA -# define SET_STACK_END VALUE stack_end; alloca(0); -# define STACK_END (&stack_end) +# define SET_STACK_END VALUE *stack_end = alloca(0) +# define STACK_END (stack_end) #else # if defined(__GNUC__) && defined(USE_BUILTIN_FRAME_ADDRESS) -# define SET_STACK_END VALUE *stack_end = __builtin_frame_address(0); +# define SET_STACK_END VALUE *stack_end = __builtin_frame_address(0) # else -# define SET_STACK_END VALUE *stack_end = alloca(1); +# define SET_STACK_END VALUE *stack_end = alloca(1) # endif # define STACK_END (stack_end) #endif -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Michal Rokos Czech Technical University, Prague E-mail:m.rokos@sh.cvut.cz ICQ:36118339 Jabber:majkl@jabber.sh.cvut.cz -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-