ruby-changes:37690
From: nobu <ko1@a...>
Date: Fri, 27 Feb 2015 16:23:36 +0900 (JST)
Subject: [ruby-changes:37690] nobu:r49771 (trunk): compile.c: debug prints to stderr
nobu 2015-02-27 16:23:23 +0900 (Fri, 27 Feb 2015) New Revision: 49771 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=49771 Log: compile.c: debug prints to stderr * compile.c: send all debug prints to stderr, as ruby_debug_printf does. Modified files: trunk/compile.c Index: compile.c =================================================================== --- compile.c (revision 49770) +++ compile.c (revision 49771) @@ -156,6 +156,7 @@ r_value(VALUE value) https://github.com/ruby/ruby/blob/trunk/compile.c#L156 #endif #if CPDEBUG > 1 || CPDEBUG < 0 +#define printf ruby_debug_printf #define debugs if (compile_debug_print_indent(1)) ruby_debug_printf #define debug_compile(msg, v) ((void)(compile_debug_print_indent(1) && fputs((msg), stderr)), (v)) #else @@ -1045,7 +1046,6 @@ iseq_setup(rb_iseq_t *iseq, LINK_ANCHOR https://github.com/ruby/ruby/blob/trunk/compile.c#L1046 if (compile_debug > 1) { VALUE str = rb_iseq_disasm(iseq->self); printf("%s\n", StringValueCStr(str)); - fflush(stdout); } debugs("[compile step: finish]\n"); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/