Remove redundant include headers.

- stdlib.h
- stddef.h
- stdint.h
- stdarg.h
- limits.h
- float.h
This commit is contained in:
Yukihiro "Matz" Matsumoto
2021-07-24 19:03:32 +09:00
parent 1f90a39799
commit 5c804cf68f
24 changed files with 12 additions and 43 deletions
-1
View File
@@ -4,7 +4,6 @@
** See Copyright Notice in mruby.h
*/
#include <stdarg.h>
#include <mruby.h>
#include <mruby/array.h>
#include <mruby/hash.h>
-1
View File
@@ -5,7 +5,6 @@
*/
#include <string.h>
#include <limits.h>
#include <math.h>
#include <mruby/dump.h>
#include <mruby/string.h>
-1
View File
@@ -5,7 +5,6 @@
*/
#include <errno.h>
#include <stdarg.h>
#include <stdlib.h>
#include <mruby.h>
#include <mruby/array.h>
-1
View File
@@ -1,6 +1,5 @@
#include <mruby.h>
#include <string.h>
#include <stdlib.h>
#ifndef MRB_NO_FLOAT
/***********************************************************************
+4 -1
View File
@@ -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
-2
View File
@@ -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>
-3
View File
@@ -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>
-1
View File
@@ -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
View File
@@ -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;
-1
View File
@@ -4,7 +4,6 @@
** See Copyright Notice in mruby.h
*/
#include <limits.h>
#include <string.h>
#include <mruby.h>
#include <mruby/khash.h>
+3 -5
View File
@@ -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)