Yukihiro "Matz" Matsumoto
506cda5a28
Merge branch 'master' of github.com:mruby/mruby
2014-07-09 07:17:40 +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
take_cheeze
13d9631e21
Add new API mrb_ary_resize(mruby implementation of rb_ary_resize).
2014-07-06 22:23:29 +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
ksss
b0edba434c
proc.h: MRB_ASPEC_REST() macro return 1 or 0
...
MRB_ASPEC_REST() is macro just only checks whether truthy or falsy.
And truthy means exist 1 rest argument in current proc.
2014-06-25 13:54:11 +09:00
Santa Zhang
8d5f67e6f3
add a few const qualifier
2014-06-24 15:16:13 -04: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
45e04c996e
clear local variables for the first execution of mrb_context_run(); close #2405
2014-06-21 18:24:26 +09: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
Jun Hiroe
9c259c501a
Add NOFREE macros
2014-06-11 01:00:35 +09:00
Yukihiro "Matz" Matsumoto
fe95f44013
rename mrb_atexit to mrb_state_atexit to clarify a func will be called at the end of state, not process; ref #2211
2014-06-10 17:59:56 +09:00
take_cheeze
4de468e754
Fallback to mrb_assert instead of dirty trick.
2014-06-09 18:47:07 +09:00
take_cheeze
4a27dd0e8a
Use _Static_assert when C11 is available and use it in pointer size check.
2014-06-08 23:16:51 +09:00
Yukihiro "Matz" Matsumoto
32e450166f
move STR_* macros to mruby/string.h with renaming
2014-06-07 22:16:16 +09:00
cremno
c4c470696b
implement ISASCII correctly
2014-06-05 20:18:23 +02:00
Yukihiro "Matz" Matsumoto
b1dd57efa1
move IS_EVSTR macro that should be private to src/string.c
2014-06-06 00:19:46 +09:00
Yukihiro "Matz" Matsumoto
a763d11490
Merge branch 'atexit' of https://github.com/take-cheeze/mruby into take-cheeze-atexit
2014-06-05 13:22:28 +09:00
cremno
84e1b0a9d0
upcoming Visual Studio versions provide snprintf
2014-06-04 06:04:06 +02:00
Yukihiro "Matz" Matsumoto
d62ce565c6
use pre-allocated RuntimeError for out-of-memory
2014-06-04 11:33:15 +09:00
take_cheeze
acec9d1ff1
Implement NoMethodError#args.
2014-06-02 22:38:02 +09:00
Yukihiro "Matz" Matsumoto
6bf1ee78c8
add internal function mrb_toplevel_run_keep() to keep stack contents; close #2326
2014-05-30 15:25:58 +09:00
Yukihiro "Matz" Matsumoto
3cbae53541
move prototype of mrb_format() from error.h to mruby.h; ref #2274
2014-05-20 14:53:42 +09:00
Yukihiro "Matz" Matsumoto
54c2dcf231
allow NULL (no variable) in lvar section of mrb format; fix #2294
...
This fix use UINT16_MAX for NULL symbol tag, that means maximum symbol length
is not UINT16_MAX-1.
2014-05-19 18:39:37 +09:00
Yukihiro "Matz" Matsumoto
4a6650b191
Merge pull request #2287 from yui-knk/add-space
...
Add a space aftre bracket.
2014-05-18 21:09:04 +09:00
yui-knk
45305686fe
Add a space aftre bracket.
2014-05-18 19:40:17 +09:00
yui-knk
087bab2335
Remove space.
2014-05-18 13:32:34 +09:00
yui-knk
0c96ba4bd8
Replace tab with spaces.
2014-05-17 00:49:08 +09:00
ksss
6a7f133d02
include/mruby/opcode.h fix operation doc
...
src/vm.c fix operation doc
[ci skip]
2014-05-16 20:44:54 +09:00
Yukihiro "Matz" Matsumoto
f0b86f36c3
move mrb_irep_remove_lv from etc.c to mruby-bin-strip gem
2014-05-15 17:13:16 +09:00
take_cheeze
30e0dc7956
Support LVAR section removing.
2014-05-15 15:08:30 +09:00
Yukihiro "Matz" Matsumoto
2be348a0f1
mv opcode.h -> include/mruby/opcode.h and remove duplication from mruby-eval gem
2014-05-14 23:14:08 +09:00
Yukihiro "Matz" Matsumoto
9184d254e2
resize register number in LVAR section from 32bits to 16bits
2014-05-14 17:32:30 +09:00
Yukihiro "Matz" Matsumoto
7a5d8a40fe
rename lv section header from LOCV to LVAR
2014-05-14 17:26:45 +09:00
Yukihiro "Matz" Matsumoto
10459a5eb2
Merge branch 'dump_lv' of https://github.com/take-cheeze/mruby into take-cheeze-dump_lv
2014-05-14 11:27:41 +09:00
Yukihiro "Matz" Matsumoto
c12f64271a
fix overflow error like #2244 on MRB_WORD_BOXING
2014-05-13 23:15:44 +09:00
Yukihiro "Matz" Matsumoto
190d9ebbe2
should use mrb_type() for the sake of MRB_WORD_BOXING
2014-05-13 21:47:32 +09:00
take_cheeze
64300b2c43
Add API mrb_atexit().
...
`mrb_final_mrbgems` will be called as mrb_state atexit function.
Maybe useful in #1844 .
2014-05-08 22:19:14 +09:00
take_cheeze
208bafba2d
Move Kernel#fail definition to mruby-kernel-ext mrbgem.
2014-05-07 00:01:30 +09:00
cremno
cf8df563c0
add function for checked mrb_int subtraction
2014-05-05 15:28:26 +02:00
cremno
0f39304265
add function for checked mrb_int addition
2014-05-05 15:24:22 +02:00
cremno
ff03cea79b
temporary macros for checked arithmetic functions
2014-05-05 15:22:42 +02:00
cremno
86cfcd20d6
simply use isfinite
2014-05-04 01:50:17 +02:00
Yukihiro "Matz" Matsumoto
f977772359
new macro mrb_int(mrb,x) to retrieve mrb_int from mrb_value with conversion if needed
2014-05-03 23:45:40 +09:00
Yukihiro "Matz" Matsumoto
c3aa436e2c
Merge branch 'values_at' of https://github.com/take-cheeze/mruby into take-cheeze-values_at
2014-05-03 21:13:03 +09:00
cremno
36eef0c222
add namespace prefix to dump_irep
2014-05-02 22:29:12 +02:00