diff options
author | Maria Matejka <mq@ucw.cz> | 2022-03-15 11:21:46 +0100 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2022-03-15 11:21:46 +0100 |
commit | c53f547a0bf437fb95923b2a0b9ac497e474aef1 (patch) | |
tree | c4fd70c83ef16b8d343c42a6f77616ee56e8bba2 /lib/resource.h | |
parent | 3c42f7af6a23de3f135235521318301e5b34f2de (diff) |
Printf variant with a result allocated inside a pool / linpool
Diffstat (limited to 'lib/resource.h')
-rw-r--r-- | lib/resource.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/resource.h b/lib/resource.h index 313b01dc..ed9e109d 100644 --- a/lib/resource.h +++ b/lib/resource.h @@ -44,6 +44,7 @@ typedef struct pool pool; void resource_init(void); pool *rp_new(pool *, const char *); /* Create new pool */ +pool *rp_newf(pool *, const char *, ...); /* Create a new pool with a formatted string as its name */ void rfree(void *); /* Free single resource */ void rdump(void *); /* Dump to debug output */ struct resmem rmemsize(void *res); /* Return size of memory used by the resource */ @@ -59,7 +60,6 @@ extern pool root_pool; void *mb_alloc(pool *, unsigned size); void *mb_allocz(pool *, unsigned size); void *mb_realloc(void *m, unsigned size); -void mb_move(void *, pool *); void mb_free(void *); /* Memory pools with linear allocation */ |