Commit 0e3b3bbc authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto

Merge pull request #2619 from suzukaze/refactor-mrbc_context_new

Refactor mrbc_context_new func
parents 2ff67f8d 7bd2a850
...@@ -5447,10 +5447,7 @@ mrb_parser_free(parser_state *p) { ...@@ -5447,10 +5447,7 @@ mrb_parser_free(parser_state *p) {
MRB_API mrbc_context* MRB_API mrbc_context*
mrbc_context_new(mrb_state *mrb) mrbc_context_new(mrb_state *mrb)
{ {
mrbc_context *c; return (mrbc_context *)mrb_calloc(mrb, 1, sizeof(mrbc_context));
c = (mrbc_context *)mrb_calloc(mrb, 1, sizeof(mrbc_context));
return c;
} }
MRB_API void MRB_API void
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment