X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fpool.h;h=7930727de8df29fe7eddf55c54afb7f362eccb09;hb=4255c7e5a693e09a97dc7a3cca0634bb2adaba2d;hp=dd7080a15b800806b801b3027a752533552e4461;hpb=7b98b3a4f58f6dc5a8e9cbc188b627966d5e652d;p=pspp diff --git a/src/pool.h b/src/pool.h index dd7080a15b..7930727de8 100644 --- a/src/pool.h +++ b/src/pool.h @@ -39,13 +39,14 @@ void pool_destroy (struct pool *); void pool_clear (struct pool *); /* Suballocation routines. */ -void *pool_alloc (struct pool *, size_t); -char *pool_strdup (struct pool *, const char *); -char *pool_strndup (struct pool *, const char *, size_t); -char *pool_strcat (struct pool *, const char *, ...); +void *pool_alloc (struct pool *, size_t) MALLOC_LIKE; +void *pool_clone (struct pool *, const void *, size_t) MALLOC_LIKE; +char *pool_strdup (struct pool *, const char *) MALLOC_LIKE; +char *pool_strndup (struct pool *, const char *, size_t) MALLOC_LIKE; +char *pool_strcat (struct pool *, const char *, ...) MALLOC_LIKE; /* Standard allocation routines. */ -void *pool_malloc (struct pool *, size_t); +void *pool_malloc (struct pool *, size_t) MALLOC_LIKE; void *pool_realloc (struct pool *, void *, size_t); void pool_free (struct pool *, void *);