pike.git / src / builtin_functions.c

version» Context lines:

pike.git/src/builtin_functions.c:835:    *!    *! This function sets the initial value for the random generator.    *!    *! @seealso    *! @[random()]    */   PMOD_EXPORT void f_random_seed(INT32 args)   {    INT_TYPE i;    check_all_args("random_seed",args,BIT_INT | BIT_OBJECT, 0); +     if(TYPEOF(Pike_sp[-args]) == T_INT)    {    i=Pike_sp[-args].u.integer;    }else{    i=hash_svalue(Pike_sp-args);    }    my_srand(i);    pop_n_elems(args);   }   
pike.git/src/builtin_functions.c:5249:    *! old ones.    *!    *! This function is only intended to be used for debug purposes.    *!    *! @returns    *! The total number of objects    *!    *! @seealso    *! @[next_object()]    */ - static void f_map_all_objects( INT32 args ) + static void f_map_all_objects( INT32 UNUSED(args) )   {    struct object *o = first_object;    INT32 total = 0;    ASSERT_SECURITY_ROOT("_map_all_objects");    while( o )    {    struct object *next = o->next;    if( o->prog )    {    ref_push_object( o );
pike.git/src/builtin_functions.c:7782:    *!    *!    *! If the object has a @[lfun::_size_object()] it will be called    *! without arguments, and the return value will be added to the final    *! size. It is primarily intended to be used by C-objects that    *! allocate memory that is not normally visible to pike.    *!    *! @seealso    *! @[lfun::_size_object()], @[sizeof()]    */ - static void f__size_object( INT32 args ) + static void f__size_object( INT32 UNUSED(args) )   {    size_t sum;    unsigned int i;    ptrdiff_t fun;    struct object *o;    struct program *p;    struct mapping *map = NULL;    if( Pike_sp[-1].type != PIKE_T_OBJECT )    Pike_error("Expected an object as argument\n");    o = Pike_sp[-1].u.object;