Commit Graph

56 Commits

Author SHA1 Message Date
take_cheeze 30c672f890 Remove Struct defined check in test. 2014-04-21 21:35:58 +09:00
take_cheeze 3675832b0e Implement Struct#size and Struct#length . 2014-04-20 22:02:48 +09:00
take_cheeze bac70ad81d Use RARRAY_* macro instead of accessing RArray field. 2014-04-18 23:19:25 +09:00
Yukihiro "Matz" Matsumoto 17f4835141 Restore arena index since large struct may create many Proc objects; a patch from @take-cheeze; ref #2052 2014-04-12 21:45:01 +09:00
Yukihiro "Matz" Matsumoto 9e3fe6c53d Add test cases to 'large struct' test; a patch from @take-cheeze; ref #2052 2014-04-12 21:42:26 +09:00
cubicdaiya bf3f45fc70 Use mrb_int instead of int 2014-03-25 22:33:53 +09:00
Marcus Stollsteimer 4f0a163842 use the same error message 2014-03-22 09:51:46 +01:00
Yukihiro "Matz" Matsumoto 9084e03556 rename mrb_yield_internal to mrb_yield_with_class since it's no longer internal 2014-03-19 08:57:54 +09:00
Tomoyuki Sahara 40c18fca77 self must be the newly created object in initialization block; close #1858 2014-03-19 01:08:46 +09:00
take_cheeze c73f8d4def move summary of mrbgems in default gembox to its spec 2014-03-17 00:34:24 +09:00
Yukihiro "Matz" Matsumoto c476c1b528 symbol length type to be mrb_int 2014-03-15 15:43:40 +09:00
take_cheeze 7c4961234d fix mrb_funcall calling 2014-03-12 10:18:38 +09:00
cubicdaiya 67de10bfcb use C style comments instead of C++ style comments
According to CONTRIBUTING.md,

Don't use C++ style comments

 /* This is the prefered comment style */

Use C++ style comments only for temporary comment e.g. commenting out some code lines.
2014-03-01 03:31:45 +09:00
Yukihiro "Matz" Matsumoto c93f873ac0 Merge pull request #1744 from cubicdaiya/feature/introduce_mrb_str_cat_lit
Introduce mrb_str_cat_lit
2014-02-26 21:54:05 +09:00
cubicdaiya a860735d0c use mrb_str_cat_lit() more widely 2014-02-26 03:03:47 +09:00
cubicdaiya 94c5a5ee73 use mrb_str_new_lit instead of mrb_str_new for C string literals 2014-02-26 02:23:50 +09:00
cremno 8bbc2c107b mrb_str_cat2: deprecated since 0cedf8f 2014-02-13 13:45:28 +01:00
Carson McDonald d3a057caed Increase test coverage of mruby-struct 2014-01-16 17:54:56 -05:00
cremno aa655b9ee1 remove superfluous includes
- reduce compile time by a little bit (full-core: ~0.7s for me)
- thanks to 'include-what-you-use' for some help
- include Standard C header files before any other (coding style)
2014-01-07 17:56:30 +01:00
take_cheeze df780ae5e9 add mrb_intern_lit for creating symbol from string literal 2013-12-01 10:38:59 +09:00
Yukihiro "Matz" Matsumoto 9c6398a444 rename mrb_intern2() to mrb_intern(); huge API incompatibility; close #1513 2013-11-29 08:47:28 +09:00
Yuichi Nishiwaki 0e4a7b2a03 eliminate use of traditional intern API (mrb_intern()) completely 2013-09-23 19:36:50 -07:00
Tomoyuki Sahara 116f75a8ce "spec.author" is better for single-author gems.
"spec.author=" expects a String represents a single author.
"spec.authors=" expects an Array which is a list of multiple authors.

