/* ** mrbconf.h - mruby core configuration ** ** See Copyright Notice in mruby.h */ #ifndef MRUBYCONF_H #define MRUBYCONF_H #include #define MRB_USE_FLOAT #ifdef MRB_USE_FLOAT typedef float mrb_float; #define readfloat(p) strtof((p),NULL) #else typedef double mrb_float; #define readfloat(p) strtod((p),NULL) #endif typedef int32_t mrb_int; typedef intptr_t mrb_sym; #define readint(p,base) strtol((p),NULL,(base)) #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 */ #ifndef FALSE # define FALSE 0 #endif #ifndef TRUE # define TRUE 1 #endif #endif /* MRUBYCONF_H */