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.496 2003/06/24 20:27:19 nilsson Exp $ + || $Id: builtin_functions.c,v 1.497 2003/06/30 17:06:08 mast Exp $   */      #include "global.h" - RCSID("$Id: builtin_functions.c,v 1.496 2003/06/24 20:27:19 nilsson Exp $"); + RCSID("$Id: builtin_functions.c,v 1.497 2003/06/30 17:06:08 mast 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:2282:    if(!t || match_types(t, object_type_string))    {    /* Skip any name-nodes. */    while(t && t->type == PIKE_T_NAME) {    t = t->cdr;    }       /* FIXME: Ought to handle or-nodes here. */    if(t && (t->type == T_OBJECT))    { -  struct program *p = id_to_program(((char *)t->cdr)-(char *)0); +  struct program *p = id_to_program(CDR_TO_INT(t));    if(p)    {    int fun=FIND_LFUN(p, lfun);       /* FIXME: function type string should really be compiled from    * the arguments so that or:ed types are handled correctly    */    if(fun!=-1 &&    (t2 = check_call(function_type_string, ID_FROM_INT(p, fun)->type,    0)))
pike.git/src/builtin_functions.c:5852: Inside #if defined(DEBUG_MALLOC)
   push_int(size);       count_memory_in_memhdrs(&num, &size);    push_text("num_memhdrs");    push_int(num);    push_text("memhdr_bytes");    push_int(size);    }   #endif    -  call_callback(&memory_usage_callback, (void *)0); +  call_callback(&memory_usage_callback, NULL);       f_aggregate_mapping(DO_NOT_WARN(Pike_sp - ss));   }      /*! @decl mixed _next(mixed x)    *!    *! Find the next object/array/mapping/multiset/program or string.    *!    *! All objects, arrays, mappings, multisets, programs and strings are    *! stored in linked lists inside Pike. This function returns the next