Yukihiro "Matz" Matsumoto
20dc629b11
inline str_discard(); ref #2370
2014-06-07 16:51:40 +09:00
Jun Hiroe
9709fe79a3
Implement String#clear
2014-06-07 16:15:32 +09:00
take_cheeze
7f870f601f
Treat partial hook success '\n' to fix #2361 .
...
Now it will parse the #2361 code as:
```
module A
end
module B
end
```
instead of
```
module A
end module B
end
```
2014-06-06 21:29:42 +09:00
Yukihiro "Matz" Matsumoto
d3fda42eb6
Merge pull request #2359 from take-cheeze/src_gen_dep
...
Add generator script to dependency so that it will regenerate C codes when it's modified.
2014-06-06 16:38:11 +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
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
69da21bcb4
ISSPACE evaluates its argument multiple times
2014-06-05 20:22:20 +02:00
take_cheeze
4c1fb65d85
Release mrb->atexit_stack on mrb_close.
2014-06-06 01:04:12 +09: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
Yukihiro "Matz" Matsumoto
e52533a703
update Kernel#raise/fail argument description
2014-06-05 13:17:29 +09:00
take_cheeze
fb3c2f6b08
Add generator script to dependency so that it will regenerate C codes when it's modified.
2014-06-04 22:53:36 +09:00
Yukihiro "Matz" Matsumoto
8a9e2066c3
mark pre-allocated exception
2014-06-04 11:36:19 +09:00
Yukihiro "Matz" Matsumoto
bccd43da71
indent ISO section comments
2014-06-04 11:33:56 +09: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
yui-knk
b5ef16ba03
Change to always use locals->car->car.
...
When p->locals->car is not NULL and p->locals->car->car is NULL,
local_add_f dose not append sym to p->locals->car->car.
This commit change to append sym to p->locals->car->car.
This will close #2333 .
2014-06-02 09:38:24 +09:00
Yukihiro "Matz" Matsumoto
991b19b195
Merge pull request #2341 from yui-knk/remove-space
...
Remove space.
2014-06-01 22:18:04 +09:00
yui-knk
15ab1b7ab0
Fix indent.
2014-06-01 22:07:28 +09:00
yui-knk
e413294488
Remove space.
2014-06-01 22:04:51 +09:00
katmutua
36ab17d8ce
Fix typos in gc
2014-05-31 10:42:39 -03:00
yui-knk
c131f69d21
Remove space.
2014-05-31 14:10:30 +09:00
yui-knk
536697f41e
Fix to not print unnecessary comma.
...
When `n2->car` is 0 and `n2->cdd` is not 0,
unnecessary comma was printed before first local variables.
2014-05-31 14:00:30 +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
bggd
69c2b8310f
Fix invalid array initialize for VS2012
2014-05-28 11:04:28 +09:00
yui-knk
5fd1eaec58
fix indent.
2014-05-27 08:48:12 +09:00
ksss
7fe34d8f49
Should not call inherited method
...
when class nothing
2014-05-23 23:56:01 +09:00
Yukihiro "Matz" Matsumoto
9be81e7429
call Class#initialize from Class.new; ref ISO 15.2.3.3.1
2014-05-22 14:44:59 +09:00
Yukihiro "Matz" Matsumoto
00f2144692
allocate object after mrb_get_args()
2014-05-22 14:18:03 +09:00
Yukihiro "Matz" Matsumoto
fc557085d8
Merge pull request #2304 from ksss/class-new
...
Class.new do not call `class_eval'
2014-05-22 14:12:03 +09:00
Yukihiro "Matz" Matsumoto
ccaf3e35aa
Merge pull request #2303 from ksss/module-initialize
...
Module#initialize set created object for block argument
2014-05-22 14:10:11 +09:00
Yukihiro "Matz" Matsumoto
267eb74abc
Merge branch 'master' of github.com:mruby/mruby
2014-05-22 08:22:18 +09:00
Yukihiro "Matz" Matsumoto
f25897cd05
Merge pull request #2282 from yui-knk/check-before-malloc
...
Change range_check before mrb_obj_alloc.
2014-05-22 08:22:05 +09:00
Yukihiro "Matz" Matsumoto
79a6574ac8
remove unnecessary assignment; ref #2301
2014-05-22 08:20:54 +09:00
Yukihiro "Matz" Matsumoto
c52838cadb
Merge pull request #2286 from suzukaze/refactor-kernel
...
Use boolean macro in kernel.c
2014-05-22 01:01:16 +09:00
ksss
c28b46bcf6
Class.new do not call `class_eval'
...
and set self for block argument
2014-05-22 00:00:46 +09:00
ksss
0bd8e48773
Module#initialize set created object
...
for block argument
2014-05-21 23:09:19 +09:00
take_cheeze
3fa19357b3
Reduce children filenames listing.
...
It is executed per each debug filenames in irep to same ireps(children).
2014-05-21 22:00:11 +09:00
take_cheeze
87eec261e0
Reduce filename table creation in irep dumping to once.
2014-05-21 21:57:33 +09:00
Yukihiro "Matz" Matsumoto
f4570d411d
Merge pull request #2301 from mimaki/fix-load-mrb-segv
...
mrb_load_irep_file() caused SEGV
2014-05-21 18:03:58 +09:00
Yukihiro "Matz" Matsumoto
a11f994e01
direct invocation of instance_eval
2014-05-21 18:00:48 +09:00
mimaki
e52f1bd74e
Check mrbc_context is null
2014-05-21 17:12:03 +09:00
Yukihiro "Matz" Matsumoto
74da72409e
direct invocation of module_eval; ref #2298
2014-05-21 14:49:06 +09:00
Yukihiro "Matz" Matsumoto
a6f26514a5
break in blocks cannot cross C function boundaries; fix #2298
2014-05-21 09:00:30 +09:00
Yukihiro "Matz" Matsumoto
929328ad3b
Merge pull request #2295 from ksss/module-initialize
...
Implement Module#initialize (15.2.2.4.31)
2014-05-20 16:22:11 +09:00
take_cheeze
d8d07a2345
Move Kernel.local_variables to core.
2014-05-19 22:05:02 +09:00
ksss
c4a225f0be
mrb_include_module support class and module
...
that not have methods each other
2014-05-19 19:29:33 +09:00
ksss
ffbf90bdc8
Implement Module#initialize (15.2.2.4.31)
2014-05-19 19:28:42 +09:00
Yukihiro "Matz" Matsumoto
c4268f67d0
UINT16_MAX as symbol length is reserved; ref #2294
2014-05-19 18:43:32 +09:00