Commit Graph

2568 Commits

Author SHA1 Message Date
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
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
ksss ef4f29be70 support class define in singleton class 2014-05-18 12:55:35 +00: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
Yukihiro "Matz" Matsumoto 85e36b52aa Merge pull request #2285 from suzukaze/fix-indent
Fix indent in mrb_hash_to_hash()
2014-05-18 21:07:58 +09:00
yui-knk 45305686fe Add a space aftre bracket. 2014-05-18 19:40:17 +09:00
Jun Hiroe d330e5b102 Fix indent in mrb_hash_to_hash() 2014-05-18 15:33:41 +09:00
yui-knk 3422805fc4 Use boolean macro in exc_equal. 2014-05-18 14:25:44 +09:00
Yukihiro "Matz" Matsumoto 1f6d8d73bd Merge pull request #2276 from yui-knk/add-comment
Add comment to Fixnum Class.
2014-05-17 16:07:00 +09:00
yui-knk 76593ee0e7 Add comment to Fixnum Class. 2014-05-17 13:51:16 +09:00
Jun Hiroe 932efe53e9 Refactor mrb_str_intern() in string.c 2014-05-17 13:22:43 +09:00
Jun Hiroe 944b395083 Refactor mrb_str_equal_m in string.c 2014-05-17 13:22:43 +09:00
Jun Hiroe cf680f05fb Refactor mrb_str_new() in string.c 2014-05-17 13:20:00 +09:00
Yukihiro "Matz" Matsumoto a1a5eae925 Merge pull request #2273 from suzukaze/refactor-range.c
Use boolean macro in mrb_range_initialize()
2014-05-17 13:05:28 +09:00
Yukihiro "Matz" Matsumoto 54d627bd00 Merge pull request #2270 from suzukaze/refactor-class.c
Use boolean macro
2014-05-17 13:05:05 +09:00
Jun Hiroe 0725aacfeb Use boolean macro in mrb_range_initialize() 2014-05-17 09:58:40 +09:00
Jun Hiroe bcd8980c78 Use boolean macro 2014-05-17 02:08:01 +09:00
Jun Hiroe 0388e373d0 Delete unnecessary semicolon 2014-05-17 00:52:00 +09:00
Jun Hiroe 7328169a13 Fix indents 2014-05-17 00:20:32 +09:00
Yukihiro "Matz" Matsumoto 265f1b9952 Merge pull request #2265 from suzukaze/refactor
Add new line behind return type
2014-05-17 00:15:13 +09:00
Yukihiro "Matz" Matsumoto 0e50d8e8f4 Merge pull request #2264 from ksss/const_missing
const_missing error message more detail
2014-05-17 00:14:48 +09:00
Yukihiro "Matz" Matsumoto f2f8c72254 Merge pull request #2262 from ksss/doc-opcode
[DOC] fix op code doc
2014-05-17 00:13:56 +09:00
Jun Hiroe 665bc37288 Add new line behind return type 2014-05-16 22:46:41 +09:00
ksss 066c2772e8 const_missing error message more detail 2014-05-16 22:26:47 +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
take_cheeze 49cf477688 Fix #2259 . 2014-05-16 19:58:36 +09:00
Yukihiro "Matz" Matsumoto 41b46ca1ed register<nlocals may not have a local variable name (e.g. a block arg); fix #2258 2014-05-16 00:04:55 +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
Mitchell Blank Jr 493025c3af print_r() and print_lv() should only be compiled in for ENABLE_STDIO 2014-05-14 14:13:56 -07: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 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
Carson McDonald f0fed9dbec Consolidate muliptlication into one place 2014-05-13 11:46:47 -04:00
Carson McDonald 01988e3be7 Make sure c is large enough if there is an overflow 2014-05-13 11:46:29 -04:00
Yukihiro "Matz" Matsumoto 33b2975c9d Merge pull request #2246 from take-cheeze/fix_codedump
Remove unnecessary newline in `OP_GETGLOBAL` codedump.
2014-05-13 23:19:21 +09:00
Yukihiro "Matz" Matsumoto c12f64271a fix overflow error like #2244 on MRB_WORD_BOXING 2014-05-13 23:15:44 +09:00
take_cheeze f2450928b2 Remove unnecessary newline in OP_GETGLOBAL codedump. 2014-05-13 22:47:43 +09:00
Yukihiro "Matz" Matsumoto 4e357a4963 protect argument array from GC in OP_ENTER 2014-05-13 16:01:30 +09:00
Yukihiro "Matz" Matsumoto b4657182da convert &arg using to_proc; fix #2242 2014-05-13 09:13:33 +09:00
yui-knk ac58d1bdf6 Rename e to exception, scr_e to script_error. 2014-05-12 13:50:49 +09:00
yui-knk e07099d81b Add scr_e, to not reassign to e. 2014-05-11 19:28:34 +09:00
Yukihiro "Matz" Matsumoto 9f7651fa65 Merge pull request #2234 from suzukaze/refactor
Refactor functions in kernel.c
2014-05-11 17:25:50 +09:00
Jun Hiroe d973bcff0e Refactor mrb_equal_m() 2014-05-11 03:58:07 +09:00