Commit Graph

5926 Commits

Author SHA1 Message Date
take_cheeze 2249cf7c7f Implement Symbol#slice and Symbol#[] in mruby-symbol-ext. 2014-07-28 16:30:14 +09:00
Yukihiro "Matz" Matsumoto 23b6e22cf0 Merge pull request #2490 from suzukaze/refactor_symbol
Refactor sym_equal() in symbol.c
2014-07-27 19:54:42 +09:00
Jun Hiroe 18d8f9d124 Refactor sym_equal() in symbol.c 2014-07-27 15:56:21 +09:00
Yukihiro "Matz" Matsumoto e2f7e485e7 Merge pull request #2478 from dreamedge/add_module_function
add Module#module_function
2014-07-26 09:35:58 +09:00
Yukihiro "Matz" Matsumoto 875c07a742 Merge pull request #2477 from take-cheeze/allocf_ud
Add field `allocf_ud` to replace current `ud`.
2014-07-24 23:22:58 +09:00
Yukihiro "Matz" Matsumoto 6055ebaf78 Merge pull request #2489 from Ancurio/silence_cpp_warn
Silence "unused parameter" warnings in C++
2014-07-24 06:40:51 +09:00
Jonas Kulla ec606e3aa7 Silence "unused parameter" warnings in C++
This has been done already, but the fixes were accidentally
removed in 249f05e7d7.
2014-07-23 21:40:15 +02:00
Yukihiro "Matz" Matsumoto 40e46944a2 Merge pull request #2488 from ksss/leak-test
Fix memory leak for test driver
2014-07-24 00:05:37 +09:00
ksss 67fbcf8b2a Fix memory leak for test driver 2014-07-23 14:14:09 +00:00
Yukihiro "Matz" Matsumoto 1b5584b3c8 check if block is given in eval_under(); fix #2486 2014-07-23 02:08:37 +09:00
Yukihiro "Matz" Matsumoto 6d742ef93a Merge pull request #2482 from take-cheeze/exc_tt
Use MRB_TT_EXCEPTION in exception object.
2014-07-22 15:35:16 +09:00
Yukihiro "Matz" Matsumoto 4b69121284 restore mrb_get_args() in f_instance_eval to check arguments type 2014-07-22 08:38:38 +09:00
Yukihiro "Matz" Matsumoto 7457da6aa1 exception in instance_eval should not exit mrb_run; fix #2483 2014-07-22 07:29:26 +09:00
take_cheeze 3c96602574 Use MRB_TT_EXCEPTION in exception object. 2014-07-21 23:09:13 +09:00
Yukihiro "Matz" Matsumoto 4cc9e5d8b1 since #1441, NaN boxing with 64bit pointer works; close #2476 2014-07-21 21:55:52 +09:00
Yukihiro "Matz" Matsumoto beafed1104 Merge pull request #2481 from take-cheeze/move_word_box_struct
Move word boxing structs to "mruby/boxing_word.h".
2014-07-21 07:10:14 +09:00
take_cheeze fc8b48faf8 Move word boxing structs to "mruby/boxing_word.h". 2014-07-20 23:02:04 +09:00
Yukihiro "Matz" Matsumoto a3ac3623f0 Merge pull request #2480 from take-cheeze/test_backtrace
Print backtrace of crashed test in verbose mode.
2014-07-20 18:04:06 +09:00
take_cheeze a24729044a Print backtrace of crashed test in verbose mode. 2014-07-19 22:33:13 +09:00
dreamedge 0b8a0f4bb4 add Module#module_function 2014-07-18 09:50:54 +09:00
take_cheeze fc9a91c4a6 Add field allocf_ud to replace current ud.
Since some use it as `mrb_state` associated user data.
2014-07-17 21:48:17 +09:00
Yukihiro "Matz" Matsumoto d17506c176 Merge branch 'master' of github.com:mruby/mruby 2014-07-17 01:42:22 +09:00
Yukihiro "Matz" Matsumoto 1dc6a8c872 avoid infinite recursion when error was happened in #inspect; fix #2474 2014-07-17 01:42:03 +09:00
Yukihiro "Matz" Matsumoto ce7dfe97ad Merge pull request #2475 from take-cheeze/full_core_list
Check mrbgem.rake instead of directory to ignore empty directories in full-core gembox.
2014-07-17 01:28:36 +09:00
take_cheeze 568b2c79b1 Check mrbgem.rake instead of directory to ignore empty directories in full-core. 2014-07-16 22:49:06 +09:00
Yukihiro "Matz" Matsumoto 2dcc2444fa need to call write_barrier on every fiber context switch 2014-07-16 12:58:37 +09:00
Yukihiro "Matz" Matsumoto f8aac56df0 git push origin masterMerge branch 'take-cheeze-instance_eval' 2014-07-16 05:22:04 +09:00
Yukihiro "Matz" Matsumoto abf52c7773 remove unused local variables; ref #2473 2014-07-16 05:21:55 +09:00
take_cheeze dd34decdfc Implement string compiling instance_eval method. 2014-07-15 22:33:14 +09:00
Yukihiro "Matz" Matsumoto d5dd3e9472 fiber stack allocation size should be bigger than irep->nregs 2014-07-15 17:17:58 +09:00
Yukihiro "Matz" Matsumoto 472a1c244e backtrace supression condition was wrong; fix #2472 2014-07-15 08:34:34 +09:00
Yukihiro "Matz" Matsumoto f116097702 Merge pull request #2471 from take-cheeze/const_defined_at_ret
Use `mrb_bool` as return type of `mrb_const_defined_at`.
2014-07-15 01:19:19 +09:00
Yukihiro "Matz" Matsumoto fc8513dc95 Merge pull request #2464 from take-cheeze/inherit_verbose_flag
Inherit `$mrbtest_verbose` flag in core tests.
2014-07-15 00:06:39 +09:00
take_cheeze a9c52675e6 Set $mrbtest_verbose flag in mrb_init_test_driver. 2014-07-14 21:11:14 +09:00
take_cheeze dbece716ea Use mrb_bool as return type of mrb_const_defined_at. 2014-07-14 21:04:22 +09:00
Yukihiro "Matz" Matsumoto 23c811bda6 Merge pull request #2465 from cubicdaiya/feature/comment_style
use C style comments instead of C++ style comments
2014-07-13 08:12:14 +09:00
Tatsuhiko Kubo 5b5313ec97 use C style comments instead of C++ style comments 2014-07-13 00:24:45 +09:00
Yukihiro "Matz" Matsumoto ee9d409eed Merge pull request #2463 from take-cheeze/fix_rake
Fix rake failure since `mrbtest_objs` isn't flattened.
2014-07-12 23:28:19 +09:00
Yukihiro "Matz" Matsumoto c41f39578c Merge branch 'master' of github.com:mruby/mruby 2014-07-12 23:22:34 +09:00
Yukihiro "Matz" Matsumoto 79fb18445d rescue SystemStackError that comes from inspecting self-referencing Hashes and Arrays; fix #2461 2014-07-12 23:22:20 +09:00
Yukihiro "Matz" Matsumoto 6137bf9e71 avoid print backtrace for SystemStackError 2014-07-12 22:10:48 +09:00
take_cheeze 3b8a797a4c Fix rake failure since mrbtest_objs isn't flattened.
Append generated test object to `@test_objs` of mrbgem spec.
Add method `custom_test_init?` to check whether mrbgem has custom test init function.
2014-07-12 21:41:44 +09:00
Yukihiro "Matz" Matsumoto 4501598f27 use SystemStackError instead of RuntimeError 2014-07-12 21:29:46 +09:00
take_cheeze 4a6c651f82 Run mrbgem and core tests on minimum dependencies.
Solves #2355.

In test drivers:
* Uses `mrb_t_pass_result` to check and pass test result to main `mrb_state`.
* Adds `mrb_init_test_driver` to init test `mrb_state`.
2014-07-12 20:36:45 +09:00
cremno aff65afe97 check the return value of fwrite 2014-07-12 20:36:45 +09:00
Yukihiro "Matz" Matsumoto 61ce5892cc remove spaces after open parens 2014-07-12 20:36:45 +09:00
cremno 02d4949d5d initialize args in parse_args 2014-07-12 20:36:45 +09:00
cremno a0912df6f6 coding style adjustments 2014-07-12 20:36:44 +09:00
cremno fbcb4c20e1 update expected error message in bintest 2014-07-12 20:36:44 +09:00
cremno 85bb1f92ef rewrite stripping
Previous version ignored some errors, and didn't free memory and close files.
Now no memory will be dynamically allocated to simplify error handling.

This commit also fixes a wrong check:

  files[i] = fopen(argv[i], "wb");
  if (!ireps[i]) {

Improve error messages a bit and add missing newline to one.
2014-07-12 20:36:44 +09:00