From 4440566b9522ae5ff6b2bce7b3d8ecd232304eea Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Tue, 17 Nov 2015 05:21:14 +0900 Subject: DISABLE_STDIO/ENABLE_DEBUG macros to rename; close #3014 changes: * rename DISABLE_STDIO -> MRB_DISABLE_STDIO * rename ENABLE_DEBUG -> MRB_ENABLE_DEBUG_HOOK * no more opposite macro definitions (e.g. ENABLE_STDIO, DISABLE_DEBUG). * rewrite above macro references throughout the code. * update documents --- doc/guides/compile.md | 2 +- doc/guides/mrbconf.md | 11 ++--------- 2 files changed, 3 insertions(+), 10 deletions(-) (limited to 'doc') diff --git a/doc/guides/compile.md b/doc/guides/compile.md index 16df2b804..a1c89882a 100644 --- a/doc/guides/compile.md +++ b/doc/guides/compile.md @@ -463,7 +463,7 @@ can't be disabled for the main build. MRuby::CrossBuild.new('Minimal') do |conf| toolchain :gcc - conf.cc.defines = %w(DISABLE_STDIO) + conf.cc.defines = %w(MRB_DISABLE_STDIO) conf.bins = [] end ``` diff --git a/doc/guides/mrbconf.md b/doc/guides/mrbconf.md index dfff41898..8a5ea4d87 100644 --- a/doc/guides/mrbconf.md +++ b/doc/guides/mrbconf.md @@ -11,11 +11,7 @@ You can use mrbconfs with following ways: changes `struct` layout and cause memory access error when C and other language(e.g., C++) is mixed. ## stdio setting. -`ENABLE_STDIO` -* Will be defined automatically if `DISABLE_STDIO` isn't defined. -* Uses `` functions. - -`DISABLE_STDIO` +`MRB_DISABLE_STDIO` * When defined `` functions won't be used. * Some features will be disabled when this is enabled: * `mrb_irep` load/dump from/to file. @@ -23,15 +19,12 @@ You can use mrbconfs with following ways: * Printing features in **src/print.c**. ## Debug macros. -`ENABLE_DEBUG` +`MRB_ENABLE_DEBUG_HOOK` * When defined code fetch hook and debug OP hook will be enabled. * When using any of the hook set function pointer `code_fetch_hook` and/or `debug_op_hook` of `mrb_state`. * Fetch hook will be called before any OP. * Debug OP hook will be called when dispatching `OP_DEBUG`. -`DISABLE_DEBUG` -* Will be define automatically if `ENABLE_DEBUG` isn't defined. - `MRB_DEBUG` * When defined `mrb_assert*` macro will be defined with macros from ``. * Could be enabled via `enable_debug` method of `MRuby::Build`. -- cgit v1.2.3