diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-02-27 07:23:23 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-02-27 07:23:23 +0000 |
commit | 689df4ae2a8ee6606c13ac9173ffce85aa1b06b7 (patch) | |
tree | 6e4f10ae8ce2c51845ca05c30ea6a800f7f42792 /compile.c | |
parent | 52d810e2f07429a21c3d306a0d77fc4db2e46d22 (diff) | |
download | ruby-689df4ae2a8ee6606c13ac9173ffce85aa1b06b7.tar.gz |
compile.c: debug prints to stderr
* compile.c: send all debug prints to stderr, as ruby_debug_printf
does.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49771 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'compile.c')
-rw-r--r-- | compile.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -156,6 +156,7 @@ r_value(VALUE value) #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 *anchor) if (compile_debug > 1) { VALUE str = rb_iseq_disasm(iseq->self); printf("%s\n", StringValueCStr(str)); - fflush(stdout); } debugs("[compile step: finish]\n"); |