pike.git / src / main.c

version» Context lines:

pike.git/src/main.c:1:   /*\   ||| This file a part of Pike, and is copyright by Fredrik Hubinette   ||| Pike is distributed as GPL (General Public License)   ||| See the files COPYING and DISCLAIMER for more information.   \*/   /**/   #include "global.h" - RCSID("$Id: main.c,v 1.95 2000/08/06 06:16:30 hubbe Exp $"); + RCSID("$Id: main.c,v 1.96 2000/08/15 15:56:27 grubba Exp $");   #include "fdlib.h"   #include "backend.h"   #include "module.h"   #include "object.h"   #include "language.h"   #include "lex.h"   #include "pike_types.h"   #include "builtin_functions.h"   #include "array.h"   #include "stralloc.h"
pike.git/src/main.c:402:    /* Adjust for anything already pushed on the stack.    * We align on a 64 KB boundary.    * Thus we at worst, lose 64 KB stack.    *    * We have to do it this way since some compilers don't like    * & and | on pointers, and casting to an integer type is    * too unsafe (consider 64-bit systems).    */   #if STACK_DIRECTION < 0    /* Equvivalent with |= 0xffff */ -  Pike_interpreter.stack_top += (~((unsigned long)Pike_interpreter.stack_top)) & 0xffff; +  Pike_interpreter.stack_top += (~((size_t)Pike_interpreter.stack_top)) & 0xffff;   #else /* STACK_DIRECTION >= 0 */    /* Equvivalent with &= ~0xffff */ -  Pike_interpreter.stack_top -= ( ((unsigned long)Pike_interpreter.stack_top)) & 0xffff; +  Pike_interpreter.stack_top -= ( ((size_t)Pike_interpreter.stack_top)) & 0xffff;   #endif /* STACK_DIRECTION < 0 */      #if defined(HAVE_GETRLIMIT) && defined(RLIMIT_STACK)    {    struct rlimit lim;    if(!getrlimit(RLIMIT_STACK, &lim))    {   #ifdef RLIM_INFINITY    if(lim.rlim_cur == RLIM_INFINITY)    lim.rlim_cur=1024*1024*32;