summaryrefslogtreecommitdiffhomepage
path: root/include/mruby.h
diff options
context:
space:
mode:
authorYukihiro Matsumoto <[email protected]>2012-05-19 15:52:47 +0900
committerYukihiro Matsumoto <[email protected]>2012-05-19 15:52:47 +0900
commitaeca23166b8e822ba8c3126ac9b1b0e76914fab7 (patch)
tree15f647c236ae13d264e8f8f0b996eb2284c63e6c /include/mruby.h
parentcb8b4691f09cf935f119595f1b3e755f7fc0f8f3 (diff)
downloadmruby-aeca23166b8e822ba8c3126ac9b1b0e76914fab7.tar.gz
mruby-aeca23166b8e822ba8c3126ac9b1b0e76914fab7.zip
remove dependency to node.h and pool.h
Diffstat (limited to 'include/mruby.h')
-rw-r--r--include/mruby.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/mruby.h b/include/mruby.h
index 299ad1721..9e7d20351 100644
--- a/include/mruby.h
+++ b/include/mruby.h
@@ -588,6 +588,14 @@ int mrb_sourceline(void);
void ruby_default_signal(int sig);
mrb_value mrb_attr_get(mrb_state *mrb, mrb_value obj, mrb_sym id);
+/* memory pool implementation */
+typedef struct mrb_pool mrb_pool;
+struct mrb_pool* mrb_pool_open(mrb_state*);
+void mrb_pool_close(struct mrb_pool*);
+void* mrb_pool_alloc(struct mrb_pool*, size_t);
+void* mrb_pool_realloc(struct mrb_pool*, void*, size_t oldlen, size_t newlen);
+int mrb_pool_can_realloc(struct mrb_pool*, void*, size_t);
+
#if defined(__cplusplus)
} /* extern "C" { */
#endif