From 5a647a3f5fd011f8558c7f9e90cd65e70e73eb40 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 9 Jun 2008 09:25:32 +0000 Subject: * include/ruby/ruby.h (CONST_ID): constant ID cache for non-gcc. * *.c: no cache in init functions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17053 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- iseq.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'iseq.c') diff --git a/iseq.c b/iseq.c index b8a84ed402..e09c9c4ae6 100644 --- a/iseq.c +++ b/iseq.c @@ -956,12 +956,12 @@ exception_type2symbol(VALUE type) { ID id; switch(type) { - case CATCH_TYPE_RESCUE: id = rb_intern("rescue"); break; - case CATCH_TYPE_ENSURE: id = rb_intern("ensure"); break; - case CATCH_TYPE_RETRY: id = rb_intern("retry"); break; - case CATCH_TYPE_BREAK: id = rb_intern("break"); break; - case CATCH_TYPE_REDO: id = rb_intern("redo"); break; - case CATCH_TYPE_NEXT: id = rb_intern("next"); break; + case CATCH_TYPE_RESCUE: CONST_ID(id, "rescue"); break; + case CATCH_TYPE_ENSURE: CONST_ID(id, "ensure"); break; + case CATCH_TYPE_RETRY: CONST_ID(id, "retry"); break; + case CATCH_TYPE_BREAK: CONST_ID(id, "break"); break; + case CATCH_TYPE_REDO: CONST_ID(id, "redo"); break; + case CATCH_TYPE_NEXT: CONST_ID(id, "next"); break; default: rb_bug("..."); } -- cgit v1.2.3