From 764a791f439bb843838239909d98b26ac90a9e02 Mon Sep 17 00:00:00 2001 From: Yukihiro Matsumoto Date: Thu, 14 Jun 2012 00:59:35 +0900 Subject: make Math module optional --- include/mrbconf.h | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'include') diff --git a/include/mrbconf.h b/include/mrbconf.h index 5848eee1a..3744c1827 100644 --- a/include/mrbconf.h +++ b/include/mrbconf.h @@ -20,21 +20,24 @@ typedef double mrb_float; typedef int mrb_int; typedef intptr_t mrb_sym; -#undef PARSER_DUMP /* do not print out parser state */ //#define PARSER_DUMP /* print out parser state */ +#undef PARSER_DUMP /* do not print out parser state */ -#undef INCLUDE_ENCODING /* not use encoding classes (ascii only) */ //#define INCLUDE_ENCODING /* use UTF-8 encoding classes */ +#undef INCLUDE_ENCODING /* not use encoding classes (ascii only) */ -#undef INCLUDE_REGEXP /* not use regular expression classes */ //#define INCLUDE_REGEXP /* use regular expression classes */ +#undef INCLUDE_REGEXP /* not use regular expression classes */ #ifdef INCLUDE_REGEXP # define INCLUDE_ENCODING /* Regexp depends Encoding */ #endif -//#undef INCLUDE_KERNEL_SPRINTF /* not use Kernel.sprintf method. */ -#define INCLUDE_KERNEL_SPRINTF /* not use Kernel.sprintf method. */ +#define INCLUDE_KERNEL_SPRINTF /* not use Kernel.sprintf method */ +//#undef INCLUDE_KERNEL_SPRINTF /* not use Kernel.sprintf method */ + +#define INCLUDE_MATH /* use (non ISO) Math module */ +//#undef INCLUDE_MATH /* not use (non ISO) Math module */ #ifdef MRUBY_DEBUG_BUILD # define PARSER_DUMP -- cgit v1.2.3