Commit Graph

15065 Commits

Author SHA1 Message Date
Masaki Muranaka 162f373ccb Use mrb_true_or_false_value() / in mrb_ary_equal(). 2013-03-19 11:04:20 +09:00
Masaki Muranaka 3ebcb9c1a3 Use mrb_true_or_false_value() / in mrb_ary_empty_p(). 2013-03-19 11:04:20 +09:00
Masaki Muranaka 9d8c1eccbe Use mrb_true_or_false_value() / in mrb_struct_eql(). 2013-03-19 11:04:16 +09:00
Masaki Muranaka 0e9512cc4b Use mrb_true_or_false_value() / in mrb_struct_equal(). 2013-03-19 11:03:26 +09:00
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
FUKUZAWA-Tadashi cdf8114e27 %I %i literal 2013-03-19 00:41:15 +09:00
Masaki Muranaka 3f3568a2c8 Simplify conditional expressions. This is for speed tuning. 2013-03-18 23:29:11 +09:00
Masaki Muranaka 632875a618 Lazy variable declarations. They are for speed tune. 2013-03-18 23:29:11 +09:00
Masaki Muranaka f3db337814 Clean some redundant code up. 2013-03-18 23:29:11 +09:00
Masaki Muranaka d7c6ebfc91 Make topenv() inlined. 2013-03-18 23:29:11 +09:00
Masaki Muranaka 1272d5fe0c Extract uvget/uvset to OP_GETUPVAR/OP_SETUPVAR. This is for speed tuning. 2013-03-18 23:29:11 +09:00
Masaki Muranaka 4a17b3d908 Make some tiny functions inlined. This is for supeed tuning. 2013-03-18 23:29:11 +09:00
Masaki Muranaka 37263e50e5 Remove mrb_checkstack() as unused. 2013-03-18 23:29:11 +09:00
Masaki Muranaka b8982c442f Optimize OP_SUBI. 2013-03-18 23:29:11 +09:00
Masaki Muranaka 7a78ecb14c Optimize OP_ADD instruction. 2013-03-18 23:29:11 +09:00
Yukihiro Matz Matsumoto 5217d88963 remove unused local variable beg in parser_yylex 2013-03-18 22:59:13 +09:00
Yukihiro "Matz" Matsumoto 138a3569a2 Merge pull request #1025 from FUKUZAWA-Tadashi/master
implement %W %w %s
2013-03-18 06:56:26 -07: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
FUKUZAWA-Tadashi 76c24894a7 bugfix about escaping '\n' 2013-03-17 21:27:38 +09:00
FUKUZAWA-Tadashi 41698100ad remove disused check code 2013-03-17 21:27:38 +09:00
FUKUZAWA-Tadashi aec3e1c4ff refactor heredoc identifier 2013-03-17 21:27:38 +09:00
FUKUZAWA-Tadashi 49413a312f Could you add me to AUTHORS? 2013-03-17 21:27:38 +09:00
FUKUZAWA-Tadashi 44fbfc5184 implement literal %W %w %s
refactor string parsing
2013-03-17 21:27:37 +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