Commit Graph

2574 Commits

Author SHA1 Message Date
Masaki Muranaka fd69e271bb Add float.h. It exists even if the environment was freestanding. It has been supported since C89. 2013-03-17 02:31:40 +09:00
Yukihiro "Matz" Matsumoto 526f4bf640 Merge pull request #1018 from bovi/arduino-due
Compile Support for Arduino Due
2013-03-16 08:30:00 -07:00
Yukihiro Matz Matsumoto 8ae0c58bb0 resolve conflict from #1017 2013-03-17 00:28:49 +09:00
Yukihiro Matz Matsumoto 3f85079cc0 refine abf1b18 to remove nested if 2013-03-17 00:22:36 +09:00
Yukihiro "Matz" Matsumoto 5f2e9e45df Merge pull request #1016 from monaka/pr-reduce-string.h-20130316
Reduce string.h.
2013-03-16 08:20:36 -07:00
Yukihiro "Matz" Matsumoto d2c5dff657 Merge pull request #1015 from monaka/pr-khash-cleanup-20130316
khash cleanup.
2013-03-16 08:19:02 -07:00
Daniel Bovensiepen 4e1c54ea7c Add Build Example for Arduino Due 2013-03-16 14:06:50 +00:00
Masaki Muranaka 4ad08caca0 Remove stdio.h as it is included in mrbconf.h. 2013-03-16 21:39:52 +09:00
Masaki Muranaka 3aa3b4af90 Remove stdlib.h from mruby.h. It is for portability (care for freestanding environments).
This is a first step. It will be reduced stdlib.h in each files later.
2013-03-16 21:29:39 +09:00
Masaki Muranaka 6ba298ed54 Remove unnecessory stdint.h. 2013-03-16 21:06:32 +09:00
Masaki Muranaka 715270bec5 Include mruby.h. As KHASH_DEFAULT_SIZE might be defined in mrbconf.h. 2013-03-16 21:06:03 +09:00
Masaki Muranaka a11e7f3c30 Remove unused string.h. 2013-03-16 18:08:18 +09:00
Masaki Muranaka abf1b188e3 Remove strncmp(). It enables to process various options. 2013-03-16 18:07:33 +09:00
Masaki Muranaka 7de2deab1e Remove string.h in khash.h 2013-03-16 17:48:30 +09:00
Masaki Muranaka 1bb447a7d3 Avoid to call memset(). Use the new function kh_fill_flags() instead. This is for compatibility. 2013-03-16 17:00:44 +09:00
Masaki Muranaka 591dbbf13f Change the place of the close parenthesis. Even though it probably cause no bugs for current code. 2013-03-16 16:58:14 +09:00
Yukihiro "Matz" Matsumoto 2e937a5bba Merge pull request #1014 from takkaw/display_bo_info_in_mirb
display BasicObject information in mirb
2013-03-15 19:38:26 -07:00
Yukihiro "Matz" Matsumoto 26926a1d52 Merge pull request #1013 from takkaw/fix_bo_missing
fix segmentation fault in BasicObject#inspect
2013-03-15 09:12:05 -07:00
takkaw 839d801c7a display BasicObject information in mirb 2013-03-16 00:16:35 +09:00
takkaw 5aafbca0e4 fix segmentation fault in BasicObject#inspect 2013-03-16 00:16:34 +09:00
Yukihiro "Matz" Matsumoto 618d7339f1 Merge pull request #1010 from monaka/pr-remove-meaningless-bitfields-in-irep
Remove bit-fields. They doesn't reduce memory on major environments.
2013-03-15 07:25:09 -07:00
Yukihiro Matz Matsumoto 8d98b84543 removed compatibility macros mrb_ary_new_elts() and mrb_ary_new4() 2013-03-15 23:23:45 +09:00
Yukihiro Matz Matsumoto 88483fad00 rename mrb_basic to mrb_basic_ptr; close #1011 2013-03-15 23:21:13 +09:00
Yukihiro Matz Matsumoto 243669308d obsolete mrb_object; opposite of bc870ce 2013-03-15 23:16:20 +09:00
Yukihiro "Matz" Matsumoto c5db1397ee Merge pull request #1009 from skandhas/pr-add-mrb-array-ext
add mrbgem: mruby-array-ext
2013-03-15 05:19:06 -07:00
Masaki Muranaka 5f992f8712 Remove bit-fields. They doesn't reduce memory on major environments. 2013-03-15 15:56:23 +09:00
skandhas e6ab9237cc rename method 2013-03-15 11:41:49 +08:00
skandhas 59d33146e5 update build_config.rb 2013-03-15 11:29:48 +08:00
skandhas 6c284ec31f add mrbgem: mrb-array-ext 2013-03-15 11:28:01 +08:00
Yukihiro Matz Matsumoto 75dd4a5aed resolve conflict 2013-03-15 00:21:22 +09:00
Yukihiro "Matz" Matsumoto 2ff330ee0e Merge pull request #1007 from kano4/pr-add-break
Add break to default case in switch statement
2013-03-14 08:17:30 -07:00
Yukihiro "Matz" Matsumoto ad11d3144e Merge pull request #975 from crimsonwoods/modify_build_script
Improve Android platform support.
2013-03-14 08:15:40 -07:00
crimsonwoods d2f74c7c46 bug fix: fix wrong method name. 2013-03-14 23:54:50 +09:00
crimsonwoods ef23ae4e41 support 'Cygwin' as build platform. 2013-03-14 23:51:44 +09:00
kano4 22756f45be Fix indentation in symbol.c 2013-03-14 23:47:31 +09:00
crimsonwoods bb63eb04d0 bug fix: fix "--sysroot" option and host platform detection. 2013-03-14 23:36:28 +09:00
kano4 60df77788b Add break to default case in switch statement 2013-03-14 23:18:12 +09:00
Yukihiro Matz Matsumoto 08a0c9f328 add mrb_int overflow check for mrb_int 2013-03-14 23:12:21 +09:00
Yukihiro Matz Matsumoto 228687cfff experimental MRB_INT16 added 2013-03-14 23:12:00 +09:00
Yukihiro "Matz" Matsumoto ce1756b3b6 Merge pull request #997 from monaka/pr-add-type-mrb_bool_t
Define mrb_bool_t.
2013-03-14 04:51:14 -07:00
Yukihiro Matz Matsumoto 38571fd769 use mrb_int as possible based on a patch from @monaka; close #994 2013-03-14 19:39:17 +09:00
Yukihiro Matz Matsumoto 9d0bbdb7f8 use size_t for string length C API 2013-03-14 19:33:38 +09:00
Yukihiro Matz Matsumoto 93e9174c57 symbol length make size_t from mrb_int; cancel #993 monaka/pr-cleanup-symbol.c-20130312 2013-03-14 19:09:55 +09:00
Yukihiro "Matz" Matsumoto b75805b15e Merge pull request #993 from monaka/pr-cleanup-symbol.c-20130312
Cleanup symbol.c.
2013-03-14 02:50:24 -07:00
Yukihiro Matz Matsumoto 535a5489c7 remove PARANOID from comments 2013-03-14 18:47:59 +09:00
Yukihiro "Matz" Matsumoto 1ebebd304a Merge pull request #987 from monaka/pr-clean-up-parse.y-20130312
Clean up parse.y.
2013-03-14 02:46:48 -07:00
Yukihiro "Matz" Matsumoto 15a9fb26f7 Merge pull request #1005 from mattn/remove_warning
Remove compiler warning
2013-03-13 23:49:42 -07: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
mattn 089d3c2a2d Remove compiler warning 2013-03-14 13:40:28 +09:00
Yukihiro "Matz" Matsumoto 0739960b7f Merge pull request #1001 from monaka/pr-add-type-check-in-mrb_str_to_cstr
Add the type check in mrb_str_to_cstr().
2013-03-13 20:47:35 -07:00