diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-10-03 15:09:12 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-10-03 15:09:12 +0000 |
commit | d4186ca08bb15682e8bf4b56717ec65f968efc72 (patch) | |
tree | 24ae3a59cd0f26d655ed4b9249c8a686885b4d71 | |
parent | 4793e6440c08a91ad8c388aec27bc5918c6c2882 (diff) | |
download | ruby-d4186ca08bb15682e8bf4b56717ec65f968efc72.tar.gz ruby-d4186ca08bb15682e8bf4b56717ec65f968efc72.tar.xz ruby-d4186ca08bb15682e8bf4b56717ec65f968efc72.zip |
* parse.y (dyna_in_block): inline using macro.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11072 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | parse.y | 8 |
2 files changed, 5 insertions, 7 deletions
@@ -1,3 +1,7 @@ +Tue Oct 3 21:04:29 2006 Yukihiro Matsumoto <matz@ruby-lang.org> + + * parse.y (dyna_in_block): inline using macro. + Tue Oct 3 02:31:13 2006 Yukihiro Matsumoto <matz@ruby-lang.org> * eval.c (splat_value): use "to_splat" instead of "to_ary" to @@ -317,7 +317,7 @@ static struct RVarmap *dyna_push_gen(struct parser_params*); static void dyna_pop_gen(struct parser_params*, struct RVarmap*); #define dyna_pop(vars) dyna_pop_gen(parser, vars) static int dyna_in_block_gen(struct parser_params*); -#define dyna_in_block() dyna_in_block_gen(parser) +#define dyna_in_block() (lvtbl->dlev > 0) static NODE *dyna_init_gen(struct parser_params*, NODE*, struct RVarmap *); #define dyna_init(node, pre) dyna_init_gen(parser, node, pre) static void dyna_var_gen(struct parser_params*,ID); @@ -8139,12 +8139,6 @@ dyna_pop_gen(struct parser_params *parser, struct RVarmap* vars) ruby_dyna_vars = vars; } -static int -dyna_in_block_gen(struct parser_params *parser) -{ - return (lvtbl->dlev > 0); -} - static NODE * dyna_init_gen(struct parser_params *parser, NODE *node, struct RVarmap *pre) { |