http://guides.rubygems.org/specification-reference/
2013-07-23 10:09:24 +09:00
Jun Hiroe 3cf1a9beae Replace mrb_intern() with mrb_intern2() or mrb_intern_cstr(). 2013-07-14 00:39:21 +09:00
Carson McDonald b39388e152 Fix signed/unsigned warning. 2013-07-01 07:05:47 -04:00
Yukihiro "Matz" Matsumoto 5c0b9b703c primary mruby fiber implementation 2013-05-20 17:54:07 +09:00
Yukihiro "Matz" Matsumoto b7a24de377 change mrb_bug to get mrb_state and %S formatter 2013-05-10 22:11:28 +09:00
Yukihiro "Matz" Matsumoto fad8b1cefa change mrb_warn to get mrb_state and %S formatter 2013-05-10 22:09:02 +09:00
Yukihiro "Matz" Matsumoto 96637a7723 remove unnecessary intern; access to non-member cause IndexError 2013-04-29 15:48:16 +09:00
Yukihiro "Matz" Matsumoto 02f843d8dc rename mrb_to_id to mrb_obj_to_sym since symbol is nothing to do with identifier in mruby 2013-04-29 15:35:30 +09:00
Yukihiro "Matz" Matsumoto 30d580ecbc rename every ARGS_XXX to MRB_ARGS_XXX; ref #1206 2013-04-25 09:47:36 +09:00
Masaki Muranaka 1efb1bbaff Use mrb_name_error() as possible. 2013-04-04 16:24:43 +09:00
Masaki Muranaka 5c4c2f3788 Fix raisef formats in struct.c. 2013-03-28 16:07:50 +09:00
Yukihiro Matz Matsumoto e69a13a20e resolve conflict 2013-03-24 00:44:28 +09:00
Masaki Muranaka f8fa56d8c3 Use mrb_intern2() instead of mrb_intern(). This is for avoiding overhead by strlen(). 2013-03-22 14:22:45 +09:00
Yukihiro Matz Matsumoto d0d920e909 rename mrb_true_or_false_value() to mrb_bool_value() 2013-03-19 12:03:54 +09:00
Masaki Muranaka 9d8c1eccbe Use mrb_true_or_false_value() / in mrb_struct_eql(). 2013-03-19 11:04:16 +09:00
Masaki Muranaka 0e9512cc4b Use mrb_true_or_false_value() / in mrb_struct_equal(). 2013-03-19 11:03:26 +09:00
Yukihiro Matz Matsumoto 38571fd769 use mrb_int as possible based on a patch from @monaka; close #994 2013-03-14 19:39:17 +09:00
Yukihiro Matz Matsumoto 9d0bbdb7f8 use size_t for string length C API 2013-03-14 19:33:38 +09:00
Masaki Muranaka be506de3fc Remove mrb_str_new2(). Use mrb_str_new_cstr() instead.
Make mrb_str_new_cstr() accept NULL pointer. It generates 0byte strings by NULL pointer.
2013-03-12 17:54:40 +09:00
Cremno f719b0e7ff define and use print format macros for mrb_int
For portability: %ld can't be used to print a 64-bit mrb_int on
WIN(32|64) because long is 32-bit wide.
2013-03-08 18:20:54 +01:00
Masaki Muranaka 6cd7017ec1 Remove trailing whitespaces. This is just a cosmetic change. 2013-03-03 10:54:00 +09:00
Carson McDonald dd8d74fc2b Remove unused var sv 2013-03-01 16:04:06 -05:00
Yukihiro Matz Matsumoto 8f5a09ba15 use TT_ARRAY instead of TT_DATA 2013-03-02 03:24:34 +09:00
Yukihiro Matz Matsumoto 6f88c8407e replace instance_of check with structure check 2013-03-01 22:33:49 +09:00
Yukihiro Matz Matsumoto 389da9dcf0 remove struct RStruct, use RArray instead 2013-03-01 22:26:50 +09:00
Yukihiro Matz Matsumoto d9dc492f83 fix indent in struct.c 2013-03-01 22:09:17 +09:00
Yukihiro Matz Matsumoto 45890faefb internal array should be pudated using mrb_ary_set() 2013-03-01 22:00:59 +09:00
mattn 99a6de063c Set nil to uninitialized members 2013-03-01 17:45:49 +09:00