From cdf40ecbd88c9ef9f758d3bd6376668f2e4722b3 Mon Sep 17 00:00:00 2001 From: michal Date: Wed, 23 Jun 2004 12:59:01 +0000 Subject: Fix indentation in time.c Move stack-len info from main.c to gc.c git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6504 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- gc.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'gc.c') diff --git a/gc.c b/gc.c index a364b33268..871f60b85e 100644 --- a/gc.c +++ b/gc.c @@ -407,19 +407,15 @@ VALUE *rb_gc_stack_start = 0; #if defined(DJGPP) || defined(_WIN32_WCE) static unsigned int STACK_LEVEL_MAX = 65535; -#else -#ifdef __human68k__ -extern unsigned int _stacksize; +#elif defined(__human68k__) +unsigned int _stacksize = 262144; # define STACK_LEVEL_MAX (_stacksize - 4096) # undef HAVE_GETRLIMIT -#else -#ifdef HAVE_GETRLIMIT +#elif defined(HAVE_GETRLIMIT) static unsigned int STACK_LEVEL_MAX = 655300; #else # define STACK_LEVEL_MAX 655300 #endif -#endif -#endif #ifdef C_ALLOCA # define SET_STACK_END VALUE stack_end; alloca(0); -- cgit v1.2.3