From d488464106c0a65c892a8785d577ce8011e6e277 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Thu, 1 Aug 2019 15:17:52 +0900 Subject: Use predefined idOr --- parse.y | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/parse.y b/parse.y index 46c263fa7b..2008fc6114 100644 --- a/parse.y +++ b/parse.y @@ -866,7 +866,7 @@ static VALUE heredoc_dedent(struct parser_params*,VALUE); # define rb_warning3L(l,fmt,a,b,c) WARNING_CALL(WARNING_ARGS_L(l, fmt, 4), (a), (b), (c)) # define rb_warning4L(l,fmt,a,b,c,d) WARNING_CALL(WARNING_ARGS_L(l, fmt, 5), (a), (b), (c), (d)) #ifdef RIPPER -static ID id_warn, id_warning, id_gets, id_assoc, id_or; +static ID id_warn, id_warning, id_gets, id_assoc; # define WARN_S_L(s,l) STR_NEW(s,l) # define WARN_S(s) STR_NEW2(s) # define WARN_I(i) INT2NUM(i) @@ -3791,7 +3791,7 @@ p_alt : p_alt '|' p_expr_basic /*%%%*/ $$ = NEW_NODE(NODE_OR, $1, $3, 0, &@$); /*% %*/ - /*% ripper: binary!($1, STATIC_ID2SYM((id_or)), $3) %*/ + /*% ripper: binary!($1, STATIC_ID2SYM(idOr), $3) %*/ } | p_expr_basic ; @@ -12893,7 +12893,6 @@ Init_ripper(void) id_warning = rb_intern_const("warning"); id_gets = rb_intern_const("gets"); id_assoc = rb_intern_const("=>"); - id_or = rb_intern_const("|"); (void)yystpcpy; /* may not used in newer bison */ -- cgit v1.2.3