Yukihiro "Matz" Matsumoto
05ede52239
should use non NULL scope for raise_error(); ref #2547
2014-08-20 23:38:37 +09:00
Tatsuhiko Kubo
ae2d49811a
Fix allocation-error-handlings for scope_new().
2014-08-20 12:25:29 +09:00
Yukihiro "Matz" Matsumoto
f6f31a8ecd
Merge pull request #2545 from cubicdaiya/issues/use_null_insteadof_zero
...
Use specified macro(NULL) instead of magic-number.
2014-08-20 09:26:46 +09:00
Yukihiro "Matz" Matsumoto
1251b0d5c9
Merge pull request #2542 from cubicdaiya/issues/mrb_pool_realloc_error_handlings
...
Fix error handling for mrb_pool_realloc().
2014-08-20 09:26:11 +09:00
Tatsuhiko Kubo
53a7549e1c
Fix error handling for mrb_open_allocf().
...
When DISABLE_GEMS is not defined and
a return value of mrb_open_core() is NULL,
mrb_open_allocf() may cause SEGV.
2014-08-20 05:15:21 +09:00
Tatsuhiko Kubo
5ee00453e0
Fix error handling for mrb_pool_realloc().
...
mrb_pool_alloc() may return NULL.
2014-08-20 05:07:40 +09:00
Tatsuhiko Kubo
ae306793f2
Use specified macro(NULL) instead of magic-number.
2014-08-20 04:34:03 +09:00
Tatsuhiko Kubo
ff9582833d
Fix error hanldlings in read_irep_record().
...
read_irep_record_1() and read_irep_record() may return NULL.
2014-08-19 17:42:20 +09:00
kkkkkt
2f1d12c717
revert mrb_equal method
2014-08-18 18:54:46 +09:00
kkkkkt
9da37cdfd1
refactor mruby method(fix indent. remove temporary value, duplicate procedure)
2014-08-18 10:58:48 +09:00
go kikuta
14c36f9f21
use mrb_false_value instead of mrb_bool_value
2014-08-16 02:08:51 +09:00
go kikuta
1c3d05b5b6
refactor class.c methods (fix indent, remove unneed temp value. )
2014-08-16 02:06:05 +09:00
go kikuta
d5fd823d82
removed unused variable in range_beg_len
2014-08-16 01:09:40 +09:00
Yukihiro "Matz" Matsumoto
6496195d21
Merge pull request #2533 from suzukaze/fix-indents
...
Fix indents in numeric.c
2014-08-15 22:59:18 +09:00
Jun Hiroe
2ba257ccb4
Fix indents in numeric.c
2014-08-15 20:51:43 +09:00
Jun Hiroe
9b176207a4
Refactor flo_mod func in numeric.c
2014-08-15 20:50:20 +09:00
chasonr
f7389bb1e6
Remove some roundoff from mrb_flo_to_str
2014-08-13 23:31:22 -04:00
Yukihiro "Matz" Matsumoto
6c1dfc9566
need to add space for receiver to proc env; fix #2525
2014-08-13 23:58:32 +09:00
Yukihiro "Matz" Matsumoto
2b9e5e751b
add write barrier when iv is copied
2014-08-13 22:55:32 +09:00
Yukihiro "Matz" Matsumoto
170ba511f2
remove unnecessary mrb_float casting; ref #2531
2014-08-13 21:58:52 +09:00
kkkkkt
a9b37bff4b
refactor mrb_hash_shift, num_pow, flo_eq, flo_finite_p method
2014-08-13 18:26:58 +09:00
kkkkkt
b27738f036
changed some string method's mrb-aspec
2014-08-12 16:20:02 +09:00
Tomoyuki Sahara
c4f5c2473a
mrb_str_bytesize is a carbon copy of mrb_str_size. remove it.
...
mruby core does not support any character encodings but ASCII.
2014-08-11 17:46:40 +09:00
kkkkkt
513be0052e
changed mrb_str_size and mrb_str_bytesize comments.
2014-08-11 12:02:31 +09:00
Kouhei Sutou
e75e2083fd
Fix a bug that class variable can't be referenced from class method
...
Class method defined in singleton class should be evaluated in class
context not singleton class context.
fix #2515
2014-08-09 15:06:17 +09:00
Yukihiro "Matz" Matsumoto
0e45aa0066
Merge pull request #2517 from kkkkkt/remove_nonneed_space
...
removed non-need space
2014-08-08 12:11:40 +09:00
go kikuta
513f24e908
removed non-need space
2014-08-07 23:11:10 +09:00
Jun Hiroe
33ace171c4
Fix typo in gc.c
2014-08-07 21:16:32 +09:00
Yukihiro "Matz" Matsumoto
918d4dc85c
Merge pull request #2512 from suzukaze/gc-state-root
...
Rename GC_STATE_NONE GC_STATE_ROOT
2014-08-07 00:01:31 +09:00
Yukihiro "Matz" Matsumoto
f42e6287b8
Merge pull request #2513 from suzukaze/refactor-gc
...
Refactor incremental_sweep_phase() in gc.c
2014-08-07 00:00:31 +09:00
Jun Hiroe
5eb3a8caa6
Refactor incremental_sweep_phase() in gc.c
2014-08-06 23:22:05 +09:00
Jun Hiroe
21f583783d
Rename GC_STATE_NONE GC_STATE_ROOT
2014-08-06 22:59:48 +09:00
bggd
d95f77c1cb
Fix a typo in etc.c
2014-08-06 21:36:36 +09:00
Jun Hiroe
3569723ab3
Refactor obj_free() in gc.c
2014-08-05 23:16:01 +09:00
Yukihiro "Matz" Matsumoto
fce644df59
Merge pull request #2508 from iij/pr-mrb-str-to-cstr-returns-mutable
...
revert accidental constify.
2014-08-05 16:32:52 +09:00
Tomoyuki Sahara
412b9eb827
revert accidental constify.
2014-08-05 15:02:27 +09:00
Yukihiro "Matz" Matsumoto
58cb1a2e8b
write barrier doc update
2014-08-05 11:29:08 +09:00
Yukihiro "Matz" Matsumoto
920ce88b50
Merge branch 'add-gc-docs' of https://github.com/suzukaze/mruby into suzukaze-add-gc-docs
2014-08-05 11:21:45 +09:00
Jun Hiroe
b20121f9e6
Add write_barrier docs
2014-08-05 02:10:02 +09:00
Yukihiro "Matz" Matsumoto
53687a849b
Merge branch 'master' of github.com:mruby/mruby
2014-08-04 22:36:09 +09:00
Yukihiro "Matz" Matsumoto
ea80e82852
Merge branch 'master' of github.com:mruby/mruby
2014-08-04 16:28:02 +09:00
cremno
3bf244e67c
fix linkage of range_beg_len and mrb_range_beg_len
2014-08-04 05:52:09 +02:00
Yukihiro "Matz" Matsumoto
0fa3668e91
Merge pull request #2498 from cremno/msvc-snprintf
...
MSVC: add simple (v)snprintf implementation
2014-08-04 10:51:32 +09:00
Yukihiro "Matz" Matsumoto
29bfbac86d
Merge pull request #2501 from cremno/static-mrb_str_size
...
change linkage of mrb_str_size to internal
2014-08-04 10:48:11 +09:00
Yukihiro "Matz" Matsumoto
50a6b48d53
Merge pull request #2497 from cremno/fix-conversion-warnings
...
fix conversion warnings (in gc.c)
2014-08-04 10:44:44 +09:00
Yukihiro "Matz" Matsumoto
37a75b096e
Merge pull request #2496 from cremno/remove-unnecessary-char_bit-check
...
remove unnecessary CHAR_BIT != 8 check
2014-08-04 10:44:05 +09:00
cremno
7dabb33cf0
change linkage of mrb_str_size to internal
...
Use RSTRING_LEN to get the length.
2014-08-04 01:14:23 +02:00
cremno
b6e27218ad
MSVC: add simple (v)snprintf implementation
...
_snprintf is not C99's snprintf!
This simple implementation, unlike _snprintf,
always null-terminates and returns the expected
return value (in most cases).
Other C99 behaviors (like format specifiers) require
adding a complete snprintf implementation.
Do we want or need that?
The same applies to vsnprintf (aka _vsnprintf).
2014-08-03 21:15:48 +02:00
cremno
a70413c4ea
fix conversion warnings
...
Those warnings are not enabled by default,
but getting rid of them doesn't hurt.
2014-08-03 19:54:31 +02:00
Yukihiro "Matz" Matsumoto
6aa6e75f75
rename obsolete mrb_special_const_p to mrb_immediate_p
2014-08-04 00:50:03 +09:00