Commit Graph

1486 Commits

Author SHA1 Message Date
Yukihiro "Matz" Matsumoto ccfc0fb708 Merge pull request #1058 from mattn/remove_mrb_f_sprintf
Remove needless prototype
2013-03-23 08:48:35 -07:00
Yukihiro Matz Matsumoto e69a13a20e resolve conflict 2013-03-24 00:44:28 +09:00
mattn a8abbaed1a Remove needless prototype 2013-03-24 00:34:10 +09:00
Yukihiro "Matz" Matsumoto 6954153fa0 Merge pull request #1057 from mattn/mruby-print
mruby-print gem
2013-03-23 08:30:03 -07:00
Yukihiro Matz Matsumoto f0ac204f21 Use size_t instead of int. This is for portability. 2013-03-24 00:20:35 +09:00
mattn e53fa35748 Remove __printstr__ 2013-03-24 00:18:39 +09:00
Masaki Muranaka daeaa51b2d For particular environments which has 25 < n < 32 bit int. There is no cost even if you use 16/32bit int targets. 2013-03-24 00:13:23 +09:00
Masaki Muranaka 1756e8fc83 Add brances to macro parameter. It may be refactored as GET_UNPACK_{b,c} are used only by GETARG_{b,c}. 2013-03-24 00:12:53 +09:00
Masaki Muranaka f5748e28c6 Use ptrdiff_t instead of int. This is for portability. 2013-03-24 00:09:17 +09:00
Yukihiro Matz Matsumoto 0425db66b6 Use mrb_bool instead of int. This is for portability; based on e767ebf but iv_foreach_func must return int 2013-03-24 00:07:13 +09:00
Masaki Muranaka 33ee4903eb Remove unused marco CODEGEN_DUMP. 2013-03-23 23:59:29 +09:00
Yukihiro Matz Matsumoto 0940e4d462 rename mrb_ptr_as_string() to mrb_ptr_to_str() 2013-03-23 21:57:33 +09:00
Yukihiro Matz Matsumoto d8f48e9782 Merge branch 'pr-add-mrb_ptr_as_string' of https://github.com/monaka/mruby into monaka-pr-add-mrb_ptr_as_string 2013-03-23 21:53:49 +09:00
Masaki Muranaka d5b135a1e7 Remove _obj_classname() as unused. 2013-03-23 20:22:16 +09:00
Masaki Muranaka 9268636331 Use mrb_obj_classname() instead of _obj_classname(). They are complietely same. 2013-03-23 20:21:50 +09:00
Masaki Muranaka bdd8f7b4a7 Remove *printf() that have "%p" format as possible. Use tomrb_ptr_as_string() instead. 2013-03-23 20:11:33 +09:00
Masaki Muranaka bbb367841a Add new API mrb_ptr_as_string(). 2013-03-23 20:00:04 +09:00
Yukihiro "Matz" Matsumoto 66bd53a415 Merge pull request #1048 from monaka/pr-make-array.c-and-vm.c-share-value_move
Make array.c and vm.c share value_move().
2013-03-23 03:48:11 -07:00
Yukihiro "Matz" Matsumoto af2f3dd16f Merge pull request #1050 from monaka/pr-cleanup-string.c-20130323
Clean up string.c
2013-03-23 03:46:52 -07:00
Masaki Muranaka 8101bf2430 Set MRB_TT_MODULE to Module. 2013-03-23 18:28:48 +09:00
Masaki Muranaka 0cedf8fa02 Rename API mrb_str_cat2() to mrb_str_cat_cstr(). This is for naming orthogonality. mrb_str_cat2() is also left for backward compatibility. 2013-03-23 16:29:30 +09:00
Masaki Muranaka 92821cf2ef Use mrb_str_cat() instead of mrb_str_cat2() as possible. 2013-03-23 15:55:55 +09:00
Masaki Muranaka 2a341753f8 Make array.c and vm.c share value_move(). 2013-03-23 12:30:53 +09:00
Yukihiro "Matz" Matsumoto acab35a2a5 Merge pull request #1039 from crimsonwoods/fix_the_type_of_opcode
Fix the type of value that is returned by bit shift expression.
2013-03-22 19:11:51 -07:00
Yukihiro Matz Matsumoto 04d9c5ea6b resolve conflict regarding backtick 2013-03-23 11:08:18 +09:00
Masaki Muranaka 4656073b60 Add configuration macro MRB_PARSER_BUF_SIZE. 2013-03-22 16:46:56 +09:00
Yukihiro Matz Matsumoto b547a7ed2c allow backtick as a symbol 2013-03-22 15:53:08 +09:00
Yukihiro "Matz" Matsumoto ab7bd61596 Merge pull request #1040 from mattn/backtick
xquote operator
2013-03-21 23:25:03 -07:00
Masaki Muranaka fc63ef150b Add new API mrb_intern_cstr(). This is for naming orthogonality. mrb_intern is also left for backward compatibility. 2013-03-22 14:39:28 +09:00
Masaki Muranaka 0f16b242fc Add an internal function intern_c(). It reduces function call parameter. For maintainability and performance. 2013-03-22 14:25:51 +09:00
Masaki Muranaka 75d5654de8 Make intern_gen() inline. This is enough tiny to be inlined. 2013-03-22 14:23:41 +09:00
Masaki Muranaka f8fa56d8c3 Use mrb_intern2() instead of mrb_intern(). This is for avoiding overhead by strlen(). 2013-03-22 14:22:45 +09:00
mattn 4be161c43c Use mrb_intern2 2013-03-22 12:15:04 +09:00
mattn 603302c74c Use ` 2013-03-22 09:08:12 +09:00
crimsonwoods f4b9437718 fix comment. 2013-03-21 23:07:18 +09:00
crimsonwoods cc4e9ee5b6 fix the type of value that is returned by bit-shift expression. 2013-03-21 22:58:33 +09:00
crimsonwoods e06648a88d "Ax" is larger than 16-bit. 2013-03-21 22:57:29 +09:00
crimsonwoods c1f6a27660 fix the type of value that is returned by bit-shift expression. 2013-03-21 22:57:14 +09:00
crimsonwoods 0292940e55 fix the type of value that is returned by bit-shift expression. 2013-03-21 22:55:35 +09:00
mattn 1ab4dbcbf3 Backtick operation 2013-03-21 19:45:47 +09:00
Kouki Ooyatsu f00e9b2410 bugfix escape charactor for Regexp class 2013-03-21 17:12:09 +09:00
Yukihiro Matz Matsumoto 41cbd48388 update lex.def 2013-03-21 07:43:31 +09:00
kano4 0a795c31f0 Fix indentation in keywords 2013-03-20 23:41:06 +09:00
Yukihiro Matz Matsumoto dec4ec694b Merge branch 'master' of github.com:mruby/mruby 2013-03-19 12:07:47 +09:00
Yukihiro Matz Matsumoto d0d920e909 rename mrb_true_or_false_value() to mrb_bool_value() 2013-03-19 12:03:54 +09:00
Yukihiro "Matz" Matsumoto 74bc53a518 Merge pull request #1030 from monaka/pr-some-optimizes-to-vm.c-20130318
Some optimizes to vm.c
2013-03-18 19:52:21 -07:00
Masaki Muranaka 6ab9c389c4 Use mrb_true_or_false_value() / in sym_equal(). 2013-03-19 11:04:23 +09:00
Masaki Muranaka 68652da6f6 Use mrb_true_or_false_value() / in mrb_str_include(). 2013-03-19 11:04:23 +09:00
Masaki Muranaka 02a6334d0d Use mrb_true_or_false_value() / in mrb_str_eql(). 2013-03-19 11:04:23 +09:00
Masaki Muranaka 055cad0739 Use mrb_true_or_false_value() / in mrb_str_empty_p(). 2013-03-19 11:04:23 +09:00