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
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
Yukihiro "Matz" Matsumoto
ef432d7524
Merge pull request #2451 from take-cheeze/remove_mem_out_check
...
Remove unnecessary out of memory check in `ary_expand_capa`.
2014-07-08 23:07:30 +09:00
Yukihiro "Matz" Matsumoto
94c59d0597
Merge pull request #2449 from take-cheeze/mrb_ary_resize
...
Add new API `mrb_ary_resize`(mruby implementation of `rb_ary_resize`).
2014-07-08 23:01:22 +09:00
take_cheeze
ab779b7ad8
Use mrb_print_error to print exception instead of mrb_p.
2014-07-08 22:25:32 +09:00
take_cheeze
5bb0a1fb5e
Print error instead of printing return value of report.
2014-07-08 22:24:35 +09:00
take_cheeze
5b0f900faa
Remove unnecessary out of memory check in ary_expand_capa.
...
Since `mrb_realloc` raises when failed to allocate memory.
2014-07-07 21:58:38 +09:00
take_cheeze
13d9631e21
Add new API mrb_ary_resize(mruby implementation of rb_ary_resize).
2014-07-06 22:23:29 +09:00
Yukihiro "Matz" Matsumoto
5c50bcd20a
reformat else part; ref #2447
2014-07-06 21:00:57 +09:00
Yukihiro "Matz" Matsumoto
1300770cec
Merge pull request #2447 from take-cheeze/reduce_ary_clear_alloc
...
Reduce allocation in shared RArray clearing.
2014-07-06 19:30:29 +09:00
take_cheeze
6cbcbd5290
Reduce allocation in shared RArray clearing.
2014-07-05 21:10:02 +09:00
Yukihiro "Matz" Matsumoto
c16bb3fee3
Merge pull request #2446 from take-cheeze/fix_mrb_flo_to_fixnum
...
Fix type checking in `mrb_flo_to_fixnum`.
2014-07-04 21:52:51 +09:00
take_cheeze
a50464fe01
Fix type checking in mrb_flo_to_fixnum.
2014-07-04 16:16:06 +09:00
Yukihiro "Matz" Matsumoto
742f85752d
Merge pull request #2444 from take-cheeze/fix_mrb_hash_tbl
...
Always return non-NULL in `mrb_hash_tbl`.
2014-07-03 23:41:47 +09:00
take_cheeze
77aefa1d03
Always return non-NULL in mrb_hash_tbl.
2014-07-03 22:56:15 +09:00
Yukihiro "Matz" Matsumoto
d2910a162d
Merge pull request #2442 from suzukaze/use-mrb-str-nofree-macro
...
Use RSTR_NOFREE_P in state.c
2014-07-03 21:45:28 +09:00
Yukihiro "Matz" Matsumoto
65512f6557
Merge pull request #2443 from suzukaze/use-mrb-str-emebed-macro
...
Use *_EMBED_* macro in state.c
2014-07-03 21:44:02 +09:00
Yukihiro "Matz" Matsumoto
628615d980
Merge pull request #2432 from take-cheeze/toolchains
...
Add method `toolchains` and `primary_toolchain` to `MRuby::Build`.
2014-07-03 21:43:12 +09:00
Jun Hiroe
569ea74021
Use *_EMBED_* macro in state.c
2014-07-03 18:26:42 +09:00
Jun Hiroe
bd82d7c794
Use RSTR_NOFREE_P in state.c
2014-07-03 18:10:51 +09:00
Yukihiro "Matz" Matsumoto
9a5f98fec8
Merge pull request #2440 from suzukaze/add-pr-docs2
...
Add a caution to Your Pull Request document. (suggested by Matz) close #2437
2014-07-03 08:49:05 +09:00
Jun Hiroe
954867828b
Add a caution to Your Pull Request document.
2014-07-03 08:27:18 +09:00
Yukihiro "Matz" Matsumoto
d8cc39e3d3
Merge branch 'master' of github.com:mruby/mruby
2014-07-03 08:12:05 +09:00
Yukihiro "Matz" Matsumoto
f452abd138
fiber stack should not be cleared by zero when MRB_NAN_BOXING is set; close #2439
2014-07-03 08:11:52 +09:00
Yukihiro "Matz" Matsumoto
99438947bf
Merge pull request #2438 from AE9RB/upstream
...
Ensure RVALUE is large enough for word boxing types.
2014-07-03 07:19:53 +09:00
David Turnbull
5486e8901a
Ensure RVALUE is large enough for word boxing types.
2014-07-02 09:50:38 -07:00
Yukihiro "Matz" Matsumoto
bcfcbc94bc
Merge pull request #2436 from take-cheeze/mrb_args_arg
...
Use `MRB_ARGS_ARG(n, o)` instead of `MRB_ARGS_REQ(n) | MRB_ARGS_OPT(o)`.
2014-07-02 22:21:50 +09:00
take_cheeze
8106760077
Use MRB_ARGS_ARG(n, o) instead of MRB_ARGS_REQ(n) | MRB_ARGS_OPT(o).
2014-07-02 21:11:12 +09:00
Yukihiro "Matz" Matsumoto
e749267909
time overflow check; ref #2337
2014-07-02 10:28:10 +09:00
Yukihiro "Matz" Matsumoto
ad50277549
Merge pull request #2434 from AE9RB/master
...
Fix MRB_WORD_BOXING by correctly telling GC which mrb_value types are im...
2014-07-02 09:13:37 +09:00
David Turnbull
ed5c13bc11
Fix MRB_WORD_BOXING by correctly telling GC which mrb_value types are immediate.
2014-07-01 15:23:23 -07:00
Yukihiro "Matz" Matsumoto
aa441c2a34
Merge pull request #2433 from take-cheeze/mirb_bool_val
...
Use `TRUE` instead of `1` in mirb code.
2014-07-02 00:15:09 +09:00
take_cheeze
a656daf4c5
Use TRUE instead of 1 in mirb code.
2014-06-30 23:26:23 +09:00
take_cheeze
ef57fd55fb
Add method toolchains and primary_toolchain to MRuby::Build.
...
* To check imported toolchains for setting up toolchain specific things.
* `primary_toolchain` returns the main toolchain name of the build.
2014-06-29 20:32:12 +09:00
Yukihiro "Matz" Matsumoto
618ef17c8c
Merge pull request #2431 from ksss/warning-objectspace
...
Reduce warning for enumeration
2014-06-29 18:40:20 +09:00
ksss
bdbc1f003e
Reduce warning for enumeration
...
22 enumeration values not handled in switch: 'MRB_TT_FALSE',
'MRB_TT_FREE', 'MRB_TT_TRUE'... [-Wswitch]
2014-06-29 09:52:18 +09:00
Yukihiro "Matz" Matsumoto
684f8ec575
Merge pull request #2430 from SHyx0rmZ/remove-duplicate
...
Sacrifice some micro-optimization to remove duplicate code
2014-06-28 17:15:30 +09:00
Yukihiro "Matz" Matsumoto
344b7d819f
git push origin masterMerge branch 'take-cheeze-fix_each_obj_crash'
2014-06-28 01:09:36 +09:00
Yukihiro "Matz" Matsumoto
9726dbefb4
remove String class initialization in error.c; ref #2429
2014-06-28 01:09:09 +09:00
Yukihiro "Matz" Matsumoto
9a28ae921b
ObjectSpace.each_object should filter out internal (i.e. obj->c == NULL) objects; ref #2429
2014-06-28 01:08:23 +09:00