зеркало из https://github.com/github/ruby.git
* common.mk (parse.c): depends on tool/ytab.sed.
* tool/ytab.sed: hack for bison 2.1. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14697 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
42643e482e
Коммит
d050e46b8c
|
@ -1,3 +1,9 @@
|
|||
Tue Dec 25 21:26:09 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* common.mk (parse.c): depends on tool/ytab.sed.
|
||||
|
||||
* tool/ytab.sed: hack for bison 2.1.
|
||||
|
||||
Tue Dec 25 20:24:58 2007 Technorama Ltd. <oss-ruby@technorama.net>
|
||||
|
||||
* ext/openssl/ossl_ssl.c: Only show a warning if the default
|
||||
|
|
|
@ -368,7 +368,7 @@ enc.mk: $(srcdir)/enc/make_encmake.rb $(srcdir)/enc/Makefile.in $(srcdir)/enc/de
|
|||
|
||||
PHONY:
|
||||
|
||||
{$(VPATH)}parse.c: {$(VPATH)}parse.y
|
||||
{$(VPATH)}parse.c: {$(VPATH)}parse.y $(srcdir)/tool/ytab.sed
|
||||
|
||||
{$(srcdir)}.y.c:
|
||||
$(YACC) $(YFLAGS) -o y.tab.c $<
|
||||
|
|
|
@ -5,6 +5,26 @@ i\
|
|||
a\
|
||||
#endif
|
||||
}
|
||||
s/^[ ]*\(yyerror[ ]*([ ]*parser,\)/parser_\1/
|
||||
/^yydestruct/,/#endif/{
|
||||
/^yydestruct/{
|
||||
/parser/!{
|
||||
h
|
||||
s/^/ruby_parser_&/
|
||||
s/)$/, parser)/
|
||||
/\*/s/parser)$/struct parser_params *&/
|
||||
}
|
||||
}
|
||||
/^#endif/{
|
||||
x
|
||||
/^./{
|
||||
i\
|
||||
struct parser_params *parser;
|
||||
a\
|
||||
#define yydestruct(m, t, v) ruby_parser_yydestruct(m, t, v, parser)
|
||||
}
|
||||
x
|
||||
}
|
||||
}
|
||||
s/^\([ ]*\)\(yyerror[ ]*([ ]*parser,\)/\1parser_\2/
|
||||
s!^ *extern char \*getenv();!/* & */!
|
||||
s/^\(#.*\)".*\.tab\.c"/\1"parse.c"/
|
||||
|
|
Загрузка…
Ссылка в новой задаче