mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Remove unnecessary header inclusion
This commit is contained in:
@@ -12,7 +12,6 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
typedef uint32_t khint_t;
|
||||
|
||||
@@ -10,7 +10,6 @@
|
||||
|
||||
#include "mruby/irep.h"
|
||||
#include "mruby/string.h"
|
||||
#include "re.h"
|
||||
|
||||
#define MRB_CDUMP_LINE_LEN 128
|
||||
|
||||
|
||||
@@ -10,15 +10,12 @@
|
||||
#include "mruby.h"
|
||||
#include "mruby/string.h"
|
||||
#include "mruby/irep.h"
|
||||
#include "mruby/proc.h"
|
||||
#include "mruby/compile.h"
|
||||
#include "mruby/numeric.h"
|
||||
#include "opcode.h"
|
||||
#include "node.h"
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <errno.h>
|
||||
#include <limits.h>
|
||||
#include <ctype.h>
|
||||
|
||||
typedef mrb_ast_node node;
|
||||
|
||||
@@ -6,14 +6,9 @@
|
||||
|
||||
#include "mruby.h"
|
||||
#include <stdarg.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include <setjmp.h>
|
||||
#include "error.h"
|
||||
#include "opcode.h"
|
||||
#include "mruby/irep.h"
|
||||
#include "mruby/proc.h"
|
||||
#include "mruby/numeric.h"
|
||||
#include "mruby/variable.h"
|
||||
#include "mruby/string.h"
|
||||
#include "mruby/class.h"
|
||||
|
||||
@@ -11,12 +11,10 @@
|
||||
#include "mruby/string.h"
|
||||
#include "mruby/hash.h"
|
||||
#include "mruby/range.h"
|
||||
#include "mruby/khash.h"
|
||||
#include <string.h>
|
||||
#include "mruby/struct.h"
|
||||
#include "mruby/proc.h"
|
||||
#include "mruby/data.h"
|
||||
#include "mruby/numeric.h"
|
||||
#include "mruby/variable.h"
|
||||
|
||||
/*
|
||||
@@ -101,6 +99,7 @@ typedef struct {
|
||||
} RVALUE;
|
||||
|
||||
#ifdef GC_PROFILE
|
||||
#include <stdio.h>
|
||||
#include <sys/time.h>
|
||||
|
||||
static double program_invoke_time = 0;
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
#include "mruby/array.h"
|
||||
#include "mruby/string.h"
|
||||
#include "mruby/variable.h"
|
||||
#include <string.h>
|
||||
|
||||
static inline khint_t
|
||||
mrb_hash_ht_hash_func(mrb_state *mrb, mrb_value key)
|
||||
|
||||
@@ -6,14 +6,9 @@
|
||||
|
||||
#include "mruby.h"
|
||||
#include "mruby/string.h"
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include "mruby/proc.h"
|
||||
#include "mruby/range.h"
|
||||
#include "mruby/array.h"
|
||||
#include "mruby/hash.h"
|
||||
#include "mruby/class.h"
|
||||
#include "mruby/struct.h"
|
||||
#include "mruby/variable.h"
|
||||
#include "error.h"
|
||||
|
||||
|
||||
@@ -8,11 +8,7 @@
|
||||
#include "mruby/numeric.h"
|
||||
#include "mruby/string.h"
|
||||
#include "mruby/array.h"
|
||||
#include <string.h>
|
||||
#include "mruby/class.h"
|
||||
#include "mruby/variable.h"
|
||||
|
||||
#include <ctype.h>
|
||||
#include <math.h>
|
||||
#include <stdio.h>
|
||||
#include <assert.h>
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
|
||||
#include "mruby.h"
|
||||
#include "mruby/proc.h"
|
||||
#include "mruby/array.h"
|
||||
#include "mruby/class.h"
|
||||
#include "opcode.h"
|
||||
|
||||
|
||||
@@ -7,9 +7,6 @@
|
||||
#include "mruby.h"
|
||||
#include "mruby/class.h"
|
||||
#include "mruby/range.h"
|
||||
#include "mruby/variable.h"
|
||||
#include "error.h"
|
||||
#include "mruby/numeric.h"
|
||||
#include "mruby/string.h"
|
||||
#include <string.h>
|
||||
|
||||
|
||||
@@ -15,7 +15,6 @@
|
||||
#include "mruby/hash.h"
|
||||
#include "mruby/numeric.h"
|
||||
#include <math.h>
|
||||
#include <stdarg.h>
|
||||
#include <ctype.h>
|
||||
|
||||
#ifdef HAVE_IEEEFP_H
|
||||
|
||||
+1
-2
@@ -10,11 +10,10 @@
|
||||
#include <string.h>
|
||||
#include "mruby/string.h"
|
||||
#include <ctype.h>
|
||||
#include "mruby/numeric.h"
|
||||
#include <limits.h>
|
||||
#include "mruby/range.h"
|
||||
#include "mruby/array.h"
|
||||
#include "mruby/class.h"
|
||||
#include "mruby/variable.h"
|
||||
#include <stdio.h>
|
||||
#ifdef ENABLE_REGEXP
|
||||
#include "re.h"
|
||||
|
||||
@@ -17,13 +17,9 @@
|
||||
#include "encoding.h"
|
||||
#endif
|
||||
|
||||
#include "mruby/numeric.h"
|
||||
#include "mruby/hash.h"
|
||||
#include "mruby/string.h"
|
||||
#include "mruby/class.h"
|
||||
#include "mruby/variable.h"
|
||||
#include "mruby/range.h"
|
||||
#include "error.h"
|
||||
//#include "defines.h"
|
||||
#define mrb_long2int(n) ((int)(n))
|
||||
|
||||
|
||||
@@ -8,12 +8,8 @@
|
||||
#include "mruby/khash.h"
|
||||
#include <string.h>
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <string.h>
|
||||
#include "mruby/string.h"
|
||||
#include <ctype.h>
|
||||
#include "mruby/class.h"
|
||||
#include "mruby/variable.h"
|
||||
|
||||
/* ------------------------------------------------------ */
|
||||
typedef struct symbol_name {
|
||||
|
||||
@@ -8,8 +8,6 @@
|
||||
#include "mruby/class.h"
|
||||
#include "mruby/khash.h"
|
||||
#include "mruby/variable.h"
|
||||
#include "mruby/string.h"
|
||||
#include "mruby/range.h"
|
||||
#include "error.h"
|
||||
#include "mruby/array.h"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user