summaryrefslogtreecommitdiffhomepage
path: root/include/mrbconf.h
diff options
context:
space:
mode:
authormimaki <[email protected]>2012-04-20 09:39:03 +0900
committermimaki <[email protected]>2012-04-20 09:39:03 +0900
commite0d6430f63c4cbe0c71ce82ee23284671389a818 (patch)
tree41abad7f12eced98d9ac14d141cea62464c3332f /include/mrbconf.h
parent54ad561098ed353ada70205c39b2c42a2a2eb9e5 (diff)
downloadmruby-e0d6430f63c4cbe0c71ce82ee23284671389a818.tar.gz
mruby-e0d6430f63c4cbe0c71ce82ee23284671389a818.zip
add mruby sources
Diffstat (limited to 'include/mrbconf.h')
-rw-r--r--include/mrbconf.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/include/mrbconf.h b/include/mrbconf.h
new file mode 100644
index 000000000..d4802a5e7
--- /dev/null
+++ b/include/mrbconf.h
@@ -0,0 +1,42 @@
+#ifndef MRUBYCONF_H
+#define MRUBYCONF_H
+
+#include <stdint.h>
+typedef double mrb_float;
+typedef int32_t mrb_int;
+typedef intptr_t mrb_sym;
+
+#define readint(p,base) strtol((p),NULL,(base))
+#define readfloat(p) strtod((p),NULL)
+
+#undef INCLUDE_ENCODING /* not use encoding classes (ascii only) */
+#define INCLUDE_ENCODING /* use UTF-8 encoding classes */
+
+#undef INCLUDE_REGEXP /* not use regular expression classes */
+#define INCLUDE_REGEXP /* use regular expression classes */
+
+#ifdef INCLUDE_REGEXP
+# define INCLUDE_ENCODING /* Regexp depends Encoding */
+#endif
+
+#undef HAVE_UNISTD_H /* WINDOWS */
+#define HAVE_UNISTD_H /* LINUX */
+
+#define SIZEOF_INT 4
+#define SIZEOF_SHORT 2
+#define SIZEOF_LONG 4
+#define SIZEOF_LONG_LONG 8
+#define SIZEOF___INT64 0
+#define SIZEOF_VOIDP 4
+#define SIZEOF_FLOAT 4
+#define SIZEOF_DOUBLE 8
+
+#ifndef FALSE
+# define FALSE 0
+#endif
+
+#ifndef TRUE
+# define TRUE 1
+#endif
+
+#endif /* MRUBYCONF_H */