diff options
| author | fleuria <[email protected]> | 2013-06-28 22:58:19 +0800 |
|---|---|---|
| committer | fleuria <[email protected]> | 2013-06-28 23:15:31 +0800 |
| commit | 68f31e94f564c48d8677acc8acf3ba46deebf94f (patch) | |
| tree | 7635064038d718076a1d89574565768bb753afc5 /include/mruby.h | |
| parent | b44309b4b208a7649a4e3bfb02b2ae353a3c83fc (diff) | |
| download | mruby-68f31e94f564c48d8677acc8acf3ba46deebf94f.tar.gz mruby-68f31e94f564c48d8677acc8acf3ba46deebf94f.zip | |
refactor mrb_realloc()
remove the redundant codes with mrb_malloc_simple()
Diffstat (limited to 'include/mruby.h')
| -rw-r--r-- | include/mruby.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/mruby.h b/include/mruby.h index 29d13c553..568ed4876 100644 --- a/include/mruby.h +++ b/include/mruby.h @@ -242,6 +242,7 @@ mrb_sym mrb_intern(mrb_state *mrb,const char *cstr) void *mrb_malloc(mrb_state*, size_t); /* raise RuntimeError if no mem */ void *mrb_calloc(mrb_state*, size_t, size_t); /* ditto */ void *mrb_realloc(mrb_state*, void*, size_t); /* ditto */ +void *mrb_realloc_simple(mrb_state*, void*, size_t); /* return NULL if no memory available */ void *mrb_malloc_simple(mrb_state*, size_t); /* return NULL if no memory available */ struct RBasic *mrb_obj_alloc(mrb_state*, enum mrb_vtype, struct RClass*); void mrb_free(mrb_state*, void*); |
