summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-10-27 18:00:37 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-10-27 18:00:37 +0900
commit9d8be78f3a3a6144dc1270578c2739311b44af75 (patch)
tree266a5f6237c5ea1f23df7209c13aafe48e92dfcb /src
parent0e3b3bbc0842e0a096beee33df71496d4966216f (diff)
parent34175bf41fd46696341369fa7127399dd48a98ba (diff)
downloadmruby-9d8be78f3a3a6144dc1270578c2739311b44af75.tar.gz
mruby-9d8be78f3a3a6144dc1270578c2739311b44af75.zip
Merge pull request #2620 from suzukaze/refactor-yylex
Refactor yylex func
Diffstat (limited to 'src')
-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