From d67e0ffe7a5df5c461475d352aa531cfbd32f68c Mon Sep 17 00:00:00 2001 From: akr Date: Sun, 7 Oct 2007 13:03:05 +0000 Subject: * include/ruby/node.h: make node flags as VALUE type. enum ruby_node_flags removed. * ruby.c: define RUBY_NODE_* as const for gdb. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13653 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ruby.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'ruby.c') diff --git a/ruby.c b/ruby.c index bdb044ebb..f8e812be7 100644 --- a/ruby.c +++ b/ruby.c @@ -59,7 +59,6 @@ static const union { enum ruby_special_consts special_consts; enum ruby_value_type value_type; enum node_type node_type; - enum ruby_node_flags node_flags; } dummy_gdb_enums; const VALUE RUBY_FL_MARK = FL_MARK; @@ -92,6 +91,12 @@ const VALUE RUBY_FL_USER19 = FL_USER19; const VALUE RUBY_FL_USER20 = FL_USER20; const int RUBY_FL_USHIFT = FL_USHIFT; +const VALUE RUBY_NODE_NEWLINE = NODE_NEWLINE; +const int RUBY_NODE_TYPESHIFT = NODE_TYPESHIFT; +const VALUE RUBY_NODE_TYPEMASK = NODE_TYPEMASK; +const int RUBY_NODE_LSHIFT = NODE_LSHIFT; +const VALUE RUBY_NODE_LMASK = NODE_LMASK; + #ifndef HAVE_STDLIB_H char *getenv(); #endif -- cgit