mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Merge pull request #5537 from dearblue/header-files
Organize the include of header files
This commit is contained in:
@@ -99,6 +99,7 @@
|
||||
#include <mruby/version.h>
|
||||
|
||||
#ifndef MRB_NO_FLOAT
|
||||
#include <math.h>
|
||||
#include <float.h>
|
||||
#ifndef FLT_EPSILON
|
||||
#define FLT_EPSILON (1.19209290e-07f)
|
||||
|
||||
@@ -15,7 +15,6 @@
|
||||
# error CMath conflicts with 'MRB_NO_FLOAT' configuration
|
||||
#endif
|
||||
|
||||
#include <math.h>
|
||||
#include <complex.h>
|
||||
|
||||
mrb_value mrb_complex_new(mrb_state *mrb, mrb_float real, mrb_float imag);
|
||||
|
||||
@@ -4,9 +4,6 @@
|
||||
** See Copyright Notice in mruby.h
|
||||
*/
|
||||
|
||||
#include <ctype.h>
|
||||
#include <string.h>
|
||||
#include <math.h>
|
||||
#include <mruby.h>
|
||||
#include <mruby/compile.h>
|
||||
#include <mruby/proc.h>
|
||||
@@ -19,6 +16,8 @@
|
||||
#include <mruby/opcode.h>
|
||||
#include <mruby/re.h>
|
||||
#include <mruby/throw.h>
|
||||
#include <ctype.h>
|
||||
#include <string.h>
|
||||
|
||||
#ifndef MRB_CODEGEN_LEVEL_MAX
|
||||
#define MRB_CODEGEN_LEVEL_MAX 1024
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
#include <mruby/class.h>
|
||||
#include <mruby/numeric.h>
|
||||
#include <mruby/presym.h>
|
||||
#include <math.h>
|
||||
|
||||
#ifdef MRB_NO_FLOAT
|
||||
# error Complex conflicts with 'MRB_NO_FLOAT' configuration
|
||||
|
||||
@@ -12,7 +12,6 @@
|
||||
|
||||
#include <mruby/array.h>
|
||||
#include <mruby/presym.h>
|
||||
#include <math.h>
|
||||
|
||||
static void
|
||||
domain_error(mrb_state *mrb, const char *func)
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
#include <mruby.h>
|
||||
#include <mruby/numeric.h>
|
||||
#include <mruby/presym.h>
|
||||
#include <math.h>
|
||||
|
||||
/*
|
||||
* call-seq:
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
#include <mruby.h>
|
||||
#include <mruby/range.h>
|
||||
#include <math.h>
|
||||
|
||||
static mrb_bool
|
||||
r_le(mrb_state *mrb, mrb_value a, mrb_value b)
|
||||
|
||||
@@ -155,7 +155,6 @@ rational_new_i(mrb_state *mrb, mrb_int n, mrb_int d)
|
||||
}
|
||||
|
||||
#ifndef MRB_NO_FLOAT
|
||||
#include <math.h>
|
||||
|
||||
#if defined(MRB_INT32) || defined(MRB_USE_FLOAT32)
|
||||
#define frexp_rat(x,exp) frexpf((float)x, exp)
|
||||
|
||||
@@ -5,14 +5,11 @@
|
||||
*/
|
||||
|
||||
#include <mruby.h>
|
||||
#include <string.h>
|
||||
#include <mruby/string.h>
|
||||
#include <mruby/hash.h>
|
||||
#include <mruby/numeric.h>
|
||||
#include <mruby/presym.h>
|
||||
#ifndef MRB_NO_FLOAT
|
||||
#include <math.h>
|
||||
#endif
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
|
||||
#define BIT_DIGITS(N) (((N)*146)/485 + 1) /* log2(10) =~ 146/485 */
|
||||
|
||||
@@ -4,10 +4,6 @@
|
||||
** See Copyright Notice in mruby.h
|
||||
*/
|
||||
|
||||
#ifndef MRB_NO_FLOAT
|
||||
#include <math.h>
|
||||
#endif
|
||||
|
||||
#include <mruby.h>
|
||||
#include <mruby/class.h>
|
||||
#include <mruby/data.h>
|
||||
|
||||
+2
-2
@@ -4,12 +4,12 @@
|
||||
** See Copyright Notice in mruby.h
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
#include <math.h>
|
||||
#include <mruby.h>
|
||||
#include <mruby/dump.h>
|
||||
#include <mruby/string.h>
|
||||
#include <mruby/irep.h>
|
||||
#include <mruby/debug.h>
|
||||
#include <string.h>
|
||||
|
||||
#ifndef MRB_NO_FLOAT
|
||||
#include <mruby/endian.h>
|
||||
|
||||
+2
-2
@@ -4,8 +4,7 @@
|
||||
** See Copyright Notice in mruby.h
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
#include <math.h>
|
||||
#include <mruby.h>
|
||||
#include <mruby/dump.h>
|
||||
#include <mruby/irep.h>
|
||||
#include <mruby/proc.h>
|
||||
@@ -14,6 +13,7 @@
|
||||
#include <mruby/error.h>
|
||||
#include <mruby/data.h>
|
||||
#include <mruby/endian.h>
|
||||
#include <string.h>
|
||||
|
||||
#if SIZE_MAX < UINT32_MAX
|
||||
# error size_t must be at least 32 bits wide
|
||||
|
||||
+1
-5
@@ -4,17 +4,13 @@
|
||||
** See Copyright Notice in mruby.h
|
||||
*/
|
||||
|
||||
#ifndef MRB_NO_FLOAT
|
||||
#include <math.h>
|
||||
#endif
|
||||
#include <string.h>
|
||||
|
||||
#include <mruby.h>
|
||||
#include <mruby/array.h>
|
||||
#include <mruby/numeric.h>
|
||||
#include <mruby/string.h>
|
||||
#include <mruby/class.h>
|
||||
#include <mruby/presym.h>
|
||||
#include <string.h>
|
||||
|
||||
#ifndef MRB_NO_FLOAT
|
||||
#ifdef MRB_USE_FLOAT32
|
||||
|
||||
@@ -15,9 +15,6 @@
|
||||
#include <mruby/string.h>
|
||||
#include <mruby/numeric.h>
|
||||
#include <mruby/presym.h>
|
||||
#ifndef MRB_NO_FLOAT
|
||||
#include <math.h>
|
||||
#endif
|
||||
#include <string.h>
|
||||
|
||||
typedef struct mrb_shared_string {
|
||||
|
||||
Reference in New Issue
Block a user