diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-07-20 07:11:35 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-07-20 07:11:35 +0000 |
| commit | 3b6d8c916acf6b99e53674032763c37cae8d4c38 (patch) | |
| tree | 0a0e7b1a90c1475d32669798d0ae72647560616c /compile.h | |
| parent | 7f1ad02e68f60b0a91f982acd09cf460247ac5f6 (diff) | |
| download | ruby-3b6d8c916acf6b99e53674032763c37cae8d4c38.tar.gz ruby-3b6d8c916acf6b99e53674032763c37cae8d4c38.tar.xz ruby-3b6d8c916acf6b99e53674032763c37cae8d4c38.zip | |
* compile.c, compile.h (DECL_ANCHOR, INIT_ANCHOR): split not to
initialize aggregations with dynamic values. [ruby-talk:259306]
* eval.c (rb_protect): not to initialize aggregations with dynamic
values. [ruby-talk:259306]
* gc.c (mark_current_machine_context): ditto.
* thread.c (thgroup_list, call_trace_func): ditto.
* vm.c (vm_init_redefined_flag): ditto.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12822 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'compile.h')
| -rw-r--r-- | compile.h | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -211,8 +211,12 @@ r_value(VALUE value) #define COMPILE_OK 1 #define COMPILE_NG 0 + +/* leave name uninitialized so that compiler warn if INIT_ANCHOR is + * missing */ #define DECL_ANCHOR(name) \ - LINK_ANCHOR name##_body__ = {{0,}, &name##_body__.anchor}; \ - LINK_ANCHOR *name = & name##_body__ + LINK_ANCHOR *name, name##_body__ = {{0,},} +#define INIT_ANCHOR(name) \ + (name##_body__.last = &name##_body__.anchor, name = &name##_body__) #endif /* RUBY_COMPILE_H */ |
