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.563 2004/07/08 13:22:42 marcus Exp $ + || $Id: builtin_functions.c,v 1.564 2004/07/14 13:57:29 grubba Exp $   */      #include "global.h" - RCSID("$Id: builtin_functions.c,v 1.563 2004/07/08 13:22:42 marcus Exp $"); + RCSID("$Id: builtin_functions.c,v 1.564 2004/07/14 13:57:29 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:6304:    master_program=master_object->prog;    add_ref(master_program);       pop_n_elems(args);   }      /*! @decl object master();    *!    *! Return the current master object.    *! +  *! @note +  *! May return @[UNDEFINED] if no master has been loaded yet. +  *!    *! @seealso    *! @[replace_master()]    */   PMOD_EXPORT void f_master(INT32 args)   { -  +  struct object *o;    pop_n_elems(args); -  ref_push_object(master()); +  o = get_master(); +  if (o) ref_push_object(o); +  else push_undefined();   }      #ifdef HAVE_SYS_TIME_H   #include <sys/time.h>   #endif      /*! @decl int gethrvtime (void|int nsec)    *!    *! Return the CPU time that has been consumed by this process or    *! thread. -1 is returned if the system couldn't determine it. The