summaryrefslogtreecommitdiff
path: root/ext/ripper/depend
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-11-13 12:41:41 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-11-13 12:41:41 +0000
commitd5a3389886c9dc7f3492ef5369009c40d85b0f3c (patch)
tree884508c6b44f073721c42f5d54e667a3f82d32fb /ext/ripper/depend
parentb7d363ead696a2f1143c547d71d0242b1402c9f6 (diff)
* common.mk (parse.c), ext/ripper/depend (ripper.c): process after
bison with sed. [ruby-dev:32204] * ruby.c (proc_options): use yydebug in cmdline_options. * ruby.c (process_options): set yydebug flag of parser. * parse.y (yydebug): moved into struct parser_params. * parse.y (rb_parser_get_yydebug, rb_parser_set_yydebug): parser generic methods. * */Makefile.sub (parse.c): moved to common.mk. * tool/ytab.sed: comment out yydebug definition, and substitute yyerror with parser_yyerror. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13908 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/ripper/depend')
-rw-r--r--ext/ripper/depend4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/ripper/depend b/ext/ripper/depend
index f74f7f0fee..120fdc58e7 100644
--- a/ext/ripper/depend
+++ b/ext/ripper/depend
@@ -8,7 +8,9 @@ src: ripper.c eventids1.c eventids2table.c
ripper.o: ripper.c lex.c eventids1.c eventids2.c eventids2table.c
.y.c:
- $(BISON) -t -v -o$@ $<
+ $(BISON) -t -v -oy.tab.c $<
+ sed -f $(top_srcdir)/tool/ytab.sed -e "/^#/s!y\.tab\.c!$@!" y.tab.c > $@
+ @$(RM) y.tab.c
all: check
static: check