mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Remove redundant include headers.
- stdlib.h - stddef.h - stdint.h - stdarg.h - limits.h - float.h
This commit is contained in:
@@ -4,7 +4,6 @@
|
||||
** See Copyright Notice in mruby.h
|
||||
*/
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <mruby.h>
|
||||
#include <mruby/array.h>
|
||||
#include <mruby/hash.h>
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
#include <limits.h>
|
||||
#include <math.h>
|
||||
#include <mruby/dump.h>
|
||||
#include <mruby/string.h>
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
*/
|
||||
|
||||
#include <errno.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdlib.h>
|
||||
#include <mruby.h>
|
||||
#include <mruby/array.h>
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
#include <mruby.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#ifndef MRB_NO_FLOAT
|
||||
/***********************************************************************
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#ifdef MRB_USE_MALLOC_TRIM
|
||||
#include <malloc.h>
|
||||
#endif
|
||||
@@ -24,6 +23,10 @@
|
||||
#include <mruby/throw.h>
|
||||
#include <mruby/presym.h>
|
||||
|
||||
#ifdef MRB_GC_STRESS
|
||||
#include <stdlib.h>
|
||||
#endif
|
||||
|
||||
/*
|
||||
= Tri-color Incremental Garbage Collection
|
||||
|
||||
|
||||
@@ -4,8 +4,6 @@
|
||||
** See Copyright Notice in mruby.h
|
||||
*/
|
||||
|
||||
#include <limits.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <math.h>
|
||||
#include <mruby/dump.h>
|
||||
|
||||
@@ -5,11 +5,8 @@
|
||||
*/
|
||||
|
||||
#ifndef MRB_NO_FLOAT
|
||||
#include <float.h>
|
||||
#include <math.h>
|
||||
#endif
|
||||
#include <limits.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <mruby.h>
|
||||
|
||||
@@ -20,7 +20,6 @@ My modifications in this file are also placed in the public domain.
|
||||
Matz (Yukihiro Matsumoto)
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <math.h>
|
||||
#include <errno.h>
|
||||
|
||||
+4
-8
@@ -8,14 +8,6 @@
|
||||
# define _CRT_NONSTDC_NO_DEPRECATE
|
||||
#endif
|
||||
|
||||
#ifndef MRB_NO_FLOAT
|
||||
#include <float.h>
|
||||
#include <math.h>
|
||||
#endif
|
||||
#include <limits.h>
|
||||
#include <stddef.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <mruby.h>
|
||||
#include <mruby/array.h>
|
||||
#include <mruby/class.h>
|
||||
@@ -23,6 +15,10 @@
|
||||
#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 {
|
||||
int refcnt;
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
** See Copyright Notice in mruby.h
|
||||
*/
|
||||
|
||||
#include <limits.h>
|
||||
#include <string.h>
|
||||
#include <mruby.h>
|
||||
#include <mruby/khash.h>
|
||||
|
||||
@@ -4,11 +4,6 @@
|
||||
** See Copyright Notice in mruby.h
|
||||
*/
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdarg.h>
|
||||
#ifndef MRB_NO_FLOAT
|
||||
#include <math.h>
|
||||
#endif
|
||||
#include <mruby.h>
|
||||
#include <mruby/array.h>
|
||||
#include <mruby/class.h>
|
||||
@@ -25,6 +20,9 @@
|
||||
#include <mruby/throw.h>
|
||||
#include <mruby/dump.h>
|
||||
#include <mruby/presym.h>
|
||||
#ifndef MRB_NO_FLOAT
|
||||
#include <math.h>
|
||||
#endif
|
||||
|
||||
#ifdef MRB_NO_STDIO
|
||||
#if defined(__cplusplus)
|
||||
|
||||
Reference in New Issue
Block a user