diff options
| author | Masaki Muranaka <[email protected]> | 2013-03-16 21:26:06 +0900 |
|---|---|---|
| committer | Masaki Muranaka <[email protected]> | 2013-03-16 21:29:39 +0900 |
| commit | 3aa3b4af90f9b5ccc24cb29550e470fc2733c6e0 (patch) | |
| tree | f436d7877509049c2edb1daea4b57af6f3a793d8 /src | |
| parent | 6ba298ed54e647579d8b802784c314ecc32acb2c (diff) | |
| download | mruby-3aa3b4af90f9b5ccc24cb29550e470fc2733c6e0.tar.gz mruby-3aa3b4af90f9b5ccc24cb29550e470fc2733c6e0.zip | |
Remove stdlib.h from mruby.h. It is for portability (care for freestanding environments).
This is a first step. It will be reduced stdlib.h in each files later.
Diffstat (limited to 'src')
| -rw-r--r-- | src/error.c | 1 | ||||
| -rw-r--r-- | src/load.c | 1 | ||||
| -rw-r--r-- | src/numeric.c | 1 | ||||
| -rw-r--r-- | src/parse.y | 1 | ||||
| -rw-r--r-- | src/state.c | 1 | ||||
| -rw-r--r-- | src/string.c | 1 |
6 files changed, 6 insertions, 0 deletions
diff --git a/src/error.c b/src/error.c index 488ab6cef..ddf92382b 100644 --- a/src/error.c +++ b/src/error.c @@ -7,6 +7,7 @@ #include "mruby.h" #include <errno.h> #include <stdarg.h> +#include <stdlib.h> #include <setjmp.h> #include <string.h> #include "error.h" diff --git a/src/load.c b/src/load.c index 9b5d015ed..fcffcd9de 100644 --- a/src/load.c +++ b/src/load.c @@ -4,6 +4,7 @@ ** See Copyright Notice in mruby.h */ +#include <stdlib.h> #include <string.h> #include "mruby/dump.h" diff --git a/src/numeric.c b/src/numeric.c index 61b9a2f73..5560bbc7f 100644 --- a/src/numeric.c +++ b/src/numeric.c @@ -11,6 +11,7 @@ #include <math.h> #include <assert.h> +#include <stdlib.h> #if defined(__FreeBSD__) && __FreeBSD__ < 4 #include <floatingpoint.h> diff --git a/src/parse.y b/src/parse.y index 90e38e0be..931128873 100644 --- a/src/parse.y +++ b/src/parse.y @@ -25,6 +25,7 @@ #include <errno.h> #include <ctype.h> #include <string.h> +#include <stdlib.h> #define YYLEX_PARAM p diff --git a/src/state.c b/src/state.c index b9523b400..ba7699f8a 100644 --- a/src/state.c +++ b/src/state.c @@ -7,6 +7,7 @@ #include "mruby.h" #include "mruby/irep.h" #include "mruby/variable.h" +#include <stdlib.h> #include <string.h> void mrb_init_heap(mrb_state*); diff --git a/src/string.c b/src/string.c index 26acfdcb4..32daaa3b5 100644 --- a/src/string.c +++ b/src/string.c @@ -7,6 +7,7 @@ #include "mruby.h" #include <stddef.h> +#include <stdlib.h> #include <string.h> #include "mruby/string.h" #include "mruby/class.h" |
