pike.git / src / array.c

version» Context lines:

pike.git/src/array.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: array.c,v 1.203 2008/05/01 20:15:44 mast Exp $ + || $Id: array.c,v 1.204 2008/05/01 21:44:32 mast Exp $   */      #include "global.h"   #include "svalue.h"   #include "array.h"   #include "object.h"   #include "las.h"   #include "stralloc.h"   #include "interpret.h"   #include "opcodes.h"
pike.git/src/array.c:2809: Inside #if defined(PIKE_DEBUG)
   fprintf(stderr,"\n");    simple_describe_array(a);   }   #endif         /** Returns (by argument) the number of arrays and the total amount of    * memory allocated for arrays (array structs + svalues). Called from    * _memory_usage, which is exposed through Debug.memory_usage().    */ - void count_memory_in_arrays(INT32 *num_, INT32 *size_) + void count_memory_in_arrays(size_t *num_, size_t *size_)   { -  INT32 num=0, size=0; +  size_t num=0, size=0;    struct array *m;    for(m=first_array;m;m=m->next)    {    num++;    size+=sizeof(struct array)+    sizeof(struct svalue) * (m->malloced_size - 1);    }    *num_=num;    *size_=size;   }