pike.git / src / main.c

version» Context lines:

pike.git/src/main.c:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: main.c,v 1.176 2003/06/05 21:50:16 mast Exp $ + || $Id: main.c,v 1.177 2003/06/30 17:06:09 mast Exp $   */      #include "global.h" - RCSID("$Id: main.c,v 1.176 2003/06/05 21:50:16 mast Exp $"); + RCSID("$Id: main.c,v 1.177 2003/06/30 17:06:09 mast 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:543:    /* 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 += (~(((char *)Pike_interpreter.stack_top)- -  (char *)0)) & 0xffff; +  Pike_interpreter.stack_top += ~(PTR_TO_INT(Pike_interpreter.stack_top)) & 0xffff;   #else /* STACK_DIRECTION >= 0 */    /* Equvivalent with &= ~0xffff */ -  Pike_interpreter.stack_top -= (((char *)Pike_interpreter.stack_top)- -  (char *)0) & 0xffff; +  Pike_interpreter.stack_top -= PTR_TO_INT(Pike_interpreter.stack_top) & 0xffff;   #endif /* STACK_DIRECTION < 0 */      #ifdef PROFILING    Pike_interpreter.stack_bottom=Pike_interpreter.stack_top;   #endif      #if defined(HAVE_GETRLIMIT) && defined(RLIMIT_STACK)    {    struct rlimit lim;    if(!getrlimit(RLIMIT_STACK, &lim))
pike.git/src/main.c:767:       pike_do_exit(num);    return num; /* avoid warning */   }      #undef ATTRIBUTE   #define ATTRIBUTE(X)      DECLSPEC(noreturn) void pike_do_exit(int num) ATTRIBUTE((noreturn))   { -  call_callback(&exit_callbacks, (void *)0); +  call_callback(&exit_callbacks, NULL);    free_callback_list(&exit_callbacks);       exit_modules();      #ifdef DEBUG_MALLOC    cleanup_memhdrs();    cleanup_debug_malloc();   #endif