diff options
author | Pixel <pixel@nobis-crew.org> | 2009-02-17 03:14:49 +0100 |
---|---|---|
committer | Pixel <pixel@nobis-crew.org> | 2009-02-17 03:14:49 +0100 |
commit | daabda7c8b4038ac24cdf5b9790932905eab7d8f (patch) | |
tree | 02cd32b465f962b7219db5c26409883f2be25cda /stalloc.h | |
parent | 7014696a982451f4af8903b8da8b915cdcbdf632 (diff) |
Improving stalloc by make it context-safe.
Diffstat (limited to 'stalloc.h')
-rw-r--r-- | stalloc.h | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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 |