b31907d700c1fe956e4e4c20e64d91de027d7c84 markd Tue May 14 02:03:33 2024 -0700 merge blatHuge implementation diff --git src/lib/memalloc.c src/lib/memalloc.c index bdff614..3ff198f 100644 --- src/lib/memalloc.c +++ src/lib/memalloc.c @@ -3,36 +3,36 @@ * memory handler is a thin shell around malloc/free. You can * substitute routines that do more integrety checking with * pushCarefulMem(), or routines of your own devising with * pushMemHandler(). * * This file is copyright 2002 Jim Kent, but license is hereby * granted for all use - public, private or commercial. */ #include #include "common.h" #include "obscure.h" #include "memalloc.h" #include "dlist.h" -static unsigned long memAlloced; +static size_t memAlloced = 0; -unsigned long memCheckPoint() +size_t memCheckPoint() /* Return the amount of memory allocated since last called. */ { -unsigned long ret = memAlloced; +size_t ret = memAlloced; memAlloced = 0; return ret; } static void *defaultAlloc(size_t size) /* Default allocator. */ { return malloc(size); } static void defaultFree(void *vpt) /* Default deallocator. */ {