mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* parse.y (global_symbols.last_id): reduce unused ID numbers.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12694 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ba563e4a41
commit
6bbcf6f43d
2 changed files with 9 additions and 7 deletions
|
@ -1,4 +1,6 @@
|
||||||
Thu Jul 5 10:06:47 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Thu Jul 5 10:13:08 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* parse.y (global_symbols.last_id): reduce unused ID numbers.
|
||||||
|
|
||||||
* include/ruby/st.h, st.c (st_init_table, st_init_table_with_size):
|
* include/ruby/st.h, st.c (st_init_table, st_init_table_with_size):
|
||||||
constified.
|
constified.
|
||||||
|
|
12
parse.y
12
parse.y
|
@ -1145,7 +1145,7 @@ expr : command_call
|
||||||
expr_value : expr
|
expr_value : expr
|
||||||
{
|
{
|
||||||
/*%%%*/
|
/*%%%*/
|
||||||
value_expr($$);
|
value_expr($1);
|
||||||
$$ = $1;
|
$$ = $1;
|
||||||
/*%
|
/*%
|
||||||
$$ = $1;
|
$$ = $1;
|
||||||
|
@ -5233,10 +5233,10 @@ parser_parse_string(struct parser_params *parser, NODE *quote)
|
||||||
return tREGEXP_END;
|
return tREGEXP_END;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
ruby_sourceline = nd_line(quote);
|
ruby_sourceline = nd_line(quote);
|
||||||
rb_compile_error(PARSER_ARG "unterminated string meets end of file");
|
rb_compile_error(PARSER_ARG "unterminated string meets end of file");
|
||||||
return tSTRING_END;
|
return tSTRING_END;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
tokfix();
|
tokfix();
|
||||||
|
@ -8237,7 +8237,7 @@ static struct symbols {
|
||||||
st_table *ivar2_id;
|
st_table *ivar2_id;
|
||||||
st_table *id_ivar2;
|
st_table *id_ivar2;
|
||||||
VALUE op_sym[tLAST_TOKEN];
|
VALUE op_sym[tLAST_TOKEN];
|
||||||
} global_symbols = {tLAST_TOKEN};
|
} global_symbols = {tLAST_TOKEN >> ID_SCOPE_SHIFT};
|
||||||
|
|
||||||
static const struct st_hash_type symhash = {
|
static const struct st_hash_type symhash = {
|
||||||
rb_str_cmp,
|
rb_str_cmp,
|
||||||
|
|
Loading…
Reference in a new issue