From daabda7c8b4038ac24cdf5b9790932905eab7d8f Mon Sep 17 00:00:00 2001 From: Pixel Date: Tue, 17 Feb 2009 03:14:49 +0100 Subject: Improving stalloc by make it context-safe. --- stalloc.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'stalloc.h') diff --git a/stalloc.h b/stalloc.h index 4d5cbce..892767e 100644 --- a/stalloc.h +++ b/stalloc.h @@ -1,8 +1,11 @@ #ifndef __STALLOC_H__ #define __STALLOC_H__ -void * st_alloc(size_t s); -char * st_strdup(const char * src); -void st_shutdown(); +struct st_alloc_t; + +struct st_alloc_t * st_init(); +void * st_alloc(struct st_alloc_t * s, size_t siz); +char * st_strdup(struct st_alloc_t * s, const char * src); +void st_destroy(struct st_alloc_t * s); #endif -- cgit v1.2.3