[前][次][番号順一覧][スレッド一覧]

ruby-changes:69837

From: Nobuyoshi <ko1@a...>
Date: Sun, 21 Nov 2021 17:51:08 +0900 (JST)
Subject: [ruby-changes:69837] cbfd5249d4 (master): Stop including node.h from vm_debug.h only for `NODE`

https://git.ruby-lang.org/ruby.git/commit/?id=cbfd5249d4

From cbfd5249d4475451731c4b1a54034ddd61d480e9 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Sun, 21 Nov 2021 11:58:15 +0900
Subject: Stop including node.h from vm_debug.h only for `NODE`

---
 vm_debug.h | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/vm_debug.h b/vm_debug.h
index d8f4fcbe242..230f0f7b16e 100644
--- a/vm_debug.h
+++ b/vm_debug.h
@@ -12,7 +12,6 @@ https://github.com/ruby/ruby/blob/trunk/vm_debug.h#L12
 **********************************************************************/
 
 #include "ruby/ruby.h"
-#include "node.h"
 
 RUBY_SYMBOL_EXPORT_BEGIN
 
@@ -21,9 +20,11 @@ RUBY_SYMBOL_EXPORT_BEGIN https://github.com/ruby/ruby/blob/trunk/vm_debug.h#L20
 #define dpi(i)   ruby_debug_print_id(-1, 0, "", (i))
 #define dpn(n)   ruby_debug_print_node(-1, 0, "", (n))
 
+struct RNode;
+
 VALUE ruby_debug_print_value(int level, int debug_level, const char *header, VALUE v);
 ID    ruby_debug_print_id(int level, int debug_level, const char *header, ID id);
-NODE *ruby_debug_print_node(int level, int debug_level, const char *header, const NODE *node);
+struct RNode *ruby_debug_print_node(int level, int debug_level, const char *header, const struct RNode *node);
 int   ruby_debug_print_indent(int level, int debug_level, int indent_level);
 void  ruby_debug_gc_check_func(void);
 void ruby_set_debug_option(const char *str);
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]