Yukihiro "Matz" Matsumoto
7a5d3c19c6
remove test for succ on Unicode (non-ASCII) char; #2520
2014-08-08 23:16:12 +09:00
Yukihiro "Matz" Matsumoto
0381de3ee6
Merge branch 'string-succ' of https://github.com/mattn/mruby into mattn-string-succ
2014-08-08 23:15:14 +09:00
mattn
dc0c354658
Add String#succ, String#succ!, String#next, String#next!
2014-08-08 17:58:07 +09:00
Satoshi Odawara
432e8e9ea9
fixed evaluation context of eval(string) and instance_eval(string)
2014-08-08 16:59:40 +09:00
Yukihiro "Matz" Matsumoto
569c7dec5f
move StopIteration to core; close #2518
2014-08-08 16:08:53 +09:00
Yukihiro "Matz" Matsumoto
8dbf7787d5
Merge pull request #2510 from cremno/mruby-strip-use-mrb_open_core
...
mruby-strip doesn't need mrbgems
2014-08-06 11:48:10 +09:00
kkkkkt
9c78fc8443
added Math.cos and Math.tan test case
2014-08-05 11:27:50 +09:00
cremno
cc4c22c5f5
mruby-strip doesn't need mrbgems
...
Reduces executable size by more than 50% (409->171 KB).
2014-08-04 12:26:36 +02:00
Yukihiro "Matz" Matsumoto
206f89e209
add MRB_API modifiers to mruby API functions
2014-08-04 00:47:08 +09:00
Yukihiro "Matz" Matsumoto
0878900fda
Time#to_i and Time#usec should care about mrb_int overflow on MRB_INT16; ref #2495
2014-08-03 20:36:20 +09:00
Yukihiro "Matz" Matsumoto
16ddb16608
Merge pull request #2462 from cremno/mirb-malloc-history_path
...
mirb: allocate `history_path` dynamically
2014-07-30 08:41:26 +09:00
Yukihiro "Matz" Matsumoto
4b69121284
restore mrb_get_args() in f_instance_eval to check arguments type
2014-07-22 08:38:38 +09:00
Yukihiro "Matz" Matsumoto
7457da6aa1
exception in instance_eval should not exit mrb_run; fix #2483
2014-07-22 07:29:26 +09:00
Yukihiro "Matz" Matsumoto
ce7dfe97ad
Merge pull request #2475 from take-cheeze/full_core_list
...
Check mrbgem.rake instead of directory to ignore empty directories in full-core gembox.
2014-07-17 01:28:36 +09:00
take_cheeze
568b2c79b1
Check mrbgem.rake instead of directory to ignore empty directories in full-core.
2014-07-16 22:49:06 +09:00
Yukihiro "Matz" Matsumoto
2dcc2444fa
need to call write_barrier on every fiber context switch
2014-07-16 12:58:37 +09:00
Yukihiro "Matz" Matsumoto
abf52c7773
remove unused local variables; ref #2473
2014-07-16 05:21:55 +09:00
take_cheeze
dd34decdfc
Implement string compiling instance_eval method.
2014-07-15 22:33:14 +09:00
Yukihiro "Matz" Matsumoto
d5dd3e9472
fiber stack allocation size should be bigger than irep->nregs
2014-07-15 17:17:58 +09:00
Tatsuhiko Kubo
5b5313ec97
use C style comments instead of C++ style comments
2014-07-13 00:24:45 +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
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
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
Yukihiro "Matz" Matsumoto
ec45dbe16a
remove spaces after open parens
2014-07-11 09:11:49 +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
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
David Turnbull
249f05e7d7
Clean up value.h and mrb_value boxing
2014-07-09 06:32:11 +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
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
take_cheeze
a656daf4c5
Use TRUE instead of 1 in mirb code.
2014-06-30 23:26:23 +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
9a28ae921b
ObjectSpace.each_object should filter out internal (i.e. obj->c == NULL) objects; ref #2429
2014-06-28 01:08:23 +09:00
take_cheeze
f9076230f2
Fix crash in method call in ObjectSpace.each_object block.
...
* Filter `MRB_TT_ENV` and `MRB_TT_ICLASS`.
* Set `mrb->string_class` in `mrb_init_exception` instead.
2014-06-28 00:45:47 +09:00
ksss
9cafc5e105
Implement Proc#parameters
2014-06-25 16:05:33 +09:00
Santa Zhang
8d5f67e6f3
add a few const qualifier
2014-06-24 15:16:13 -04:00
take_cheeze
257725cecb
Add Symbol#intern.
2014-06-24 21:44:22 +09:00