summaryrefslogtreecommitdiff
path: root/vm_core.h
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-01-25 18:22:58 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-01-25 18:22:58 +0000
commitf53d8254474628f0c3710950ee342ecf941f2fd1 (patch)
treeaf5ceb44bbe0884aff93af7a64f5638e72af139d /vm_core.h
parent6ebdbb30add7acc3edc49bc910c4931e5125fb10 (diff)
* cont.c, vm_core.h, eval.c: because rb_protect must not be jumped by
callcc, revert r26407. And rename trap_tag to protect_tag and change exception message (across trap -> across stack rewinding barrier). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26415 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_core.h')
-rw-r--r--vm_core.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/vm_core.h b/vm_core.h
index 705df82b18..126f48ec80 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -347,6 +347,10 @@ struct rb_vm_tag {
struct rb_vm_tag *prev;
};
+struct rb_vm_protect_tag {
+ struct rb_vm_protect_tag *prev;
+};
+
#define RUBY_VM_VALUE_CACHE_SIZE 0x1000
#define USE_VALUE_CACHE 0
@@ -410,6 +414,7 @@ typedef struct rb_thread_struct
int transition_for_lock;
struct rb_vm_tag *tag;
+ struct rb_vm_protect_tag *protect_tag;
int parse_in_eval;
int mild_compile_error;