Commit Graph

1315 Commits

Author SHA1 Message Date
Masaki Muranaka e7fe4ed499 Use suitable types for variables. 2013-03-12 20:50:02 +09:00
Yukihiro "Matz" Matsumoto 46d8c51763 Merge pull request #976 from kano4/dev
Fix indent in string.c
2013-03-11 11:30:24 -07:00
Yukihiro Matz Matsumoto 577a88161e restore arena after mrb_define_method() 2013-03-11 23:57:30 +09:00
Yukihiro Matz Matsumoto 34fe9d0156 return value from mrb_gc_arena_save() is int 2013-03-11 23:55:41 +09:00
kano4 0751faf467 Fix indent in string.c 2013-03-11 21:16:33 +09:00
Yukihiro Matz Matsumoto 318ad9c802 OP_ARRAY may overflow ARG_C 2013-03-09 00:39:08 +09:00
Yukihiro Matz Matsumoto cdd41a33de unify mrb_ary_new{,_elts,_from_values}; mrb_ary_from_values() is a winner 2013-03-08 05:18:33 +09:00
Yukihiro Matz Matsumoto 2e95f638cd Cut off mrb_irep_free from mrb_close; based on a patch from @matsumoto-r; close #951 2013-03-06 15:22:46 +09:00
Yukihiro "Matz" Matsumoto 9e8f254fb0 Merge pull request #957 from mattn/no_ambiguous
Remove warning for regexp
2013-03-05 22:01:35 -08:00
mattn 1d42e8caa8 Remove warning for regexp 2013-03-06 14:40:39 +09:00
Carson McDonald f792552a5e Add null check after mrb_realloc for array 2013-03-05 15:22:10 -05:00
kano4 4bc4380335 Add include guard in node.h 2013-03-05 23:09:34 +09:00
kano4 fbbe6309fc Replace tabs with spaces 2013-03-05 23:06:44 +09:00
Yukihiro "Matz" Matsumoto 83c5274a71 Merge pull request #949 from mattn/find_symbol
Skip end of loop in mrb_sym2name_len
2013-03-04 23:59:18 -08:00
Yukihiro "Matz" Matsumoto f962068d40 Merge pull request #950 from monaka/pr-remove-macro-RB_GC_GUARD
Remove RB_GC_GUARD(x) macro.
2013-03-04 23:58:09 -08:00
Yukihiro Matz Matsumoto 4433bde8b0 skip empty OP_STRCAT 2013-03-05 16:56:25 +09:00
Masaki Muranaka 95c34a90ca Remove RB_GC_GUARD(x) macro. See also mruby/mruby#948. 2013-03-05 13:00:17 +09:00
mattn 9d3a864a86 Skip end of loop in mrb_sym2name_len 2013-03-05 10:48:05 +09:00
Yukihiro "Matz" Matsumoto 5a153851c3 Merge pull request #947 from monaka/pr-cleanup-stdio-calls-20130304
Cleanup stdio related.
2013-03-04 15:49:08 -08:00
Yukihiro Matz Matsumoto 21847865b1 use mrb_str_buf_new to create a buffer to be used by mrb_str_buf_cat 2013-03-05 01:45:13 +09:00
Masaki Muranaka 0e662e3bcd Make some printf enclose in #ifdef ENABLE_STDIO. 2013-03-05 01:43:57 +09:00
Yukihiro "Matz" Matsumoto a165fce1f2 Merge pull request #937 from monaka/pr-remove-snprintf-from-localjump_error
Reduce a snprintf() call in localjump_error().
2013-03-04 08:41:46 -08:00
Masaki Muranaka 6ae3a1b83e Modify API configuration.
C API mrb_p() is always callable.
  - But it will do nothing when ENABLE_STDIO is not defined.

  Kernel#__printstr__ is always callable.
  - But it will do nothing when ENABLE_STDIO is not defined.
