summaryrefslogtreecommitdiffhomepage
path: root/src/parse.y
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-10-27 00:47:25 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-10-27 00:47:25 +0900
commit0e3b3bbc0842e0a096beee33df71496d4966216f (patch)
treeb7154a135d1aa7c39b17e2877b5a37d2fd791030 /src/parse.y
parent2ff67f8d476cbb0852f6efc3fa361e10617b1231 (diff)
parent7bd2a8508eeeaa7cc5347b5bc9e2b64be6ccb7f3 (diff)
downloadmruby-0e3b3bbc0842e0a096beee33df71496d4966216f.tar.gz
mruby-0e3b3bbc0842e0a096beee33df71496d4966216f.zip
Merge pull request #2619 from suzukaze/refactor-mrbc_context_new
Refactor mrbc_context_new func
Diffstat (limited to 'src/parse.y')
-rw-r--r--src/parse.y5
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