Commit Graph

5816 Commits

Author SHA1 Message Date
take_cheeze a656daf4c5 Use TRUE instead of 1 in mirb code. 2014-06-30 23:26:23 +09:00
Yukihiro "Matz" Matsumoto 618ef17c8c Merge pull request #2431 from ksss/warning-objectspace
Reduce warning for enumeration
2014-06-29 18:40:20 +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 684f8ec575 Merge pull request #2430 from SHyx0rmZ/remove-duplicate
Sacrifice some micro-optimization to remove duplicate code
2014-06-28 17:15:30 +09:00
Yukihiro "Matz" Matsumoto 344b7d819f git push origin masterMerge branch 'take-cheeze-fix_each_obj_crash' 2014-06-28 01:09:36 +09:00
Yukihiro "Matz" Matsumoto 9726dbefb4 remove String class initialization in error.c; ref #2429 2014-06-28 01:09:09 +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
Yukihiro "Matz" Matsumoto 919af61766 initialize nomem_err->mesg->c before exposing to Ruby world; close #2428 2014-06-27 22:39:39 +09:00
Yukihiro "Matz" Matsumoto 4ce0a7653b reduce mrb_funcall in exception allocation 2014-06-27 22:10:21 +09:00
Yukihiro "Matz" Matsumoto 79787df046 Merge branch 'master' of github.com:mruby/mruby 2014-06-27 07:50:59 +09:00
Yukihiro "Matz" Matsumoto 9f8fe6f33d Merge pull request #2427 from suzukaze/fix-typo
Fix typo in doc/api/mruby.h.md
2014-06-27 07:22:54 +09:00
Yukihiro "Matz" Matsumoto 719c9abb61 Merge pull request #2426 from take-cheeze/mrbconf
Document rest mrbconfs.
2014-06-27 07:17:22 +09:00
Patrick Pokatilo 73c086b4c7 Sacrifice some micro-optimization to remove duplicate code 2014-06-26 22:22:21 +02:00
Jun Hiroe 09d8cd69e9 Fix typo in doc/api/mruby.h.md 2014-06-26 21:47:04 +09:00
take_cheeze d7d0c31ade Quote default value. 2014-06-26 21:09:44 +09:00
take_cheeze 2adb4118aa Document left mrbconfs. 2014-06-26 21:08:56 +09:00
Yukihiro "Matz" Matsumoto 729a760f91 Merge branch 'master' of github.com:mruby/mruby 2014-06-25 23:36:04 +09:00
Yukihiro "Matz" Matsumoto c19f5efaaf Merge pull request #2423 from ksss/proc-parameters
Implement Proc#parameters
2014-06-25 23:33:56 +09:00
Yukihiro "Matz" Matsumoto 3f13196cbb Merge pull request #2425 from take-cheeze/mrbconf
Update mrbconf.
2014-06-25 23:32:33 +09:00
take_cheeze 340279885e Add notes about restriction of DISABLE_STDIO. 2014-06-25 21:41:54 +09:00
take_cheeze 090a8889f7 Add documentation of mrb_value config. 2014-06-25 21:34:52 +09:00
ksss 9cafc5e105 Implement Proc#parameters 2014-06-25 16:05:33 +09:00
Yukihiro "Matz" Matsumoto d4e49c9f8f Merge pull request #2422 from ksss/aspec-macro
OP_ENTER use MBR_ASPEC_* macros
2014-06-25 15:05:37 +09:00
ksss f092ef6b14 OP_ENTER: Rewrite split aspec use macros 2014-06-25 13:54:11 +09:00
ksss b0edba434c proc.h: MRB_ASPEC_REST() macro return 1 or 0
MRB_ASPEC_REST() is macro just only checks whether truthy or falsy.
And truthy means exist 1 rest argument in current proc.
2014-06-25 13:54:11 +09:00
Yukihiro "Matz" Matsumoto 9dab02224d Merge branch 'master' of github.com:mruby/mruby 2014-06-25 13:43:13 +09:00
Yukihiro "Matz" Matsumoto 8548aebcfa Merge pull request #2421 from ksss/safe-arity
Proc#arity return 0 when opcode was not OP_ENTER
2014-06-25 13:42:59 +09:00
ksss 19b82944f8 Proc#arity return 0 when opcode was not OP_ENTER 2014-06-25 08:48:08 +09:00
Yukihiro "Matz" Matsumoto 000fae415b Merge branch 'master' of github.com:mruby/mruby 2014-06-25 07:54:00 +09:00
Yukihiro "Matz" Matsumoto dfeadf19da Merge pull request #2420 from ksss/reduce-lv
Not create local variables in scope_new
2014-06-25 07:53:51 +09:00
Yukihiro "Matz" Matsumoto 7a0fbf3a25 Merge branch 'master' of github.com:mruby/mruby 2014-06-25 07:53:39 +09:00
Santa Zhang 17ecbaa23d add a few const qualifier 2014-06-25 07:53:23 +09:00
yui-knk b443bd081a 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-06-25 07:53:23 +09:00
Yukihiro "Matz" Matsumoto 8e6fc29aac Merge pull request #2419 from santazhang/use-const
add a few const qualifier
2014-06-25 07:41:27 +09:00
ksss 14767a5597 Not create local variables in scope_new 2014-06-25 05:52:07 +09:00
Santa Zhang 8d5f67e6f3 add a few const qualifier 2014-06-24 15:16:13 -04:00
Yukihiro "Matz" Matsumoto faa3c52a8d Merge branch 'master' of github.com:mruby/mruby 2014-06-25 02:37:51 +09:00
Yukihiro "Matz" Matsumoto 9874aafbf0 Merge pull request #2333 from yui-knk/fix/dump
Fix to not print unnecessary comma.
2014-06-25 02:37:39 +09:00
Yukihiro "Matz" Matsumoto 5b590d977f revert #2344 because of #2395 2014-06-25 02:36:02 +09:00
Yukihiro "Matz" Matsumoto 46da47fc5e Merge pull request #2418 from take-cheeze/sym_intern
Add `Symbol#intern`.
2014-06-24 22:41:00 +09:00
take_cheeze 257725cecb Add Symbol#intern. 2014-06-24 21:44:22 +09:00
Yukihiro "Matz" Matsumoto 5561be961e Merge pull request #2416 from take-cheeze/c_api_ref
Start documenting C APIs.
2014-06-24 06:00:48 +09:00
Yukihiro "Matz" Matsumoto 7366615b78 Merge branch 'master' of github.com:mruby/mruby 2014-06-24 05:46:51 +09:00
Yukihiro "Matz" Matsumoto 08cfd9e637 Merge pull request #2415 from take-cheeze/mrbconf_doc
Add mrbconf document.
2014-06-24 04:50:27 +09:00
take_cheeze 2ec79c6e91 Add documentation of state atexit configuration. 2014-06-23 22:19:28 +09:00
take_cheeze 6336dbb653 Add documentation of memory pool configurations. 2014-06-23 22:12:58 +09:00
take_cheeze ae15f264bd Start documenting C APIs. 2014-06-23 21:55:54 +09:00
Yukihiro "Matz" Matsumoto 90ddc2810a Merge branch 'take-cheeze-mrb_open_without_mrbgems' 2014-06-23 20:25:34 +09:00
Yukihiro "Matz" Matsumoto ac0addd98f refacor mrb_open_core() to reduce a local variable 2014-06-23 20:06:17 +09:00