2013-03-05 01:38:51 +09:00
Masaki Muranaka 5a025813b5 Include stdio.h in mrbconf.h instead of C extension sources. 2013-03-05 01:38:51 +09:00
Yukihiro Matz Matsumoto aa98c575f5 proper irep pool duplication check for strings 2013-03-05 00:34:23 +09:00
Yukihiro Matz Matsumoto 6be56ef1fb save/restore arena index for each codedump iteration 2013-03-05 00:32:38 +09:00
Yukihiro "Matz" Matsumoto 0fd14e53a2 Merge pull request #943 from monaka/pr-tmp-move-sprintf-to-mrbgem
Move Kernel#sprintf to mrbgem
2013-03-04 06:46:31 -08:00
Masaki Muranaka 97136825e2 Separate Kernel#sprintf support from mruby core. It's moved to mrbgems. 2013-03-04 23:04:39 +09:00
Masaki Muranaka a5bc5b2574 Move src/sprintf to mrbgems/mruby-sprintf/src/ 2013-03-04 22:27:23 +09:00
kano4 d4c279aa8d Replace tabs with spaces 2013-03-04 21:45:47 +09:00
Yukihiro Matz Matsumoto abecb78144 allow reserved word for heredoc terminator 2013-03-04 10:07:42 +09:00
Yukihiro Matz Matsumoto 20a5d57d16 applied a patch from @cremo to support MSVC 2013-03-04 09:55:45 +09:00
Yukihiro Matz Matsumoto 02dba48367 Merge branch 'heredoc' of https://github.com/FUKUZAWA-Tadashi/mruby into FUKUZAWA-Tadashi-heredoc 2013-03-04 09:49:16 +09:00
Yukihiro "Matz" Matsumoto e13248bedf Merge pull request #884 from monaka/pr-use-MRB_IREP_ARRY_INIT_SIZE-macro
Use MRB_IREP_ARRAY_INIT_SIZE macro.
2013-03-03 16:40:27 -08:00
Yukihiro Matz Matsumoto 844f6eb625 fix mrb_int for INT64 env 2013-03-04 02:47:48 +09:00
Yukihiro "Matz" Matsumoto aae50bfc48 Merge pull request #934 from monaka/pr-use-mrb_int-in-array.c
Define ARY_MAX_SIZE strictly. Use mrb_int instead of int.
2013-03-03 09:38:10 -08:00
Yukihiro "Matz" Matsumoto 44dbada9c6 Merge pull request #936 from monaka/pr-cleanup-range.c-20130303
Clean up range.c. Use mrb_int. Use mrb_vtype.
2013-03-03 09:25:26 -08:00
Carson McDonald a306ac7651 The variable len isn't used anywhere. 2013-03-03 07:57:20 -05:00
Yukihiro "Matz" Matsumoto 1e017018a8 Merge pull request #928 from cremno/mrb_open-void
mrb_open takes no arguments: (void) instead of ()
2013-03-03 04:34:03 -08:00
Yukihiro "Matz" Matsumoto f2a39ef410 Merge pull request #930 from kaishuu0123/cleanup-parse.y
cleanup: delete commented out match_op() from parse.y
2013-03-03 04:33:21 -08:00
Yukihiro "Matz" Matsumoto afa5b26826 Merge pull request #931 from matsumoto-r/fix_some_indents
Adjust some indents
2013-03-03 04:32:37 -08:00
FUKUZAWA-Tadashi 73309aefa5 delete trailing space 2013-03-03 21:08:59 +09:00
FUKUZAWA-Tadashi 1af4110f7d implement heredoc 2013-03-03 20:08:13 +09:00
Masaki Muranaka 15ac0e03c2 Reduce a snprintf() call in localjump_error(). 2013-03-03 18:39:52 +09:00
Masaki Muranaka 37fd73e376 Clean up range.c. Use mrb_int. Use mrb_vtype. 2013-03-03 13:33:18 +09:00
Masaki Muranaka f998691da8 Define ARY_MAX_SIZE strictly. Use mrb_int instead of int. 2013-03-03 11:43:56 +09:00
Masaki Muranaka 6cd7017ec1 Remove trailing whitespaces. This is just a cosmetic change. 2013-03-03 10:54:00 +09:00
MATSUMOTO Ryosuke 809732ab40 Adjust some indents 2013-03-02 10:26:54 -08:00
Kouki Ooyatsu 1a7bb9dfa6 cleanup: delete commented out match_op() from parse.y 2013-03-03 03:22:59 +09:00
Yukihiro Matz Matsumoto 0c9d42e080 string interpolation in regex 2013-03-02 15:13:52 +09:00