Commit Graph

2630 Commits

Author SHA1 Message Date
Yukihiro "Matz" Matsumoto 2067f1f9ff Merge branch 'master' of github.com:mruby/mruby 2014-06-13 00:42:03 +09:00
Yukihiro "Matz" Matsumoto 2ed7089546 need to call write barrier on hash keys; ref #2375 2014-06-13 00:41:49 +09:00
Yukihiro "Matz" Matsumoto be3e36cb05 Merge pull request #2389 from ksss/str-mem-leaks
Fix memory leaks in String
2014-06-12 07:36:36 +09:00
ksss bd53818999 str_replace: self should not be shared and nofree 2014-06-11 14:42:18 +00:00
Jun Hiroe 75d1412410 Refactor how to use RSTR_NOFREE_P macro 2014-06-11 23:10:41 +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
Yukihiro "Matz" Matsumoto c2f6c33fef reserve a register for a block parameter in a for statement body; ref #2375 2014-06-10 13:15:19 +09:00
Yukihiro "Matz" Matsumoto 58e87996b9 should not add extra stack space to callinfo->nregs; maybe related to #2375 2014-06-10 00:32:45 +09:00
Yukihiro "Matz" Matsumoto 6c524af646 NODE_FOR does not introduce new local variables 2014-06-10 00:03:54 +09:00
Yukihiro "Matz" Matsumoto 4c69a9d09e codedump should display proper L(n) for OP_STRING op 2014-06-09 23:37:20 +09:00
take_cheeze 64994a1764 Check RSTRING_EMBED_LEN_MAX with static assert. 2014-06-08 23:16:55 +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 d75b84016c do not ignore negative characters (e.g. EOF and partial EOF); fix #2361 fix #2369 2014-06-08 01:38:44 +09:00
Yukihiro "Matz" Matsumoto a13e8f5ee1 revert #2368 due to #2369 2014-06-08 00:48:59 +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 32e450166f move STR_* macros to mruby/string.h with renaming 2014-06-07 22:16:16 +09:00
Yukihiro "Matz" Matsumoto b0c90141d9 clear shared and nofree flags; ref #2370 2014-06-07 17:24:18 +09:00
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
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
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