pike.git / src / interpret.c

version» Context lines:

pike.git/src/interpret.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: interpret.c,v 1.292 2003/02/16 13:54:05 mast Exp $ + || $Id: interpret.c,v 1.293 2003/02/16 17:50:09 grubba Exp $   */      #include "global.h" - RCSID("$Id: interpret.c,v 1.292 2003/02/16 13:54:05 mast Exp $"); + RCSID("$Id: interpret.c,v 1.293 2003/02/16 17:50:09 grubba Exp $");   #include "interpret.h"   #include "object.h"   #include "program.h"   #include "svalue.h"   #include "array.h"   #include "mapping.h"   #include "pike_error.h"   #include "language.h"   #include "stralloc.h"   #include "constants.h"
pike.git/src/interpret.c:1201: Inside #if defined(PIKE_DEBUG) && defined(_REENTRANT)
   if(d_flag)    {    THREAD_T self = th_self();       CHECK_INTERPRETER_LOCK();       if( Pike_interpreter.thread_state &&    !th_equal(Pike_interpreter.thread_state->id, self) )    Pike_fatal("Current thread is wrong.\n");    -  if(thread_for_id(th_self()) != Pike_interpreter.thread_obj) -  Pike_fatal("thread_for_id() (or Pike_interpreter.thread_obj) failed in mega_apply! " -  "%p != %p\n", thread_for_id(self), Pike_interpreter.thread_obj); +  DEBUG_CHECK_THREAD();    }   #endif       switch(type)    {    case APPLY_STACK:    if(!args)    PIKE_ERROR("`()", "Too few arguments (apply stack).\n", Pike_sp, 0);    args--;    arg1=(void *)(Pike_sp-args-1);