Branch: Tag:

2008-05-01

2008-05-01 21:44:34 by Martin Stjernholm <mast@lysator.liu.se>

Use a better type for counting bytes.

Rev: src/array.c:1.204
Rev: src/array.h:1.73
Rev: src/block_alloc.h:1.85
Rev: src/block_alloc_h.h:1.25
Rev: src/builtin_functions.c:1.658
Rev: src/multiset.h:1.42
Rev: src/object.c:1.287
Rev: src/program.h:1.241
Rev: src/stralloc.c:1.214
Rev: src/stralloc.h:1.101

2:   || 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: block_alloc.h,v 1.84 2008/01/24 18:34:19 grubba Exp $ + || $Id: block_alloc.h,v 1.85 2008/05/01 21:44:32 mast Exp $   */      #undef PRE_INIT_BLOCK
440:    DO_IF_RUN_UNLOCKED(mt_unlock(&PIKE_CONCAT(DATA,_mutex))); \   } \    \ - void PIKE_CONCAT3(count_memory_in_,DATA,s)(INT32 *num_, INT32 *size_) \ + void PIKE_CONCAT3(count_memory_in_,DATA,s)(size_t *num_, size_t *size_) \   { \ -  INT32 num=0, size=0; \ +  size_t num=0, size=0; \    struct PIKE_CONCAT(DATA,_block) *tmp; \    struct PIKE_CONCAT(DATA,_context) *ctx = PIKE_CONCAT(DATA,_ctxs); \    DO_IF_RUN_UNLOCKED(mt_lock(&PIKE_CONCAT(DATA,_mutex))); \