Commit 5a025813 authored by Masaki Muranaka's avatar Masaki Muranaka

Include stdio.h in mrbconf.h instead of C extension sources.

parent ec70b2ab
...@@ -110,4 +110,8 @@ typedef short mrb_sym; ...@@ -110,4 +110,8 @@ typedef short mrb_sym;
# include <inttypes.h> # include <inttypes.h>
#endif #endif
#ifdef ENABLE_STDIO
# include <stdio.h>
#endif
#endif /* MRUBYCONF_H */ #endif /* MRUBYCONF_H */
...@@ -6,7 +6,6 @@ ...@@ -6,7 +6,6 @@
#include "mruby.h" #include "mruby.h"
#include <stdarg.h> #include <stdarg.h>
#include <stdio.h>
#include <ctype.h> #include <ctype.h>
#include "mruby/class.h" #include "mruby/class.h"
#include "mruby/proc.h" #include "mruby/proc.h"
......
...@@ -6,7 +6,6 @@ ...@@ -6,7 +6,6 @@
#include "mruby.h" #include "mruby.h"
#include <stdarg.h> #include <stdarg.h>
#include <stdio.h>
#include <setjmp.h> #include <setjmp.h>
#include <string.h> #include <string.h>
#include "error.h" #include "error.h"
......
...@@ -10,7 +10,6 @@ ...@@ -10,7 +10,6 @@
#include "mruby/array.h" #include "mruby/array.h"
#include <math.h> #include <math.h>
#include <stdio.h>
#include <assert.h> #include <assert.h>
#if defined(__FreeBSD__) && __FreeBSD__ < 4 #if defined(__FreeBSD__) && __FreeBSD__ < 4
......
...@@ -7,7 +7,6 @@ ...@@ -7,7 +7,6 @@
#include "mruby.h" #include "mruby.h"
#include <string.h> #include <string.h>
#include "mruby/string.h" #include "mruby/string.h"
#include <stdio.h>
#include "mruby/class.h" #include "mruby/class.h"
#include "mruby/numeric.h" #include "mruby/numeric.h"
#include "error.h" #include "error.h"
......
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
#include "mruby/proc.h" #include "mruby/proc.h"
#include "node.h" #include "node.h"
#include <stdio.h>
#include <errno.h> #include <errno.h>
#include <ctype.h> #include <ctype.h>
#include <string.h> #include <string.h>
......
...@@ -7,7 +7,6 @@ ...@@ -7,7 +7,6 @@
#include "mruby.h" #include "mruby.h"
#ifdef ENABLE_STDIO #ifdef ENABLE_STDIO
#include "mruby/string.h" #include "mruby/string.h"
#include <stdio.h>
static void static void
printstr(mrb_state *mrb, mrb_value obj) printstr(mrb_state *mrb, mrb_value obj)
......
...@@ -15,7 +15,6 @@ ...@@ -15,7 +15,6 @@
#include "mruby/array.h" #include "mruby/array.h"
#include "mruby/class.h" #include "mruby/class.h"
#include "mruby/numeric.h" #include "mruby/numeric.h"
#include <stdio.h>
#include "re.h" #include "re.h"
const char mrb_digitmap[] = "0123456789abcdefghijklmnopqrstuvwxyz"; const char mrb_digitmap[] = "0123456789abcdefghijklmnopqrstuvwxyz";
......
...@@ -17,7 +17,6 @@ ...@@ -17,7 +17,6 @@
#include "mruby/numeric.h" #include "mruby/numeric.h"
#include "error.h" #include "error.h"
#include <stdio.h>
#include <string.h> #include <string.h>
#include <setjmp.h> #include <setjmp.h>
#include <stddef.h> #include <stddef.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment