From 534c5a29107b741cd322fe0dee17146de6e84087 Mon Sep 17 00:00:00 2001 From: eban Date: Sat, 19 Apr 2003 18:17:59 +0000 Subject: [PATCH] * parse.y (void_expr0): node might become NULL after calling remove_begin(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3698 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ lib/mkmf.rb | 2 +- parse.y | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7b833885da..6df3c1c487 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sun Apr 20 03:09:30 2003 WATANABE Hirofumi + + * parse.y (void_expr0): node might become NULL after calling + remove_begin(). + Sat Apr 19 21:55:10 2003 Akinori MUSHA * ext/Setup*: Add zlib and remove bogus and obsolete entries. diff --git a/lib/mkmf.rb b/lib/mkmf.rb index a9f061df89..eda3389e11 100644 --- a/lib/mkmf.rb +++ b/lib/mkmf.rb @@ -518,7 +518,7 @@ def dir_config(target, idefault=nil, ldefault=nil) end if ldir - $LIBPATH.unshift(ldir) unless $LIBPATH.include?(ldir) + $LIBPATH.concat [ldir] unless $LIBPATH.include?(ldir) end [idir, ldir] diff --git a/parse.y b/parse.y index a0bc7d2dec..8a87c8d19a 100644 --- a/parse.y +++ b/parse.y @@ -4980,9 +4980,9 @@ void_expr0(node) char *useless = 0; if (!RTEST(ruby_verbose)) return; - if (!node) return; again: + if (!node) return; switch (nd_type(node)) { case NODE_NEWLINE: node = node->nd_next;