From 75b10ac6963531e60690064dbf2e40bd5cbd018e Mon Sep 17 00:00:00 2001 From: akr Date: Tue, 23 Sep 2008 08:03:41 +0000 Subject: [PATCH] * debug.h (ruby_set_debug_option): declared. * main.c: include debug.h. * common.mk (main.$(OBJEXT)): dependency updated. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19475 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 8 ++++++++ common.mk | 2 +- debug.h | 4 ++++ main.c | 1 + 4 files changed, 14 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 91cbc2899a..4c4b47843b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +Tue Sep 23 17:02:47 2008 Tanaka Akira + + * debug.h (ruby_set_debug_option): declared. + + * main.c: include debug.h. + + * common.mk (main.$(OBJEXT)): dependency updated. + Tue Sep 23 16:59:45 2008 Nobuyoshi Nakada * hash.c (ENVMATCH, ENVNMATCH): reduced same code. diff --git a/common.mk b/common.mk index 1c250962a3..d6eaef6827 100644 --- a/common.mk +++ b/common.mk @@ -477,7 +477,7 @@ hash.$(OBJEXT): {$(VPATH)}hash.c $(RUBY_H_INCLUDES) {$(VPATH)}util.h inits.$(OBJEXT): {$(VPATH)}inits.c $(RUBY_H_INCLUDES) io.$(OBJEXT): {$(VPATH)}io.c $(RUBY_H_INCLUDES) {$(VPATH)}io.h \ {$(VPATH)}util.h $(VM_CORE_H_INCLUDES) $(ENCODING_H_INCLUDES) -main.$(OBJEXT): {$(VPATH)}main.c $(RUBY_H_INCLUDES) {$(VPATH)}vm.h +main.$(OBJEXT): {$(VPATH)}main.c $(RUBY_H_INCLUDES) {$(VPATH)}debug.h {$(VPATH)}node.h marshal.$(OBJEXT): {$(VPATH)}marshal.c $(RUBY_H_INCLUDES) \ {$(VPATH)}io.h $(ENCODING_H_INCLUDES) {$(VPATH)}util.h math.$(OBJEXT): {$(VPATH)}math.c $(RUBY_H_INCLUDES) diff --git a/debug.h b/debug.h index 5c4b19a78b..107ece9ec4 100644 --- a/debug.h +++ b/debug.h @@ -29,4 +29,8 @@ int ruby_debug_print_indent(int level, int debug_level, int indent_level); void ruby_debug_breakpoint(void); void ruby_debug_gc_check_func(void); +#ifdef RUBY_DEBUG_ENV +void ruby_set_debug_option(const char *str); +#endif + #endif /* RUBY_DEBUG_H */ diff --git a/main.c b/main.c index e89f987cc0..a782939ff3 100644 --- a/main.c +++ b/main.c @@ -11,6 +11,7 @@ #undef RUBY_EXPORT #include "ruby.h" +#include "debug.h" #ifdef HAVE_LOCALE_H #include #endif