Commit Graph

72 Commits

Author SHA1 Message Date
Yukihiro Matz Matsumoto 13cd0363f0 applying C++ patch from @monaka to support C++ bool type; close #1019 2013-03-18 07:57:07 +09:00
Yukihiro Matz Matsumoto 228687cfff experimental MRB_INT16 added 2013-03-14 23:12:00 +09:00
Masaki Muranaka 1ffc9ba325 Define type mrb_bool. It is typedef-ed to _Bool on C99, unsigned int on MSVC.
It is safer than applying 1bit bit-fields to signed int.

For forward compatibility, you should substiture only 1 or 0 for the variable typed mrb_bool.
2013-03-14 15:13:12 +09:00
Masaki Muranaka e2d31ba3f3 Rename STR_BUF_MIN_SIZE to MRB_STR_BUF_MIN_SIZE. Make it configurable. 2013-03-12 17:10:18 +09:00
Masaki Muranaka 5a025813b5 Include stdio.h in mrbconf.h instead of C extension sources. 2013-03-05 01:38:51 +09:00
Masaki Muranaka 97136825e2 Separate Kernel#sprintf support from mruby core. It's moved to mrbgems. 2013-03-04 23:04:39 +09:00
Yukihiro "Matz" Matsumoto e13248bedf Merge pull request #884 from monaka/pr-use-MRB_IREP_ARRY_INIT_SIZE-macro
Use MRB_IREP_ARRAY_INIT_SIZE macro.
2013-03-03 16:40:27 -08:00
Masaki Muranaka 6cd7017ec1 Remove trailing whitespaces. This is just a cosmetic change. 2013-03-03 10:54:00 +09:00
mattn 138ecf4723 Pluggable Struct 2013-03-01 13:37:46 +09:00
mattn 6bee2fd193 Pluggable Math 2013-02-28 17:52:18 +09:00
mattn f2d62c7c9f Fix build 2013-02-26 17:22:24 +09:00
Masaki Muranaka 6dda588503 Use MRB_IREP_ARRAY_INIT_SIZE macro. It should be configurable since it is possible to reduce RAM size. 2013-02-25 13:59:20 +09:00
Masaki Muranaka dd62349749 Reduce sprintf() calls. Remove mrb_int_to_str() and MRB_INT_FORMAT. 2013-02-23 21:21:15 +09:00
Yukihiro Matz Matsumoto a118c30861 better comment description for mrbconf.h configuration 2013-02-21 22:31:35 +09:00
Yukihiro Matz Matsumoto 9931f00863 remove unused HAVE_UNISTD_H altogether; ref #865 2013-02-21 22:28:32 +09:00
brainopia 483dce4b33 Clean up mrbconf.h
- undef for windows is not used by default so comment it
- casting to the same type is not needed
- parenthesis are not needed for macro attributes separated by commas
- change order of MRB_NAN_BOXING and MRB_INT64 to simplify logic
2013-02-21 16:54:44 +04:00
Yukihiro "Matz" Matsumoto 21822f4ee5 Merge pull request #851 from mattn/bye_bye_regexp
Remove DISABLE_REGEXP
2013-02-17 23:39:43 -08:00
Yuichiro MASUI 111cbca68c Changed debugger hook to disable 2013-02-18 16:36:15 +09:00
mattn 7b5ec7126a Remove DISABLE_REGEXP 2013-02-18 16:29:07 +09:00
Yukihiro "Matz" Matsumoto 66a7b04b25 Merge pull request #845 from masuidrive/hook_fetch
Added a hook at VM code fetch.
2013-02-17 23:11:49 -08:00
Yuichiro MASUI bc44d06c73 Created hook at VM code fetch. It's for debugger 2013-02-17 00:13:42 +09:00
mattn b1a5146ea8 Pluggable Regexp 2013-02-15 04:38:27 +09:00
Yuichiro MASUI 5a681874dd defined printf macro for mrb_int 2013-01-26 01:05:20 +09:00
Yuichiro MASUI 688cf04094 Fixed mistake 2013-01-22 00:40:52 +09:00
Yuichiro MASUI 2b2051ebb1 Fixed MRB_INT64 warning 2013-01-21 23:21:16 +09:00
Yuichiro MASUI ced80d2b4b Improved build scripts and config files 2013-01-20 22:48:42 +09:00
Xuejie Xiao b641c96f57 Derive DISABLE_GEMS macro according to build configuration 2012-12-18 20:34:07 -05:00
Cremno bc2e7c736f MSVC doesn't define strtoll but _strtoi64. 2012-12-16 07:18:25 +01:00
Daniel Bovensiepen 6ebc1918de Deactivate / Activate GEMs Flag introduced into mrbconf.h 2012-11-22 19:00:11 +08:00
Yuichiro MASUI 7a20ab0f95 define MRB_INT64 flag for mrb_int as 64bit 2012-11-16 19:12:57 +09:00
Yuichiro MASUI 15f46a1feb define convert method mrb_int/mrb_float with C string 2012-10-27 14:26:50 +09:00
Yukihiro Matsumoto 265fa03d2c defining mrb_int also requires MRB_INT_{MAX,MIN} to be defined 2012-10-17 00:40:23 +09:00
Yukihiro Matsumoto 540066c9e2 mrb_sym can be short integer; reduced 10KB 2012-09-12 16:20:32 +09:00
Yukihiro Matsumoto bf7f9f83c7 rename config macro name IV_INITIAL_SIZE -> IVHASH_INIT_SIZE 2012-09-04 17:38:27 +09:00
Yukihiro Matsumoto 7d02df3016 NaN boxing 2012-08-14 13:16:34 +09:00
Yukihiro Matsumoto c9fe903fe1 now segmented list can be used as instance variable tables by -DMRB_USE_IV_SEGLIST; we still need to measure the performance and memory consumption 2012-08-12 01:59:18 +09:00
Masaki Muranaka 0cee3bb531 POOL_ALIGNMENT POOL_PAGE_SIZE : Configurable parameters. 2012-07-31 16:50:09 +09:00
Yukihiro Matsumoto d749ccfd3e add description of MRB_IV_INITIAL_SIZE 2012-07-30 23:56:34 +09:00
Yukihiro Matsumoto 515862cc01 khash refactoring; no more MRB_KHASH_INITIAL_SIZE 2012-07-30 23:55:35 +09:00
Yukihiro Matsumoto 0c55f7ecc3 add description of MRB_HEAP_PAGE_SIZE 2012-07-30 17:18:32 +09:00
Yukihiro Matsumoto d91f475e55 better mrbconf decsription 2012-07-30 17:16:13 +09:00
Yukihiro Matsumoto 446005620b remove __STDC_LIMIT_MACROS for INT32_MAX 2012-07-30 10:51:24 +09:00
Yukihiro Matsumoto eb34ad365b fixed the comment English 2012-07-30 09:45:37 +09:00
Max Anselm ee899778c4 Define __STDC_LIMIT_MACROS for INT32_MAX in C++ 2012-07-29 19:44:49 -04:00
Yukihiro Matsumoto 4b9ef5dabe use no malloc in mrb_funcall; close #386 2012-07-19 17:45:13 +09:00
Masaki Muranaka f146fd0397 MRB_FUNCALL_ARGC_MAX support. (refs comments in #324). 2012-07-18 15:47:57 +09:00
Yukihiro Matsumoto 737eaea038 allow DISABLE/ENABLE_SATDIO 2012-07-13 15:00:45 +09:00
Yukihiro Matsumoto e9d56f4ccf do not undef config macro MRB_USE_FLOAT 2012-06-28 14:37:32 +09:00
Yukihiro Matsumoto 6410cdf3bf do not undef config macros 2012-06-27 01:13:21 +09:00
Yukihiro Matsumoto ede3049f33 allow disabling Struct class 2012-06-17 23:36:34 +09:00