aboutsummaryrefslogtreecommitdiffstats
path: root/compile.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-04-05 08:58:46 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-04-05 08:58:46 +0000
commit22e4a7703fbcc4640fa5b764730e542dd75df743 (patch)
treedbf89868a985ba193c74ab6508c5d2e067ebaf82 /compile.h
parenta39ab5220d185bb52549bb69fbd93350b3f67779 (diff)
downloadruby-22e4a7703fbcc4640fa5b764730e542dd75df743.tar.gz
* compile.c (defined_expr): support for assignment.
[ruby-core:10867] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12151 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'compile.h')
-rw-r--r--compile.h19
1 files changed, 8 insertions, 11 deletions
diff --git a/compile.h b/compile.h
index 92c4f250dd..f0c7089218 100644
--- a/compile.h
+++ b/compile.h
@@ -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 */