diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-04-05 08:58:46 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-04-05 08:58:46 +0000 |
commit | 91946e0ceb74c536aa1ec67757b8f37a12dc9923 (patch) | |
tree | dbf89868a985ba193c74ab6508c5d2e067ebaf82 /compile.h | |
parent | 8bf3cbdafbbd960329c9693f723599b6f9f43796 (diff) | |
download | ruby-91946e0ceb74c536aa1ec67757b8f37a12dc9923.tar.gz ruby-91946e0ceb74c536aa1ec67757b8f37a12dc9923.tar.xz ruby-91946e0ceb74c536aa1ec67757b8f37a12dc9923.zip |
* compile.c (defined_expr): support for assignment.
[ruby-core:10867]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12151 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'compile.h')
-rw-r--r-- | compile.h | 19 |
1 files changed, 8 insertions, 11 deletions
@@ -10,8 +10,8 @@ **********************************************************************/ -#ifndef _COMPILER_H_INCLUDED_ -#define _COMPILER_H_INCLUDED_ +#ifndef RUBY_COMPILE_H +#define RUBY_COMPILE_H #if YARVDEBUG > CPDEBUG @@ -161,14 +161,11 @@ r_value(VALUE value) #define ADD_LABEL(seq, label) \ ADD_ELEM(seq, (LINK_ELEMENT *)label) -#define ADD_CATCH_ENTRY(type, ls, le, iseqv, lc) \ - (tmp = rb_ary_new(), \ - rb_ary_push(tmp, type), \ - rb_ary_push(tmp, (VALUE) ls | 1), \ - rb_ary_push(tmp, (VALUE) le | 1), \ - rb_ary_push(tmp, iseqv), \ - rb_ary_push(tmp, (VALUE) lc | 1), \ - rb_ary_push(iseq->compile_data->catch_table_ary, tmp)) +#define ADD_CATCH_ENTRY(type, ls, le, iseqv, lc) \ + (rb_ary_push(iseq->compile_data->catch_table_ary, \ + rb_ary_new3(5, type, \ + (VALUE)(ls) | 1, (VALUE)(le) | 1, \ + iseqv, (VALUE)(lc) | 1))) /* compile node */ #define COMPILE(anchor, desc, node) \ @@ -212,4 +209,4 @@ r_value(VALUE value) LINK_ANCHOR name##_body__ = {{0,}, &name##_body__.anchor}; \ LINK_ANCHOR *name = & name##_body__ -#endif /* _COMPILER_H_INCLUDED_ */ +#endif /* RUBY_COMPILE_H */ |