diff options
| author | Jun Hiroe <[email protected]> | 2014-10-27 00:29:00 +0900 |
|---|---|---|
| committer | Jun Hiroe <[email protected]> | 2014-10-27 00:29:00 +0900 |
| commit | 7bd2a8508eeeaa7cc5347b5bc9e2b64be6ccb7f3 (patch) | |
| tree | b7154a135d1aa7c39b17e2877b5a37d2fd791030 /src/parse.y | |
| parent | 2ff67f8d476cbb0852f6efc3fa361e10617b1231 (diff) | |
| download | mruby-7bd2a8508eeeaa7cc5347b5bc9e2b64be6ccb7f3.tar.gz mruby-7bd2a8508eeeaa7cc5347b5bc9e2b64be6ccb7f3.zip | |
Refactor mrbc_context_new func
Diffstat (limited to 'src/parse.y')
| -rw-r--r-- | src/parse.y | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/parse.y b/src/parse.y index 00d784d81..b47819105 100644 --- a/src/parse.y +++ b/src/parse.y @@ -5447,10 +5447,7 @@ mrb_parser_free(parser_state *p) { MRB_API mrbc_context* mrbc_context_new(mrb_state *mrb) { - mrbc_context *c; - - c = (mrbc_context *)mrb_calloc(mrb, 1, sizeof(mrbc_context)); - return c; + return (mrbc_context *)mrb_calloc(mrb, 1, sizeof(mrbc_context)); } MRB_API void |
