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.291 2003/02/16 03:59:57 mast Exp $ + || $Id: interpret.c,v 1.292 2003/02/16 13:54:05 mast Exp $   */      #include "global.h" - RCSID("$Id: interpret.c,v 1.291 2003/02/16 03:59:57 mast Exp $"); + RCSID("$Id: interpret.c,v 1.292 2003/02/16 13:54:05 mast 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:685: Inside #if defined(HAVE_COMPUTED_GOTO)
  {   #ifdef HAVE_COMPUTED_GOTO    PIKE_OPCODE_T instruction;   #else /* !HAVE_COMPUTED_GOTO */    INT32 instruction;   #endif /* HAVE_COMPUTED_GOTO */    INT32 arg,arg2;    struct program *program;    PIKE_OPCODE_T *pc;   #ifdef _REENTRANT -  struct object *thread_id; +  struct thread_state *thread_state;   #endif    ptrdiff_t stack;    ptrdiff_t mark_stack;   };      struct backlog backlog[BACKLOG];   int backlogp=BACKLOG-1;      void dump_backlog(void)   {   #ifdef _REENTRANT -  struct object *thread=0; +  struct thread_state *thread=0;   #endif       int e;    if(!d_flag || backlogp<0 || backlogp>=BACKLOG)    return;       e=backlogp;    do    {    e++;    if(e>=BACKLOG) e=0;       if(backlog[e].program)    {    struct pike_string *file;    INT32 line;      #ifdef _REENTRANT -  if(thread != backlog[e].thread_id) +  if(thread != backlog[e].thread_state)    { -  fprintf(stderr,"[Thread swap, Pike_interpreter.thread_id=%p]\n",backlog[e].thread_id); -  thread = backlog[e].thread_id; +  fprintf(stderr,"[Thread swap, Pike_interpreter.thread_state=%p]\n",backlog[e].thread_state); +  thread = backlog[e].thread_state;    }   #endif       file = get_line(backlog[e].pc-1,backlog[e].program, &line);   #ifdef HAVE_COMPUTED_GOTO    fprintf(stderr,"%s:%ld: %s",    file->str,    (long)line,    get_opcode_name(backlog[e].instruction));   #else /* !HAVE_COMPUTED_GOTO */