summaryrefslogtreecommitdiffhomepage
path: root/mrbgems
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2021-07-24 19:03:32 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2021-07-25 13:07:10 +0900
commit5c804cf68f2b7e80780d3d812efb70ef9e376c08 (patch)
treea2a135237c605849eda427e267e71770a09df330 /mrbgems
parent1f90a397994376451e1efd2055c25a240832d5a1 (diff)
downloadmruby-5c804cf68f2b7e80780d3d812efb70ef9e376c08.tar.gz
mruby-5c804cf68f2b7e80780d3d812efb70ef9e376c08.zip
Remove redundant include headers.
- stdlib.h - stddef.h - stdint.h - stdarg.h - limits.h - float.h
Diffstat (limited to 'mrbgems')
-rw-r--r--mrbgems/mruby-bin-debugger/tools/mrdb/apilist.c1
-rw-r--r--mrbgems/mruby-compiler/core/codegen.c1
-rw-r--r--mrbgems/mruby-io/src/file.c1
-rw-r--r--mrbgems/mruby-math/src/math.c2
-rw-r--r--mrbgems/mruby-numeric-ext/src/numeric_ext.c1
-rw-r--r--mrbgems/mruby-print/src/print.c1
-rw-r--r--mrbgems/mruby-random/src/random.c2
-rw-r--r--mrbgems/mruby-socket/src/socket.c1
-rw-r--r--mrbgems/mruby-sprintf/src/sprintf.c1
-rw-r--r--mrbgems/mruby-time/src/time.c1
10 files changed, 1 insertions, 11 deletions
diff --git a/mrbgems/mruby-bin-debugger/tools/mrdb/apilist.c b/mrbgems/mruby-bin-debugger/tools/mrdb/apilist.c
index 368ececcf..27db02b48 100644
--- a/mrbgems/mruby-bin-debugger/tools/mrdb/apilist.c
+++ b/mrbgems/mruby-bin-debugger/tools/mrdb/apilist.c
@@ -3,7 +3,6 @@
*/
#include <ctype.h>
-#include <stdlib.h>
#include <string.h>
#include "mrdb.h"
diff --git a/mrbgems/mruby-compiler/core/codegen.c b/mrbgems/mruby-compiler/core/codegen.c
index c0d39dcb7..026745e39 100644
--- a/mrbgems/mruby-compiler/core/codegen.c
+++ b/mrbgems/mruby-compiler/core/codegen.c
@@ -5,7 +5,6 @@
*/
#include <ctype.h>
-#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <mruby.h>
diff --git a/mrbgems/mruby-io/src/file.c b/mrbgems/mruby-io/src/file.c
index b9e1eca03..6c62db662 100644
--- a/mrbgems/mruby-io/src/file.c
+++ b/mrbgems/mruby-io/src/file.c
@@ -14,7 +14,6 @@
#include <sys/stat.h>
#include <fcntl.h>
-#include <limits.h>
#include <errno.h>
#include <stdlib.h>
diff --git a/mrbgems/mruby-math/src/math.c b/mrbgems/mruby-math/src/math.c
index 0b85b1763..8eccc03e5 100644
--- a/mrbgems/mruby-math/src/math.c
+++ b/mrbgems/mruby-math/src/math.c
@@ -25,8 +25,6 @@ domain_error(mrb_state *mrb, const char *func)
/* math functions not provided by Microsoft Visual C++ 2012 or older */
#if defined _MSC_VER && _MSC_VER <= 1700
-#include <float.h>
-
double
asinh(double x)
{
diff --git a/mrbgems/mruby-numeric-ext/src/numeric_ext.c b/mrbgems/mruby-numeric-ext/src/numeric_ext.c
index 00b13174f..b85f9b163 100644
--- a/mrbgems/mruby-numeric-ext/src/numeric_ext.c
+++ b/mrbgems/mruby-numeric-ext/src/numeric_ext.c
@@ -1,4 +1,3 @@
-#include <limits.h>
#include <mruby.h>
#include <mruby/numeric.h>
#include <mruby/presym.h>
diff --git a/mrbgems/mruby-print/src/print.c b/mrbgems/mruby-print/src/print.c
index c98bfb7bf..789808deb 100644
--- a/mrbgems/mruby-print/src/print.c
+++ b/mrbgems/mruby-print/src/print.c
@@ -6,7 +6,6 @@
#include <mruby/string.h>
#include <string.h>
-#include <stdlib.h>
#if defined(_WIN32)
# include <windows.h>
# include <io.h>
diff --git a/mrbgems/mruby-random/src/random.c b/mrbgems/mruby-random/src/random.c
index 9712fbd7e..a1f44f105 100644
--- a/mrbgems/mruby-random/src/random.c
+++ b/mrbgems/mruby-random/src/random.c
@@ -22,8 +22,6 @@ worldwide. This software is distributed without any warranty.
See <https://creativecommons.org/publicdomain/zero/1.0/>. */
-#include <stdint.h>
-
/* This is xoshiro128++ 1.0, one of our 32-bit all-purpose, rock-solid
generators. It has excellent speed, a state size (128 bits) that is
large enough for mild parallelism, and it passes all tests we are aware
diff --git a/mrbgems/mruby-socket/src/socket.c b/mrbgems/mruby-socket/src/socket.c
index c7de66d41..a7a06e6ef 100644
--- a/mrbgems/mruby-socket/src/socket.c
+++ b/mrbgems/mruby-socket/src/socket.c
@@ -31,7 +31,6 @@
typedef size_t fsize_t;
#endif
-#include <stddef.h>
#include <string.h>
#include "mruby.h"
diff --git a/mrbgems/mruby-sprintf/src/sprintf.c b/mrbgems/mruby-sprintf/src/sprintf.c
index ea9d74d95..362d24651 100644
--- a/mrbgems/mruby-sprintf/src/sprintf.c
+++ b/mrbgems/mruby-sprintf/src/sprintf.c
@@ -5,7 +5,6 @@
*/
#include <mruby.h>
-#include <limits.h>
#include <string.h>
#include <mruby/string.h>
#include <mruby/hash.h>
diff --git a/mrbgems/mruby-time/src/time.c b/mrbgems/mruby-time/src/time.c
index 299d4d7e1..ce822b1f4 100644
--- a/mrbgems/mruby-time/src/time.c
+++ b/mrbgems/mruby-time/src/time.c
@@ -20,6 +20,7 @@
#include <string.h>
#endif
+
#include <stdlib.h>
#ifndef _WIN32
#include <unistd.h>