Commit Graph

2599 Commits

Author SHA1 Message Date
Masaki Muranaka b0a940ee54 Remove the macro mrb_bool_value(). Use mrb_true_or_false() instead. 2013-03-19 11:03:08 +09:00
Masaki Muranaka 4f9503acd7 Add new API mrb_true_or_false_value(). 2013-03-19 11:03:08 +09:00
Yukihiro Matz Matsumoto 6611c18c5b remove unused local variable beg in parser_yylex 2013-03-19 11:03:08 +09:00
FUKUZAWA-Tadashi 801bc9e39e bugfix about escaping '\n' 2013-03-19 11:03:08 +09:00
FUKUZAWA-Tadashi e5a66685b0 remove disused check code 2013-03-19 11:03:08 +09:00
FUKUZAWA-Tadashi 3bcaeb09b4 refactor heredoc identifier 2013-03-19 11:03:08 +09:00
FUKUZAWA-Tadashi 7c1526da6f Could you add me to AUTHORS? 2013-03-19 11:03:08 +09:00
FUKUZAWA-Tadashi 05e735595e implement literal %W %w %s
refactor string parsing
2013-03-19 11:03:07 +09:00
Yukihiro Matz Matsumoto a4c30b93ac personal style preference on function call in flo_to_s 2013-03-18 22:54:26 +09:00
Yukihiro "Matz" Matsumoto 215069d0d8 Merge pull request #1020 from monaka/pr-add-numeric-format-function
Add numeric format function
2013-03-18 06:52:13 -07:00
Yukihiro "Matz" Matsumoto 816021043e Merge pull request #1029 from crimsonwoods/fix_the_type_of_aspec
fix the type of argument named 'aspec'.
2013-03-18 00:49:26 -07:00
crimsonwoods 52eba9fee7 fix the type of argument named 'aspec'.
'aspec' should be large at least 24 bit.
2013-03-18 16:04:10 +09:00
Yukihiro Matz Matsumoto 17bc0a1ae4 Merge branch 'master' of github.com:mruby/mruby 2013-03-18 07:57:21 +09:00
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 59fbb16d4b Merge pull request #1023 from monaka/pr-remove-memmove-from-vm.c
Remove memmove() in src/vm.c.
2013-03-17 15:52:28 -07:00
Yukihiro "Matz" Matsumoto b58ac0579e Merge pull request #1026 from crimsonwoods/fix_bitfield_type
fix the type of bit field variable.
2013-03-17 15:50:53 -07:00
Yukihiro "Matz" Matsumoto e4b4e8679f Merge pull request #1027 from masuidrive/remove_unused_if
Removed unused expr
2013-03-17 15:49:17 -07:00
Yukihiro "Matz" Matsumoto 492c008b5b Merge pull request #1021 from monaka/pr-fix-warning-20130316
Fix a warning happens on MRB_INT64 enabled.
2013-03-17 15:47:43 -07:00
Yuichiro MASUI eff538c250 Removed unused expr 2013-03-18 01:12:52 +09:00
crimsonwoods 3678d2545c fix the type of bit field variable.
if 'int' type is 16bit integer, 'unsigned int flags: 21' is too large.
2013-03-18 00:16:13 +09:00
Yukihiro "Matz" Matsumoto 7872bee700 Merge pull request #1024 from crimsonwoods/remove_bitshifted_constants_larger_than_16bit
remove bit-shift operation.
2013-03-17 05:15:40 -07:00
Kurebayashi, Takahiro 83ddef6880 remove bit-shift operation. 2013-03-17 17:44:18 +09:00
Masaki Muranaka ca3fd5d0d4 Remove memmove(). Use value_move() instead.
value_move() is type-safer than memmove().

And may be faster on some targets.
(If it makes slow on your target,
rewrite to call memset(s1, s2, sizeof(mrb_value)*n)
in value_move().)
2013-03-17 17:25:44 +09:00
Masaki Muranaka 11ed7a6128 Fix a warning happens on MRB_INT64 enabled. 2013-03-17 03:24:19 +09:00
Masaki Muranaka 9be437c6d5 Add a new function mrb_flo_to_str(). Use it instead of sprintf() as possible. 2013-03-17 02:31:40 +09:00
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