summaryrefslogtreecommitdiffhomepage
path: root/include/mruby.h
diff options
context:
space:
mode:
authordearblue <[email protected]>2019-05-25 23:59:43 +0900
committerdearblue <[email protected]>2019-05-25 23:59:43 +0900
commitd1e1bb0d5b45d9f1c5de943a036c86542698af49 (patch)
treeba2b910a5c651698d3587875a6cffe84ef056972 /include/mruby.h
parentf455cb6c408525f0af7303d21ed5b81959e46876 (diff)
downloadmruby-d1e1bb0d5b45d9f1c5de943a036c86542698af49.tar.gz
mruby-d1e1bb0d5b45d9f1c5de943a036c86542698af49.zip
Remove `mrb_alloca()` function
When I found this function, I expected it to behave the same as the `alloca(3)` function, but it is accually the `mrb_alloca()` function does not free the heap until the `mrb_close()` function is called. Also, even if it is deleted, it can be replaced with the combination of the `MRB_TT_DATA` object and the `mrb_gv_set()` function if it is sure necessary.
Diffstat (limited to 'include/mruby.h')
-rw-r--r--include/mruby.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/mruby.h b/include/mruby.h
index 20cdc1b83..5d5c759dd 100644
--- a/include/mruby.h
+++ b/include/mruby.h
@@ -228,7 +228,6 @@ typedef struct mrb_state {
struct RClass *symbol_class;
struct RClass *kernel_module;
- struct alloca_header *mems;
mrb_gc gc;
#ifdef MRB_METHOD_CACHE
@@ -1247,7 +1246,6 @@ MRB_API void mrb_pool_close(struct mrb_pool*);
MRB_API void* mrb_pool_alloc(struct mrb_pool*, size_t);
MRB_API void* mrb_pool_realloc(struct mrb_pool*, void*, size_t oldlen, size_t newlen);
MRB_API mrb_bool mrb_pool_can_realloc(struct mrb_pool*, void*, size_t);
-MRB_API void* mrb_alloca(mrb_state *mrb, size_t);
MRB_API void mrb_state_atexit(mrb_state *mrb, mrb_atexit_func func);