summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-struct/src/struct.c
AgeCommit message (Collapse)Author
2015-09-23mruby-struct gem refactoringYukihiro "Matz" Matsumoto
2015-06-24Remove unnecessary backticks.Franck Verrot
Dr Markus Kuhn published in 1999 an article [1] explaining in details why we shouldn't use the ASCII grave accent (0x60) as a left quotation. Backticks have been used most notably to produce nice-looking LaTeX documents but it doesn't seem to be an issue on modern platforms and for the oldest ones, there are workarounds as mentioned by Dr Kuhn. [1]: https://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
2015-05-28remove unnecessary including of <ctype.h>cremno
Not needed anymore since 85075bef7583edd0a48cfbdfaa632cbdacf78f2c
2015-02-07Remove eql_p variable in mrb_struct_eql funcJun Hiroe
2015-02-07Remove eql_p variable in mrb_struct_equal funcJun Hiroe
2015-01-12fix Segmentation fault on Struct#inspect due to recursive Struct objecttakahashim
2014-09-19change class argument of mrb_const_defined_at from `struct RClass*` to ↵Yukihiro "Matz" Matsumoto
`mrb_value` to make it consistent with mrb_const_defined; ref #2593
2014-09-12constify pointer from RARRAY_PTR to detect potential write barrier bugs.Yukihiro "Matz" Matsumoto
if you see compiler errors due to this commit, you'd better to use array-modifying functions, e.g. mrb_ary_set() or mrb_ary_push(), otherwise you might see nasty GC bugs in the future. if you are sure what you are doing, replace `RARRAY_PTR(ary)` by `mrb_ary_ptr(ary)->ptr`. but be warned.
2014-09-04get rid of shadowing variables (mrbgems)cremno
Mostly renaming, except that the definition of struct accessor methods is now done in a new function.
2014-06-06reduce calling mrb_sym2name_len() from struct.c; ref #2365Yukihiro "Matz" Matsumoto
2014-06-05mruby-struct: implement `mrb_is_(local|const)_id`cremno
2014-06-05mruby-struct: remove unused functionscremno
2014-06-05mruby-struct: use correct data typescremno
2014-06-05mruby-struct: internal linkage for all functionscremno
2014-05-28Add invalid key type check in `Struct#[]=`.take_cheeze
2014-05-28Support string key in `Struct#[]=`.take_cheeze
2014-05-03refactoring mruby-structYukihiro "Matz" Matsumoto
2014-05-03use proper length for mrb_get_values_at()Yukihiro "Matz" Matsumoto
separate mrb_range_beg_len() into two: the one truncates range into the sequence size, and the one does not. #values_at uses the latter.
2014-05-02Implement Struct#values_at and Array#values_at .take_cheeze
Add API `mrb_get_values_at()` to mruby/range.h .
2014-04-30Implement Struct#to_h .take_cheeze
2014-04-27Implement Struct#to_a and Struct#values .take_cheeze
2014-04-25Use mrb_int in mrbgem rest argument getting.take_cheeze
2014-04-20Implement Struct#size and Struct#length .take_cheeze
2014-04-18Use RARRAY_* macro instead of accessing RArray field.take_cheeze
2014-04-12Restore arena index since large struct may create many Proc objects; a patch ↵Yukihiro "Matz" Matsumoto
from @take-cheeze; ref #2052
2014-03-25Use mrb_int instead of intcubicdaiya
2014-03-22use the same error messageMarcus Stollsteimer
2014-03-19rename mrb_yield_internal to mrb_yield_with_class since it's no longer internalYukihiro "Matz" Matsumoto
2014-03-19self must be the newly created object in initialization block; close #1858Tomoyuki Sahara
2014-03-15symbol length type to be mrb_intYukihiro "Matz" Matsumoto
2014-03-12fix mrb_funcall callingtake_cheeze
2014-03-01use C style comments instead of C++ style commentscubicdaiya
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-02-26Merge pull request #1744 from cubicdaiya/feature/introduce_mrb_str_cat_litYukihiro "Matz" Matsumoto
Introduce mrb_str_cat_lit
2014-02-26use mrb_str_cat_lit() more widelycubicdaiya
2014-02-26use mrb_str_new_lit instead of mrb_str_new for C string literalscubicdaiya
2014-02-13mrb_str_cat2: deprecated since 0cedf8fcremno
2014-01-07remove superfluous includescremno
- 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)
2013-12-01add mrb_intern_lit for creating symbol from string literaltake_cheeze
2013-11-29rename mrb_intern2() to mrb_intern(); huge API incompatibility; close #1513Yukihiro "Matz" Matsumoto
2013-09-23eliminate use of traditional intern API (mrb_intern()) completelyYuichi Nishiwaki
2013-07-14Replace mrb_intern() with mrb_intern2() or mrb_intern_cstr().Jun Hiroe
2013-07-01Fix signed/unsigned warning.Carson McDonald
2013-05-20primary mruby fiber implementationYukihiro "Matz" Matsumoto
2013-05-10change mrb_bug to get mrb_state and %S formatterYukihiro "Matz" Matsumoto
2013-05-10change mrb_warn to get mrb_state and %S formatterYukihiro "Matz" Matsumoto
2013-04-29remove unnecessary intern; access to non-member cause IndexErrorYukihiro "Matz" Matsumoto
2013-04-29rename mrb_to_id to mrb_obj_to_sym since symbol is nothing to do with ↵Yukihiro "Matz" Matsumoto
identifier in mruby
2013-04-25rename every ARGS_XXX to MRB_ARGS_XXX; ref #1206Yukihiro "Matz" Matsumoto
2013-04-04Use mrb_name_error() as possible.Masaki Muranaka
2013-03-28Fix raisef formats in struct.c.Masaki Muranaka