diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-01-22 07:25:08 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-01-22 07:25:08 +0000 |
commit | 4e64c54728d0d1db94f229feb59fd1bf2d60f686 (patch) | |
tree | f15e980b30dbe8fc50ce4f4b69a16efec34111f6 /parse.y | |
parent | 3dc6efbe9ca582d6930f25754a16043dedecfa6f (diff) |
ripper.y: get rid of compile error
yystpcpy is always used by yysyntax_error in bison 2.3, but may
not used by other than yytnamerr in newer bison.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66905 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -611,9 +611,6 @@ rb_strterm_mark(VALUE obj) #define yytnamerr(yyres, yystr) (YYSIZE_T)rb_yytnamerr(yyres, yystr) size_t rb_yytnamerr(char *yyres, const char *yystr); -#ifdef RIPPER -#define yystpcpy Not used -#endif #define TOKEN2ID(tok) ( \ tTOKEN_LOCAL_BEGIN<(tok)&&(tok)<tTOKEN_LOCAL_END ? TOKEN2LOCALID(tok) : \ @@ -11650,6 +11647,8 @@ Init_ripper(void) id_warning = rb_intern_const("warning"); id_gets = rb_intern_const("gets"); + (void)yystpcpy; /* may not used in newer bison */ + InitVM(ripper); } |