Commit Graph

3934 Commits

Author SHA1 Message Date
fleuria 0a4010728a make test/assert.rb cruby compatible 2013-11-16 14:22:15 +08:00
Yukihiro "Matz" Matsumoto 2bda965258 should output debug info for child ireps; close #1575 2013-11-15 14:16:49 +09:00
Yukihiro "Matz" Matsumoto 13c2d65b02 should not free buffer that is still accessed 2013-11-15 11:47:08 +09:00
Yukihiro "Matz" Matsumoto 3286e63202 wrong size of filenames buffer 2013-11-15 11:46:30 +09:00
Yukihiro "Matz" Matsumoto 04a2c58e94 add new function mrb_load_irep_file_cxt() and simplifies mruby.c 2013-11-15 10:49:40 +09:00
Yukihiro "Matz" Matsumoto d8f9a30ef3 fix irep memory leak 2013-11-15 10:35:45 +09:00
Yukihiro "Matz" Matsumoto 71354b91cb enum mrb_vtype varies on compile time configuration, namely MRB_NAN_BOXING 2013-11-15 02:45:52 +09:00
Yukihiro "Matz" Matsumoto 16b34d187a remove warning on NAN_BOXING 2013-11-15 02:27:19 +09:00
Yukihiro "Matz" Matsumoto f645bf1b0c Merge pull request #1573 from Fleurer/fix1572
fix length check in read_section_debug()
2013-11-14 07:48:24 -08:00
fleuria 87fa03ebce fix length check in read_section_debug(); fix #1572 2013-11-14 20:16:46 +08:00
Yukihiro "Matz" Matsumoto c6cc92ac87 remove possible free-after-realloc problem; close #1570 2013-11-14 14:59:26 +09:00
Yukihiro "Matz" Matsumoto fc83acfcff remove unnecessary jump 2013-11-14 09:46:41 +09:00
Yukihiro "Matz" Matsumoto 2a5e0a4f6c Merge pull request #1571 from bggd/patch-1
Changed a variable declaration to top of block
2013-11-13 16:29:16 -08:00
bggd 0cbdbd81cb Changed a variable declaration to top of block 2013-11-13 22:53:20 +09:00
bggd 86c80139ab Changed a variable declaration to top of block 2013-11-13 22:35:25 +09:00
Yukihiro "Matz" Matsumoto edd6c17c1e load_exec() no longer return fixnum value for no_exec; should close #1569 2013-11-13 15:48:13 +09:00
Yukihiro "Matz" Matsumoto 08e6bd47a0 fclose input file 2013-11-13 14:44:02 +09:00
Yukihiro "Matz" Matsumoto ca704e5438 pacify some warnings on OpenBSD 2013-11-13 10:33:10 +09:00
Yukihiro "Matz" Matsumoto 7078fcd9e4 fixnum in irep->pool may overflow 2013-11-13 10:15:57 +09:00
Yukihiro "Matz" Matsumoto a725bd7a23 call codedump_all() from mirb if --verbose is set; close #1559 2013-11-10 04:34:53 +09:00
Yukihiro "Matz" Matsumoto 3bbf66f9f3 cancel #1565 since it breaks mirb; instead add special treatment to heredocs 2013-11-10 04:32:57 +09:00
Yukihiro "Matz" Matsumoto 7e64d7e531 check for corrupted mrb file data 2013-11-10 03:08:01 +09:00
Yukihiro "Matz" Matsumoto 29792d1725 Merge branch 'master' of github.com:mruby/mruby 2013-11-09 23:29:50 +09:00
Yukihiro "Matz" Matsumoto a9d8357d69 Merge pull request #1566 from carsonmcdonald/supresstosuppress
Change supress to suppress
2013-11-09 06:29:35 -08:00
Carson McDonald 0d0f3545f8 Change supress to suppress 2013-11-09 07:40:51 -05:00
Yukihiro "Matz" Matsumoto ec0a94dae6 Merge pull request #1565 from Fleurer/fix1564
nextc(): always return an '\n' at end of input
2013-11-08 17:22:59 -08:00
Yukihiro "Matz" Matsumoto 7aabc657f1 protect returning irep (in proc) from GC 2013-11-09 04:08:24 +09:00
Yukihiro "Matz" Matsumoto de790bdc27 allow irep to be GCed 2013-11-08 20:39:50 +09:00
fleuria fa71403bc5 nextc(): always return an '\n' at end of input
fix #1564
2013-11-08 11:40:26 +08:00
Yukihiro "Matz" Matsumoto cba07b0275 type check before pool scan 2013-11-07 09:14:44 +09:00
Yukihiro "Matz" Matsumoto b6a73f99bf call_iseq will never be NULL 2013-11-07 08:53:14 +09:00
Yukihiro "Matz" Matsumoto c8936754e8 wrong return value from read_lineno_record() 2013-11-07 08:20:03 +09:00
Yukihiro "Matz" Matsumoto 465f633446 create Proc object before releasing memory pool 2013-11-07 08:16:41 +09:00
Yukihiro "Matz" Matsumoto d8913dae3f forgot to free irep->reps 2013-11-07 04:22:10 +09:00
Yukihiro "Matz" Matsumoto 677a2ac226 irep->pool not to be GCed 2013-11-07 04:20:46 +09:00
Yukihiro "Matz" Matsumoto e92d4e2680 modified to use irep->reps to reference child ireps. preparation for
removing irep array from mrb_state.  note that instructions OP_LAMBDA,
OP_EXEC and OP_EPUSH are incompatible, and dumped mrb format has changed.
2013-11-07 03:54:22 +09:00
Yukihiro "Matz" Matsumoto f80401de6c resolved conflicts and updated to latest return value change of mrb_generate_code() 2013-11-05 00:13:01 +09:00
Yukihiro "Matz" Matsumoto e386760cc7 add Fiber.current 2013-11-04 23:58:32 +09:00
Yukihiro "Matz" Matsumoto fb831b6a5e Merge branch 'master' of github.com:mruby/mruby 2013-11-04 09:38:48 +09:00
Yukihiro "Matz" Matsumoto 8168f94fca Merge pull request #1562 from takahashim/mrbc-add-newline
mrbc: add line break for -c option, like other options
2013-11-03 16:38:32 -08:00
fleuria 82c5b486e0 mirb: reset stack in the first command 2013-11-03 12:05:48 +08:00
fleuria a511957ec8 refactor mrb_context_run() 2013-11-03 12:05:25 +08:00
fleuria d75a907edf introduce mrb_context_run()
currently there are two scnenario to call mrb_run(), the first is
calling a proc, in this case mrb should create a new environment,
discarding all the variables except args, reciever and block.

