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

* parse.y (arg_add_gen): removed since identical to arg_append_gen.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15448 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2008-02-12 16:23:02 +00:00
parent 55c4937048
commit 8a87655162
3 changed files with 8 additions and 20 deletions

View file

@ -1,3 +1,7 @@
Wed Feb 13 01:23:00 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* parse.y (arg_add_gen): removed since identical to arg_append_gen.
Tue Feb 12 21:04:51 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* parse.y (exc_list): should use mrhs if non array.

18
parse.y
View file

@ -7816,22 +7816,6 @@ arg_append_gen(struct parser_params *parser, NODE *node1, NODE *node2)
}
}
#define arg_add(n1, n2) arg_add_gen(parser,n1,n2)
static NODE *
arg_add_gen(struct parser_params *parser, NODE *node1, NODE *node2)
{
if (!node1) return NEW_LIST(node2);
switch (nd_type(node1)) {
case NODE_ARRAY:
return list_append(node1, node2);
case NODE_BLOCK_PASS:
node1->nd_head = arg_add(node1->nd_head, node2);
return node1;
default:
return NEW_ARGSPUSH(node1, node2);
}
}
static NODE *
splat_array(NODE* node)
{
@ -7860,7 +7844,7 @@ node_assign_gen(struct parser_params *parser, NODE *lhs, NODE *rhs)
case NODE_ATTRASGN:
case NODE_CALL:
lhs->nd_args = arg_add(lhs->nd_args, rhs);
lhs->nd_args = arg_append(lhs->nd_args, rhs);
break;
default:

View file

@ -1,7 +1,7 @@
#define RUBY_VERSION "1.9.0"
#define RUBY_RELEASE_DATE "2008-02-12"
#define RUBY_RELEASE_DATE "2008-02-13"
#define RUBY_VERSION_CODE 190
#define RUBY_RELEASE_CODE 20080212
#define RUBY_RELEASE_CODE 20080213
#define RUBY_PATCHLEVEL 0
#define RUBY_VERSION_MAJOR 1
@ -9,7 +9,7 @@
#define RUBY_VERSION_TEENY 0
#define RUBY_RELEASE_YEAR 2008
#define RUBY_RELEASE_MONTH 2
#define RUBY_RELEASE_DAY 12
#define RUBY_RELEASE_DAY 13
#ifdef RUBY_EXTERN
RUBY_EXTERN const char ruby_version[];