aboutsummaryrefslogtreecommitdiffstats
path: root/parse.y
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-11-04 15:39:52 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-11-04 15:39:52 +0000
commit8ca7492400dbf67976f54805bf6d53eff9112865 (patch)
tree50c1258cb9e968de2e7846c4485cc422fd1454b8 /parse.y
parent8f6459840c0de82e57b3bfb570cc4ad12be90dd1 (diff)
downloadruby-8ca7492400dbf67976f54805bf6d53eff9112865.tar.gz
parse.y: fix duplicate symbol
* parse.y (rb_strterm_mark): do not define in ripper to get rid of duplicate symbol with static-linked-ext. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60654 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y2
1 files changed, 2 insertions, 0 deletions
diff --git a/parse.y b/parse.y
index e87a0fb22b..73a08f39fb 100644
--- a/parse.y
+++ b/parse.y
@@ -781,6 +781,7 @@ struct rb_strterm_struct {
} u;
};
+#ifndef RIPPER
void
rb_strterm_mark(VALUE obj)
{
@@ -791,6 +792,7 @@ rb_strterm_mark(VALUE obj)
rb_gc_mark(heredoc->lastline);
}
}
+#endif
#define TOKEN2ID(tok) ( \
tTOKEN_LOCAL_BEGIN<(tok)&&(tok)<tTOKEN_LOCAL_END ? TOKEN2LOCALID(tok) : \