summaryrefslogtreecommitdiff
path: root/stalloc.h
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2009-02-17 03:14:49 +0100
committerPixel <pixel@nobis-crew.org>2009-02-17 03:14:49 +0100
commitdaabda7c8b4038ac24cdf5b9790932905eab7d8f (patch)
tree02cd32b465f962b7219db5c26409883f2be25cda /stalloc.h
parent7014696a982451f4af8903b8da8b915cdcbdf632 (diff)
Improving stalloc by make it context-safe.
Diffstat (limited to 'stalloc.h')
-rw-r--r--stalloc.h9
1 files changed, 6 insertions, 3 deletions
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