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

* parse.y (dsym): return non-null NODE even if yyerror(). based on a

patch from from Yusuke ENDOH <mame AT tsg.ne.jp>.  [ruby-dev:31085]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13152 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
shyouhei 2007-08-22 00:40:09 +00:00
parent 5de33d8fa3
commit 30b08891ba
3 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Wed Aug 22 09:39:26 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* parse.y (dsym): return non-null NODE even if yyerror(). based on a
patch from from Yusuke ENDOH <mame AT tsg.ne.jp>. [ruby-dev:31085]
Wed Aug 22 09:38:43 2007 Nobuyoshi Nakada <nobu@ruby-lang.org> Wed Aug 22 09:38:43 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* process.c (proc_exec_v, rb_proc_exec): preserve errno. * process.c (proc_exec_v, rb_proc_exec): preserve errno.

View file

@ -2143,6 +2143,7 @@ dsym : tSYMBEG xstring_contents tSTRING_END
{ {
lex_state = EXPR_END; lex_state = EXPR_END;
if (!($$ = $2)) { if (!($$ = $2)) {
$$ = NEW_NIL();
yyerror("empty symbol literal"); yyerror("empty symbol literal");
} }
else { else {

View file

@ -2,7 +2,7 @@
#define RUBY_RELEASE_DATE "2007-08-22" #define RUBY_RELEASE_DATE "2007-08-22"
#define RUBY_VERSION_CODE 186 #define RUBY_VERSION_CODE 186
#define RUBY_RELEASE_CODE 20070822 #define RUBY_RELEASE_CODE 20070822
#define RUBY_PATCHLEVEL 50 #define RUBY_PATCHLEVEL 51
#define RUBY_VERSION_MAJOR 1 #define RUBY_VERSION_MAJOR 1
#define RUBY_VERSION_MINOR 8 #define RUBY_VERSION_MINOR 8