the second is calling the newly generated irep, like in mirb.
in this case, the variables should be kept after mrb_run().
so we introduce mrb_context_run() to handle this seperately.
2013-11-03 11:32:59 +08:00
takahashim 77d2322a11 mrbc: add line break for -c option 2013-11-03 12:27:37 +09:00
Yukihiro "Matz" Matsumoto 1910798f47 small style fix 2013-11-03 08:34:36 +09:00
Yukihiro "Matz" Matsumoto 756c3fbff1 Merge branch 'master' of github.com:mruby/mruby 2013-11-03 08:33:10 +09:00
Yukihiro "Matz" Matsumoto e1f4e891c1 Merge pull request #1560 from 3miliano/master
Added support for Random as an argument to shuffle and shuffle!
2013-11-02 16:32:45 -07:00
Emiliano Lesende 80d8b5e2e7 Added support for Random as an argument to shuffle and shuffle!. Refactored random gem to use DATA instance type and hold mt_state inside the DATA_PTR instead of in an instance variable. 2013-11-02 12:07:34 -03:00
Yukihiro "Matz" Matsumoto 8af26752db remove scope->idx 2013-11-02 23:40:36 +09:00
Yukihiro "Matz" Matsumoto 22f90d9f70 codedump() to take irep structure 2013-11-02 23:26:19 +09:00