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.693 2009/09/09 13:01:45 grubba Exp $ + || $Id: builtin_functions.c,v 1.694 2009/11/11 20:05:07 mast Exp $   */      #include "global.h"   #include "interpret.h"   #include "svalue.h"   #include "pike_macros.h"   #include "object.h"   #include "program.h"   #include "array.h"   #include "pike_error.h"
pike.git/src/builtin_functions.c:7546:    *! if it's unaffected by adjustments of the calendaric clock in the    *! system. @[System.REAL_TIME_IS_MONOTONIC] tells what it is. Pike    *! tries to use monotonic time for this function if it's available.    *!    *! @note    *! The actual accuracy on many systems is significantly less than    *! microseconds or nanoseconds. See @[System.REAL_TIME_RESOLUTION].    *!    *! @seealso    *! @[System.REAL_TIME_IS_MONOTONIC], @[System.REAL_TIME_RESOLUTION], -  *! @[time()], @[System.gettimeofday()], @[gethrvtime()] +  *! @[time()], @[System.gettimeofday()], @[gethrvtime()], +  *! @[Pike.implicit_gc_real_time]    */   PMOD_EXPORT void f_gethrtime(INT32 args)   {    int nsec = 0;    cpu_time_t time = get_real_time();       if (time == (cpu_time_t) -1) {    pop_n_elems (args);    push_int (-1);    return;
pike.git/src/builtin_functions.c:9718: Inside #if defined(PIKE_DEBUG)
   tFunc(tComplex,tVoid), OPT_SIDE_EFFECT);    ADD_EFUN("_dump_backlog", f__dump_backlog,    tFunc(tNone,tVoid), OPT_SIDE_EFFECT);    ADD_EFUN("_gdb_breakpoint", pike_gdb_breakpoint,    tFuncV(tNone,tMix,tVoid), OPT_SIDE_EFFECT);   #endif       ADD_EFUN("_gc_status",f__gc_status,    tFunc(tNone,tMap(tString,tOr(tInt,tFloat))),    OPT_EXTERNAL_DEPEND); +  ADD_FUNCTION ("implicit_gc_real_time", f_implicit_gc_real_time, +  tFunc(tNone,tInt), OPT_EXTERNAL_DEPEND);    ADD_FUNCTION ("count_memory", f_count_memory,    tFuncV(tOr(tInt,tMap(tString,tInt)),    tOr8(tArray,tMultiset,tMapping,tObj,tPrg(tObj),    tString,tType(tMix),tInt),    tInt), 0);       ADD_INT_CONSTANT ("NATIVE_INT_MAX", MAX_INT_TYPE, 0);    ADD_INT_CONSTANT ("NATIVE_INT_MIN", MIN_INT_TYPE, 0);       /* Maybe make PIKEFLOAT_MANT_DIG, PIKEFLOAT_MIN_EXP and