X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flibpspp%2Fpool.h;h=bc60e3a7a297928faff5dd0330e2aeafcd15aa46;hb=9f472ebb86d3a1b4903bdde1c1371add0b70669a;hp=fe4af29b73c4bcdccc77d1df03d8de21944c1432;hpb=c66132a07790c90a5f32260886a488be6e318337;p=pspp-builds.git diff --git a/src/libpspp/pool.h b/src/libpspp/pool.h index fe4af29b..bc60e3a7 100644 --- a/src/libpspp/pool.h +++ b/src/libpspp/pool.h @@ -1,6 +1,5 @@ /* PSPP - computes sample statistics. Copyright (C) 2000, 2006 Free Software Foundation, Inc. - Written by Ben Pfaff . This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as @@ -22,6 +21,7 @@ #include #include +#include #include "compiler.h" /* Maximum size of a suballocated block. Larger blocks are allocated @@ -72,6 +72,8 @@ char *pool_asprintf (struct pool *, const char *, ...) /* Standard allocation routines. */ void *pool_malloc (struct pool *, size_t) MALLOC_LIKE; void *pool_nmalloc (struct pool *, size_t n, size_t s) MALLOC_LIKE; +void *pool_zalloc (struct pool *, size_t) MALLOC_LIKE; +void *pool_calloc (struct pool *, size_t n, size_t s) MALLOC_LIKE; void *pool_realloc (struct pool *, void *, size_t); void *pool_nrealloc (struct pool *, void *, size_t n, size_t s); void *pool_2nrealloc (struct pool *, void *, size_t *pn, size_t s); @@ -90,7 +92,7 @@ void pool_detach_file (struct pool *, FILE *); /* Custom allocations. */ void pool_register (struct pool *, void (*free) (void *), void *p); -int pool_unregister (struct pool *, void *); +bool pool_unregister (struct pool *, void *); /* Partial freeing. */ void pool_mark (struct pool *, struct pool_mark *);