1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lex.c.blt: moved from lex.c.

* Makefile.in: use lex.c.blt if gperf is not available.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12472 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2007-06-08 02:56:12 +00:00
parent 72734ac154
commit c571d4702e
3 changed files with 12 additions and 3 deletions

View file

@ -1,3 +1,9 @@
Fri Jun 8 11:54:18 2007 Tanaka Akira <akr@fsij.org>
* lex.c.blt: moved from lex.c.
* Makefile.in: use lex.c.blt if gperf is not available.
Thu Jun 7 21:38:39 2007 Koichi Sasada <ko1@atdot.net>
* thread.c (rb_thread_execute_interrupts): invoke ensure when

View file

@ -160,9 +160,12 @@ $(srcdir)/configure: $(srcdir)/configure.in
cd $(srcdir) && $(AUTOCONF)
lex.c: keywords
@-$(RM) $@
gperf -C -p -j1 -i 1 -g -o -t -N rb_reserved_word -k1,3,$$ $? > $@ || \
cp "$(srcdir)/$@" .
( \
gperf -C -p -j1 -i 1 -g -o -t -N rb_reserved_word -k1,3,$$ $? > $@.tmp && \
cp $@.tmp $@ && \
mv $@.tmp "$(srcdir)/$@.blt" \
) || \
cp "$(srcdir)/$@.blt" $@
.y.c:
$(YACC) $(YFLAGS) -o $@ $<

View file