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
cremno
c9b7cee2f6
check mrb_open return value
2014-07-12 20:36:44 +09:00
take_cheeze
c6ce43303d
Add SyntaxError test and don't print compilation error to stderr in eval.
2014-07-12 20:36:44 +09:00
take_cheeze
d1eea450bf
Use mrb_parse_nstring instead in eval.
2014-07-12 20:36:44 +09:00
cremno
82a335643e
call mrb_malloc_simple instead of malloc
2014-07-12 11:50:51 +02:00
Yukihiro "Matz" Matsumoto
a16a53b5eb
Merge pull request #2458 from take-cheeze/min_dep_test
...
Support minimum dependency test.
2014-07-12 17:50:44 +09:00
take_cheeze
03866f25f8
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 14:11:18 +09:00
Yukihiro "Matz" Matsumoto
4f66de36c4
Merge pull request #2460 from cremno/mrb_dump_irep_binary-report-fwrite-failure
...
check the return value of `fwrite`
2014-07-12 09:43:38 +09:00
cremno
9d597f4d9f
allocate history_path dynamically
...
`PATH_MAX` doesn't have to be defined and if it is, then its value is
usually incorrect (possible buffer overflow).
Use `malloc` and `snprintf` instead to prevent this.
https://www.gnu.org/software/hurd/community/gsoc/project_ideas/maxpath.html
2014-07-11 13:03:13 +02:00
cremno
55a31f3f23
check the return value of fwrite
2014-07-11 08:44:01 +02:00
Yukihiro "Matz" Matsumoto
ec45dbe16a
remove spaces after open parens
2014-07-11 09:11:49 +09:00
Yukihiro "Matz" Matsumoto
e79478d0b4
Merge pull request #2457 from cremno/mruby-strip-rewrite
...
mruby-bin-strip rewrite
2014-07-10 08:45:21 +09:00
cremno
10bd78e85d
initialize args in parse_args
2014-07-09 16:57:06 +02:00
cremno
c90d923273
coding style adjustments
2014-07-09 16:57:05 +02:00
cremno
b4c1a943d1
update expected error message in bintest
2014-07-09 16:57:04 +02:00
cremno
41961ae6d0
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-09 16:49:47 +02:00
cremno
8df63b4d1f
check mrb_open return value
2014-07-09 16:29:15 +02:00
Yukihiro "Matz" Matsumoto
835da83ca1
Merge pull request #2456 from take-cheeze/refactor_eval
...
Refactor eval.
2014-07-09 23:06:24 +09:00
Yukihiro "Matz" Matsumoto
42110dcee1
Merge pull request #2455 from cremno/readint_mrb_int-check-base
...
invalid base shouldn't silently fail
2014-07-09 23:05:01 +09:00
Yukihiro "Matz" Matsumoto
334b1ac485
Merge pull request #2454 from cremno/remove-mrb_str_body
...
remove unused `mrb_str_body`
2014-07-09 23:01:37 +09:00
take_cheeze
dfe65423da
Add SyntaxError test and don't print compilation error to stderr in eval.
2014-07-09 22:03:21 +09:00
take_cheeze
b344b29345
Use mrb_parse_nstring instead in eval.
2014-07-09 22:02:33 +09:00
cremno
ef59f553a3
invalid base shouldn't silently fail
...
Revert 44a5809224 and check range of
`base` with `mrb_assert`.
It actually can only be either 2, 8, 10 or 16 (and never 0), unless
mruby sources are modified. But I don't see a reason to impose further
limits.
2014-07-09 13:55:08 +02:00
cremno
881f054cbf
remove unused mrb_str_body
2014-07-09 11:56:29 +02:00
Yukihiro "Matz" Matsumoto
023908afc2
remove unused return_value
2014-07-09 17:01:59 +09:00
Yukihiro "Matz" Matsumoto
42d4eb9fe4
Merge pull request #2452 from take-cheeze/test_exc
...
Use `mrb_print_error` in test error handling.
2014-07-09 13:34:38 +09:00
Yukihiro "Matz" Matsumoto
506cda5a28
Merge branch 'master' of github.com:mruby/mruby
2014-07-09 07:17:40 +09:00
Yukihiro "Matz" Matsumoto
7baa56bad5
Merge branch 'AE9RB-cleanup_mrb_value'
2014-07-09 07:15:59 +09:00
Yukihiro "Matz" Matsumoto
df4c298e3b
rename boxing_nix.h to boxing_no.h
2014-07-09 07:06:58 +09:00
Yukihiro "Matz" Matsumoto
61bba9accf
rename word boxing functions
2014-07-09 06:40:56 +09:00
Yukihiro "Matz" Matsumoto
0cf86dea0e
rename SET_FIXNUM_VALUE to SET_INT_VALUE since it sets mrb_int value
2014-07-09 06:40:19 +09:00
David Turnbull
249f05e7d7
Clean up value.h and mrb_value boxing
2014-07-09 06:32:11 +09:00