Commit Graph

1506 Commits

Author SHA1 Message Date
Yukihiro Matz Matsumoto 66fa14a333 main.to_s should also return "main" 2013-03-26 22:25:58 +09:00
Yukihiro Matz Matsumoto b1bd62e047 remove all MRB_TT_MAIN from source 2013-03-26 21:25:00 +09:00
Yukihiro Matz Matsumoto 5c6be2e518 Merge branch 'selftopiv' of https://github.com/carsonmcdonald/mruby into carsonmcdonald-selftopiv 2013-03-26 21:07:20 +09:00
Yukihiro Matz Matsumoto 471ad60688 use C99 flexible array member instead of [1] 2013-03-26 17:11:55 +09:00
Yukihiro Matz Matsumoto 87d7fc6165 Merge branch 'master' of github.com:mruby/mruby 2013-03-26 16:48:26 +09:00
Yukihiro "Matz" Matsumoto 2d91803528 Merge pull request #1073 from kurodash/pr-builderr-on-vs2012
fix build error on VS2012 toolchains.
2013-03-26 00:48:15 -07:00
Yukihiro Matz Matsumoto a7842b6451 zero length array is GCC extension 2013-03-26 16:42:17 +09:00
kurodash e426243ea0 fixed build error on VS2012 toolchains. 2013-03-26 15:36:44 +09:00
Masaki Muranaka fd49ae0a84 Preprocessor # should be the top of line. 2013-03-26 15:14:01 +09:00
Masaki Muranaka eafd5f647a Remove unused macros. 2013-03-26 15:13:20 +09:00
Masaki Muranaka 6848ad6f30 Remove #if 0 ... #endif code. 2013-03-26 15:12:50 +09:00
crimsonwoods c2c95f09e5 remove unused functions 'mrb_strerrno' and 'mrb_bug_errno'. 2013-03-25 23:41:20 +09:00
Yukihiro "Matz" Matsumoto 9d550390e5 Merge pull request #1065 from monaka/pr-reduce-stdio-dependency
Reduce stdio dependency
2013-03-25 07:36:47 -07:00
Carson McDonald 930e4c71c0 Make mrb_top_self return a real instance. 2013-03-25 00:23:22 -04:00
Xuejie "Rafael" Xiao c4fb08ac86 Make topenv() static inlined 2013-03-24 22:21:18 -04:00
Masaki Muranaka 3401ed7bab Reduce using snprintf(). They can replace by mruby API. 2013-03-24 13:49:19 +09:00
Masaki Muranaka 29d84a1635 Separate FILE dependencies with ENABLE_STDIO. 2013-03-24 13:47:54 +09:00
MATSUMOTO Ryosuke 7328b68b9f Adjusted indent, space and tab 2013-03-24 11:35:42 +09:00
Yukihiro "Matz" Matsumoto fd66a4df7d Merge pull request #1059 from mattn/remove_needless_sprintf
Remove unused mrb_sprintf
2013-03-23 10:00:48 -07:00
mattn aec5ac493e Remove unused mrb_sprintf 2013-03-24 00:52:25 +09:00
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