pike.git / src / builtin_functions.c

version» Context lines:

pike.git/src/builtin_functions.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: builtin_functions.c,v 1.475 2003/02/10 17:10:39 mast Exp $ + || $Id: builtin_functions.c,v 1.476 2003/02/15 17:33:33 grubba Exp $   */      #include "global.h" - RCSID("$Id: builtin_functions.c,v 1.475 2003/02/10 17:10:39 mast Exp $"); + RCSID("$Id: builtin_functions.c,v 1.476 2003/02/15 17:33:33 grubba Exp $");   #include "interpret.h"   #include "svalue.h"   #include "pike_macros.h"   #include "object.h"   #include "program.h"   #include "array.h"   #include "pike_error.h"   #include "constants.h"   #include "mapping.h"   #include "stralloc.h"
pike.git/src/builtin_functions.c:5990:    if (time == (cpu_time_t) -1) {    pop_n_elems (args);    push_int (-1);    return;    }       /* Don't subtract the gc time at all if we don't know whether it's    * thread local or not, since if we do it wrong we might end up    * returning a negative number. */   #if CPU_TIME_IS_THREAD_LOCAL == PIKE_YES -  time -= OBJ2THREAD(Pike_interpreter.thread_id)->auto_gc_time; +  time -= Pike_interpreter.thread_state->auto_gc_time;   #elif CPU_TIME_IS_THREAD_LOCAL == PIKE_NO    time -= auto_gc_time;   #endif       nsec = args && !UNSAFE_IS_ZERO(Pike_sp-args);       pop_n_elems(args);    if (nsec)    push_int64(time);    else