ruby-changes:4833
From: ko1@a...
Date: Thu, 8 May 2008 15:57:24 +0900 (JST)
Subject: [ruby-changes:4833] nobu - Ruby:r16327 (trunk): * eval_intern.h (enum ruby_tag_type): enum for debug.
nobu 2008-05-08 15:56:59 +0900 (Thu, 08 May 2008) New Revision: 16327 Modified files: trunk/debug.c trunk/eval_intern.h Log: * eval_intern.h (enum ruby_tag_type): enum for debug. * debug.c (dummy_gdb_enums.value_type): ditto. http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/debug.c?r1=16327&r2=16326&diff_format=u http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/eval_intern.h?r1=16327&r2=16326&diff_format=u Index: eval_intern.h =================================================================== --- eval_intern.h (revision 16326) +++ eval_intern.h (revision 16327) @@ -151,15 +151,26 @@ #define JUMP_TAG(st) TH_JUMP_TAG(GET_THREAD(), st) -#define TAG_RETURN 0x1 -#define TAG_BREAK 0x2 -#define TAG_NEXT 0x3 -#define TAG_RETRY 0x4 -#define TAG_REDO 0x5 -#define TAG_RAISE 0x6 -#define TAG_THROW 0x7 -#define TAG_FATAL 0x8 -#define TAG_MASK 0xf +enum ruby_tag_type { + RUBY_TAG_RETURN = 0x1, + RUBY_TAG_BREAK = 0x2, + RUBY_TAG_NEXT = 0x3, + RUBY_TAG_RETRY = 0x4, + RUBY_TAG_REDO = 0x5, + RUBY_TAG_RAISE = 0x6, + RUBY_TAG_THROW = 0x7, + RUBY_TAG_FATAL = 0x8, + RUBY_TAG_MASK = 0xf +}; +#define TAG_RETURN RUBY_TAG_RETURN +#define TAG_BREAK RUBY_TAG_BREAK +#define TAG_NEXT RUBY_TAG_NEXT +#define TAG_RETRY RUBY_TAG_RETRY +#define TAG_REDO RUBY_TAG_REDO +#define TAG_RAISE RUBY_TAG_RAISE +#define TAG_THROW RUBY_TAG_THROW +#define TAG_FATAL RUBY_TAG_FATAL +#define TAG_MASK RUBY_TAG_MASK #define NEW_THROW_OBJECT(val, pt, st) \ ((VALUE)NEW_NODE(NODE_LIT, (val), (pt), (st))) Index: debug.c =================================================================== --- debug.c (revision 16326) +++ debug.c (revision 16327) @@ -13,12 +13,14 @@ #include "ruby/encoding.h" #include "ruby/util.h" #include "debug.h" +#include "eval_intern.h" #include "vm_core.h" /* for gdb */ static const union { enum ruby_special_consts special_consts; enum ruby_value_type value_type; + enum ruby_tag_type tag_type; enum node_type node_type; enum { RUBY_ENCODING_INLINE_MAX = ENCODING_INLINE_MAX, -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/