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
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
take_cheeze
1633469e9c
Reduce string creation in Symbol#casecmp by using case!.
2014-06-23 19:51:27 +09:00
take_cheeze
7015493efb
Reduce string creation of length, size, empty? method of Symbol extension.
2014-06-23 19:51:27 +09:00
take_cheeze
0a6b54acd6
Reduce new string creation in capitalize, downcase, upcase method of Symbol class extension.
...
Add test to check unmodified result is working.
2014-06-23 19:51:27 +09:00
Akito Mochizuki
ec04fa7e8d
Modify return value of String#slice! if idx == self.size
2014-06-19 17:34:17 +09:00
Yukihiro "Matz" Matsumoto
d9985631e7
Merge pull request #2396 from take-cheeze/superclass_check
...
Move direct superclass checking to `test/t/superclass.rb`.
2014-06-17 11:51:04 +09:00
Jun Hiroe
00fa8097f9
Implement String#slice_bang
2014-06-15 21:11:54 +09:00
take_cheeze
77047b5ed4
Test all ISO defined classes direct superclass except Object class.
...
Move mrbgems ISO direct superclass test to `superclass.rb`.
Skips test if class isn't defined.
Close #2332 .
2014-06-15 17:07:01 +09:00
ksss
f1e15b0236
String#clear: use String#replace to simple
2014-06-11 14:46:52 +00:00
Jun Hiroe
9c259c501a
Add NOFREE macros
2014-06-11 01:00:35 +09:00
Yukihiro "Matz" Matsumoto
f1b1a8acd1
Merge pull request #2376 from kou/patch-1
...
Add a missing space after ","
2014-06-09 23:26:54 +09:00
Kouhei Sutou
4f3114dbc9
Add a missing space after ","
2014-06-09 23:00:02 +09:00
take_cheeze
d386b35337
Fix Time.at args spec.
2014-06-09 16:34:04 +09:00
take_cheeze
aa187956cf
Add test for end-of-program marker.
2014-06-08 01:38:44 +09:00
Yukihiro "Matz" Matsumoto
6459a98448
move String#clear to mruby-string-ext; ref #2370
2014-06-07 22:28:42 +09:00
Yukihiro "Matz" Matsumoto
76012a885d
remove UTF-8 strings from mruby-string-ext test
2014-06-07 22:23:25 +09:00
Yukihiro "Matz" Matsumoto
32e450166f
move STR_* macros to mruby/string.h with renaming
2014-06-07 22:16:16 +09:00
Yukihiro "Matz" Matsumoto
232b8b07e4
Merge branch 'ascii' of https://github.com/cremno/mruby into cremno-ascii
2014-06-06 12:48:48 +09:00
Yukihiro "Matz" Matsumoto
ccd871bcca
reduce calling mrb_sym2name_len() from struct.c; ref #2365
2014-06-06 09:25:29 +09:00
Yukihiro "Matz" Matsumoto
b533917aa6
Merge pull request #2365 from cremno/mruby-struct-function-changes
...
various mruby-struct function changes
2014-06-06 09:17:37 +09:00
cremno
71c7d58736
partially revert 1a5841b for mirb
...
Fix compilation fail caused by GNU Readline and `ISPRINT`.
Also add missing `unsigned char` cast.
2014-06-06 00:13:24 +02:00
cremno
1a5841b4b1
use uppercase US-ASCII ctype macros
2014-06-05 21:00:47 +02:00
cremno
f9f864d4dd
don't (re-)define ascii_isspace and isascii
...
`ISSPACE` and `ISASCII` can be used instead.
2014-06-05 20:27:17 +02:00
cremno
025b8f7644
mruby-struct: implement mrb_is_(local|const)_id
2014-06-05 18:48:17 +02:00