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.676 2008/06/26 11:44:25 grubba Exp $ + || $Id: builtin_functions.c,v 1.677 2008/06/28 22:05:03 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:2878:    destruct_objects_to_destruct();   }      /*! @decl array indices(string|array|mapping|multiset|object x)    *!    *! Return an array of all valid indices for the value @[x].    *!    *! For strings and arrays this is simply an array of ascending    *! numbers.    *! -  *! For mappings and multisets, the array may contain any value. +  *! For mappings and multisets, the array might contain any value.    *!    *! For objects which define @[lfun::_indices()] that return value -  *! will be used. +  *! is used.    *! -  *! For other objects an array with all non-static symbols will be +  *! For other objects an array with all non-protected symbols is    *! returned.    *!    *! @seealso    *! @[values()]    */   PMOD_EXPORT void f_indices(INT32 args)   {    ptrdiff_t size;    struct array *a = NULL;   
pike.git/src/builtin_functions.c:3182:    *! characters in the string is returned.    *!    *! For a multiset an array filled with ones (@expr{1@}) is    *! returned.    *!    *! For arrays a single-level copy of @[x] is returned.    *!    *! For mappings the array may contain any value.    *!    *! For objects which define @[lfun::_values()] that return value -  *! will be used. +  *! is used.    *! -  *! For other objects an array with the values of all non-static -  *! symbols will be returned. +  *! For other objects an array with the values of all non-protected +  *! symbols is returned.    *!    *! @seealso    *! @[indices()]    */   PMOD_EXPORT void f_values(INT32 args)   {    ptrdiff_t size;    struct array *a = NULL;    if(args < 1)    SIMPLE_TOO_FEW_ARGS_ERROR("values", 1);
pike.git/src/builtin_functions.c:7561: Inside #if defined(PROFILING)
   stack_swap();    pop_stack();   }   #endif /* PROFILING */      /*! @decl int(0..1) object_variablep(object o, string var)    *!    *! Find out if an object identifier is a variable.    *!    *! @returns -  *! This function returns @expr{1@} if @[var] exists as a non-static variable -  *! in @[o], and returns @expr{0@} (zero) otherwise. +  *! This function returns @expr{1@} if @[var] exists as a +  *! non-protected variable in @[o], and returns @expr{0@} (zero) +  *! otherwise.    *!    *! @seealso    *! @[indices()], @[values()]    */   PMOD_EXPORT void f_object_variablep(INT32 args)   {    struct object *o;    struct pike_string *s;    int ret;