Branch: Tag:

2000-07-07

2000-07-07 01:48:40 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

jumbopatch!

Rev: src/error.c:1.55
Rev: src/las.c:1.181
Rev: src/main.c:1.93
Rev: src/program.c:1.247

5:   \*/   /**/   #include "global.h" - RCSID("$Id: main.c,v 1.92 2000/07/06 00:30:32 hubbe Exp $"); + RCSID("$Id: main.c,v 1.93 2000/07/07 01:47:05 hubbe Exp $");   #include "fdlib.h"   #include "backend.h"   #include "module.h"
397:   #define RLIMIT_NOFILE RLIMIT_OFILE   #endif    -  stack_top = (char *)&argv; +  Pike_interpreter.stack_top = (char *)&argv;       /* Adjust for anything already pushed on the stack.    * We align on a 64 KB boundary.
409: Inside #if STACK_DIRECTION < 0
   */   #if STACK_DIRECTION < 0    /* Equvivalent with |= 0xffff */ -  stack_top += (~((unsigned long)stack_top)) & 0xffff; +  Pike_interpreter.stack_top += (~((unsigned long)Pike_interpreter.stack_top)) & 0xffff;   #else /* STACK_DIRECTION >= 0 */    /* Equvivalent with &= ~0xffff */ -  stack_top -= ( ((unsigned long)stack_top)) & 0xffff; +  Pike_interpreter.stack_top -= ( ((unsigned long)Pike_interpreter.stack_top)) & 0xffff;   #endif /* STACK_DIRECTION < 0 */      #if defined(HAVE_GETRLIMIT) && defined(RLIMIT_STACK)
430: Inside #if defined(HAVE_GETRLIMIT) && defined(RLIMIT_STACK)
   lim.rlim_cur=Pike_INITIAL_STACK_SIZE;   #endif    -  stack_top += STACK_DIRECTION * lim.rlim_cur; +  Pike_interpreter.stack_top += STACK_DIRECTION * lim.rlim_cur;      #ifdef HAVE_PTHREAD_INITIAL_THREAD_BOS   #if defined(HAVE_DLOPEN) && defined(HAVE_DLFCN_H)
460: Inside #if defined(HAVE_GETRLIMIT) && defined(RLIMIT_STACK) and #if defined(HAVE_PTHREAD_INITIAL_THREAD_BOS)
   */       if(__pthread_initial_thread_bos && -  (__pthread_initial_thread_bos - stack_top) *STACK_DIRECTION < 0) -  stack_top=__pthread_initial_thread_bos; +  (__pthread_initial_thread_bos - Pike_interpreter.stack_top) *STACK_DIRECTION < 0) +  Pike_interpreter.stack_top=__pthread_initial_thread_bos;    }   #endif   #endif -  stack_top -= STACK_DIRECTION * 8192 * sizeof(char *); +  Pike_interpreter.stack_top -= STACK_DIRECTION * 8192 * sizeof(char *);      #ifdef STACK_DEBUG    fprintf(stderr, "1: C-stack: 0x%08p - 0x%08p, direction:%d\n", -  &argv, stack_top, STACK_DIRECTION); +  &argv, Pike_interpreter.stack_top, STACK_DIRECTION);   #endif /* STACK_DEBUG */    }    }   #else /* !HAVE_GETRLIMIT || !RLIMIT_STACK */    /* 128 MB seems a bit extreme, most OS's seem to have their limit at ~8MB */ -  stack_top += STACK_DIRECTION * (1024*1024 * 8 - 8192 * sizeof(char *)); +  Pike_interpreter.stack_top += STACK_DIRECTION * (1024*1024 * 8 - 8192 * sizeof(char *));   #ifdef STACK_DEBUG    fprintf(stderr, "2: C-stack: 0x%08p - 0x%08p, direction:%d\n", -  &argv, stack_top, STACK_DIRECTION); +  &argv, Pike_interpreter.stack_top, STACK_DIRECTION);   #endif /* STACK_DEBUG */   #endif /* HAVE_GETRLIMIT && RLIMIT_STACK */