pike.git / src / interpret.c

version» Context lines:

pike.git/src/interpret.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: interpret.c,v 1.107 1998/11/20 08:38:12 hubbe Exp $"); + RCSID("$Id: interpret.c,v 1.108 1998/11/20 18:38:44 hubbe Exp $");   #include "interpret.h"   #include "object.h"   #include "program.h"   #include "svalue.h"   #include "array.h"   #include "mapping.h"   #include "error.h"   #include "language.h"   #include "stralloc.h"   #include "constants.h"
pike.git/src/interpret.c:1801:   void mega_apply(enum apply_type type, INT32 args, void *arg1, void *arg2)   {    struct object *o;    int fun, tailrecurse=-1;    struct svalue *save_sp=sp-args;   #ifdef PROFILING   #ifdef HAVE_GETHRTIME    long long children_base = accounted_time;    long long start_time = gethrtime() - time_base;    unsigned INT32 self_time_base; +  if(start_time < 0) +  { +  fatal("gethrtime() shrunk\n start_time=%ld\n time_base=%ld\n", +  (long)(start_time/100000), +  (long)(time_base/100000)); +  }   #endif   #endif       switch(type)    {    case APPLY_STACK:    apply_stack:    if(!args)    PIKE_ERROR("`()", "Too few arguments.\n", sp, 0);    args--;