summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJun Hiroe <[email protected]>2014-10-27 01:27:00 +0900
committerJun Hiroe <[email protected]>2014-10-27 01:27:00 +0900
commit34175bf41fd46696341369fa7127399dd48a98ba (patch)
tree266a5f6237c5ea1f23df7209c13aafe48e92dfcb
parent0e3b3bbc0842e0a096beee33df71496d4966216f (diff)
downloadmruby-34175bf41fd46696341369fa7127399dd48a98ba.tar.gz
mruby-34175bf41fd46696341369fa7127399dd48a98ba.zip
Refactor yylex func
-rw-r--r--src/parse.y6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/parse.y b/src/parse.y
index b47819105..644250079 100644
--- a/src/parse.y
+++ b/src/parse.y
@@ -5312,12 +5312,8 @@ parser_yylex(parser_state *p)
static int
yylex(void *lval, parser_state *p)
{
- int t;
-
p->ylval = lval;
- t = parser_yylex(p);
-
- return t;
+ return parser_yylex(p);
}
static void