Permalink
Browse files

move header files {irep,dump,cdump,ritehash}.h to /include/mruby

  • Loading branch information...
1 parent 2970b6a commit 8b367098ac493cc458f731cc780070ffb103f2f4 @matz matz committed Apr 24, 2012
View
0 src/cdump.h → include/mruby/cdump.h
File renamed without changes.
View
0 src/dump.h → include/mruby/dump.h
File renamed without changes.
View
0 src/irep.h → include/mruby/irep.h
File renamed without changes.
View
0 src/ritehash.h → include/mruby/khash.h
File renamed without changes.
View
4 mrblib/init_mrblib.c
@@ -1,6 +1,6 @@
#include "mruby.h"
-#include "irep.h"
-#include "dump.h"
+#include "mruby/irep.h"
+#include "mruby/dump.h"
#include "mruby/string.h"
#include "mruby/proc.h"
View
6 src/cdump.c
@@ -4,11 +4,11 @@
** See Copyright Notice in mruby.h
*/
-#include "cdump.h"
+#include "mruby/cdump.h"
#include <string.h>
-#include "irep.h"
+#include "mruby/irep.h"
#include "mruby/string.h"
#include "re.h"
@@ -169,7 +169,7 @@ mrb_cdump_irep(mrb_state *mrb, int n, FILE *f,const char *initname)
irep_num = mrb->irep_len - n;
SOURCE_CODE0("#include \"mruby.h\"");
- SOURCE_CODE0("#include \"irep.h\"");
+ SOURCE_CODE0("#include \"mruby/irep.h\"");
SOURCE_CODE0("#include \"mruby/string.h\"");
SOURCE_CODE0("#include \"mruby/proc.h\"");
SOURCE_CODE0("");
View
2 src/class.c
@@ -15,7 +15,7 @@
#include "mruby/array.h"
#include "error.h"
-#include "ritehash.h"
+#include "mruby/khash.h"
#ifdef INCLUDE_REGEXP
#define mrb_usascii_str_new2 mrb_usascii_str_new_cstr
View
2 src/codegen.c
@@ -8,7 +8,7 @@
#define CODEGEN_DUMP
#include "mruby.h"
-#include "irep.h"
+#include "mruby/irep.h"
#include "compile.h"
#include "mruby/proc.h"
#include "opcode.h"
View
4 src/dump.c
@@ -5,13 +5,13 @@
*/
#include <string.h>
-#include "dump.h"
+#include "mruby/dump.h"
#include "mruby/string.h"
#ifdef INCLUDE_REGEXP
#include "re.h"
#endif
-#include "irep.h"
+#include "mruby/irep.h"
static const unsigned char def_rite_binary_header[] =
RITE_FILE_IDENFIFIER
View
2 src/error.c
@@ -11,7 +11,7 @@
#include <setjmp.h>
#include "error.h"
#include "opcode.h"
-#include "irep.h"
+#include "mruby/irep.h"
#include "mruby/proc.h"
#include "mruby/numeric.h"
#include "mruby/variable.h"
View
2 src/gc.c
@@ -11,7 +11,7 @@
#include "mruby/string.h"
#include "mruby/hash.h"
#include "mruby/range.h"
-#include "ritehash.h"
+#include "mruby/khash.h"
#include <string.h>
#include <stdio.h>
#include "mruby/struct.h"
View
2 src/hash.c
@@ -6,7 +6,7 @@
#include "mruby.h"
#include "mruby/hash.h"
-#include "ritehash.h"
+#include "mruby/khash.h"
#include "mruby/class.h"
#include "mruby/array.h"
#include "error.h"
View
2 src/kernel.c
@@ -17,7 +17,7 @@
#include "mruby/class.h"
#include "mruby/struct.h"
#include "mruby/variable.h"
-#include "ritehash.h"
+#include "mruby/khash.h"
#include "error.h"
#include "method.h"
View
4 src/load.c
@@ -5,13 +5,13 @@
*/
#include <string.h>
-#include "dump.h"
+#include "mruby/dump.h"
#include "mruby/string.h"
#ifdef INCLUDE_REGEXP
#include "re.h"
#endif
-#include "irep.h"
+#include "mruby/irep.h"
#ifndef FALSE
#define FALSE 0
View
2 src/re.c
@@ -7,7 +7,7 @@
#include "mruby.h"
#include <string.h>
#include "mruby/string.h"
-#include "ritehash.h"
+#include "mruby/khash.h"
#include "encoding.h"
#include "re.h"
#include "mruby/numeric.h"
View
2 src/state.c
@@ -5,7 +5,7 @@
*/
#include "mruby.h"
-#include "irep.h"
+#include "mruby/irep.h"
#include <string.h>
void mrb_init_heap(mrb_state*);
View
2 src/symbol.c
@@ -5,7 +5,7 @@
*/
#include "mruby.h"
-#include "ritehash.h"
+#include "mruby/khash.h"
#include <string.h>
#include <stdarg.h>
View
2 src/variable.c
@@ -7,7 +7,7 @@
#include <stdio.h>
#include "mruby.h"
#include "mruby/class.h"
-#include "ritehash.h"
+#include "mruby/khash.h"
#include "mruby/variable.h"
#include "mruby/string.h"
#include "mruby/range.h"
View
2 src/vm.c
@@ -6,7 +6,7 @@
#include "mruby.h"
#include "opcode.h"
-#include "irep.h"
+#include "mruby/irep.h"
#include "mruby/variable.h"
#include "mruby/proc.h"
#include "mruby/array.h"
View
10 tools/mrbc/mrbc.c
@@ -1,11 +1,11 @@
#include "mruby.h"
#include "mruby/proc.h"
+#include "mruby/dump.h"
+#include "mruby/cdump.h"
#include "compile.h"
-#include "dump.h"
-#include "cdump.h"
-#include "stdio.h"
-#include "memory.h"
-#include "stdlib.h"
+#include <stdio.h>
+#include <memory.h>
+#include <stdlib.h>
#define RITEBIN_EXT ".mrb"
#define C_EXT ".c"
View
6 tools/mruby/mruby.c
@@ -1,9 +1,9 @@
#include "mruby.h"
#include "mruby/proc.h"
#include "compile.h"
-#include "dump.h"
-#include "stdio.h"
-#include "string.h"
+#include "mruby/dump.h"
+#include <stdio.h>
+#include <string.h>
void ruby_show_version(mrb_state *);
void ruby_show_copyright(mrb_state *);

0 comments on commit 8b36709

Please sign in to comment.