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
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
506cda5a28
Merge branch 'master' of github.com:mruby/mruby
2014-07-09 07:17:40 +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
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
take_cheeze
6cbcbd5290
Reduce allocation in shared RArray clearing.
2014-07-05 21:10:02 +09:00
take_cheeze
a50464fe01
Fix type checking in mrb_flo_to_fixnum.
2014-07-04 16:16:06 +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
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
David Turnbull
5486e8901a
Ensure RVALUE is large enough for word boxing types.
2014-07-02 09:50:38 -07: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
919af61766
initialize nomem_err->mesg->c before exposing to Ruby world; close #2428
2014-06-27 22:39:39 +09:00
Yukihiro "Matz" Matsumoto
4ce0a7653b
reduce mrb_funcall in exception allocation
2014-06-27 22:10:21 +09:00
Patrick Pokatilo
73c086b4c7
Sacrifice some micro-optimization to remove duplicate code
2014-06-26 22:22:21 +02:00
ksss
f092ef6b14
OP_ENTER: Rewrite split aspec use macros
2014-06-25 13:54:11 +09:00
ksss
19b82944f8
Proc#arity return 0 when opcode was not OP_ENTER
2014-06-25 08:48:08 +09:00
ksss
14767a5597
Not create local variables in scope_new
2014-06-25 05:52:07 +09:00
Yukihiro "Matz" Matsumoto
faa3c52a8d
Merge branch 'master' of github.com:mruby/mruby
2014-06-25 02:37:51 +09:00
Yukihiro "Matz" Matsumoto
9874aafbf0
Merge pull request #2333 from yui-knk/fix/dump
...
Fix to not print unnecessary comma.
2014-06-25 02:37:39 +09:00
Yukihiro "Matz" Matsumoto
5b590d977f
revert #2344 because of #2395
2014-06-25 02:36:02 +09:00
Yukihiro "Matz" Matsumoto
ac0addd98f
refacor mrb_open_core() to reduce a local variable
2014-06-23 20:06:17 +09:00
take_cheeze
baca365caa
rename mrb_open_without_mrbgems to mrb_open_core
2014-06-23 20:06:17 +09:00
take_cheeze
36813c87f6
make default allocf public to use it with mrb_open_without_mrbgems
2014-06-23 20:06:17 +09:00
take_cheeze
6bb56ed920
add mrb_open_without_mrbgems API
2014-06-23 20:06:17 +09:00
Yukihiro "Matz" Matsumoto
c938b2f656
Merge pull request #2399 from ksss/cfunc-proc
...
Proc class should be defined before a first method definition
2014-06-23 09:02:53 +09:00
Yukihiro "Matz" Matsumoto
45e04c996e
clear local variables for the first execution of mrb_context_run(); close #2405
2014-06-21 18:24:26 +09:00
Yukihiro "Matz" Matsumoto
b25fd05ee5
Merge branch 'suzukaze-delete-string.slice_comment'
2014-06-18 15:56:54 +09:00
Yukihiro "Matz" Matsumoto
8459b39886
update String#slice doc
2014-06-18 15:56:34 +09:00
Yukihiro "Matz" Matsumoto
abb682eaf1
Merge pull request #2401 from take-cheeze/fixed_state_atexit_stack
...
Add fixed state atexit stack feature.
2014-06-17 11:54:50 +09:00
Yukihiro "Matz" Matsumoto
44a834f30b
Merge pull request #2402 from katmutua/master
...
[minor-fix]Update value pointer comments
2014-06-17 11:28:14 +09:00
katmutua
17e3203cfc
[minor-fix]Minor cleanups on variable.c comments
2014-06-16 14:13:24 -03:00
take_cheeze
62f41ddd3b
Add fixed state atexit stack feature.
...
Adds following macros:
* MRB_FIXED_STATE_ATEXIT_STACK (not defined by default)
* When defined enables fixed state atexit stack.
* MRB_FIXED_STATE_ATEXIT_STACK_SIZE (default value: 5)
* This macro will be ignored when `MRB_FIXED_STATE_ATEXIT_STACK` isn't defined.
* When `mrb_state_atexit` is called more than this value it will raise runtime error.
2014-06-16 16:03:35 +09:00
ksss
907a299790
arity for cfunc is not implemented yet
2014-06-15 22:38:22 +09:00
ksss
1cced27a79
Proc class define before a first method
...
mrb_define_method setting mrb->proc_class for method proc
2014-06-15 22:34:46 +09:00
Jun Hiroe
eab4a7492f
Unsupported Regex in mrb_str_aref_m()
2014-06-15 21:21:20 +09:00
Yukihiro "Matz" Matsumoto
0042e586db
Merge pull request #2344 from yui-knk/fix-locals
...
Change to always use locals->car->car.
2014-06-14 01:03:39 +09:00
Jose Narvaez
61032c5ab0
Rolling back change induced because of 'clang-analizer' report.
2014-06-13 16:50:02 +01:00
Jose Narvaez
45b8562d8d
Using 'mrb_assert' instead of an returning 0 while checking s->irep in codegen.c.
2014-06-13 16:44:22 +01:00
Jose Narvaez
6b642637b3
Fixed dead assignment in 'parser.y' reported by 'clang-analyzer'
2014-06-13 12:11:28 +01:00
Jose Narvaez
1a8e0ba4e8
Fixed dead assignment in 'parser.y' reported by 'clang-analyzer'
2014-06-13 12:11:23 +01:00
Jose Narvaez
a250050077
Fixed dead assignment in 'parser.y' reported by 'clang-analyzer'
2014-06-13 12:06:56 +01:00
Jose Narvaez
13abc9c4a1
Revert "Fixed dereference to null pointer in 'codegen.c' reported by 'clang-analyzer'"
...
This reverts commit 29f14e728d .
2014-06-13 10:54:18 +01:00