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.485 2003/04/27 12:08:37 nilsson Exp $ + || $Id: builtin_functions.c,v 1.486 2003/04/27 14:13:52 grubba Exp $   */      #include "global.h" - RCSID("$Id: builtin_functions.c,v 1.485 2003/04/27 12:08:37 nilsson Exp $"); + RCSID("$Id: builtin_functions.c,v 1.486 2003/04/27 14:13:52 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:2598:    {    push_int(0);    }else{    ref_push_object(o);    }   }      /*! @decl program|function object_program(mixed o)    *!    *! Return the program from which @[o] was instantiated. If the -  *! object was instantiated from an unnamed program, the -  *! generating function will be returned. E.g. -  *! @expr{object_program(class { }())@} will return the @i{function@} -  *! "class {}". +  *! object was instantiated from a class using parent references +  *! the generating function will be returned.    *!    *! If @[o] is not an object or has been destructed @expr{0@} (zero)    *! will be returned.    */   PMOD_EXPORT void f_object_program(INT32 args)   {    if(args < 1)    SIMPLE_TOO_FEW_ARGS_ERROR("object_program", 1);       if(Pike_sp[-args].type == T_OBJECT)
pike.git/src/builtin_functions.c:4111:    f_aggregate_mapping(18);   #endif   #endif   #endif   }   #endif      #ifdef HAVE_MKTIME   /*! @decl int mktime(mapping(string:int) tm)    *! @decl int mktime(int sec, int min, int hour, int mday, int mon, int year, @ -  *! int isdst, int tz) +  *! int|void isdst, int|void tz)    *!    *! This function converts information about date and time into an integer    *! which contains the number of seconds since 00:00:00 UTC, Jan 1, 1970.    *!    *! You can either call this function with a mapping containing the    *! following elements:    *! @mapping    *! @member int(0..60) "sec"    *! Seconds over the minute.    *! @member int(0..59) "min"