summaryrefslogtreecommitdiffhomepage
path: root/src/symbol.c
AgeCommit message (Collapse)Author
2014-08-04add MRB_API modifiers to mruby API functionsYukihiro "Matz" Matsumoto
2014-07-27Refactor sym_equal() in symbol.cJun Hiroe
2014-05-19UINT16_MAX as symbol length is reserved; ref #2294Yukihiro "Matz" Matsumoto
2014-04-29Fix MSVC warning for symbol.ckyab
2014-04-25better integer size assertion suggested by usakYukihiro "Matz" Matsumoto
2014-04-25remove -Wsign-compare warningsYukihiro "Matz" Matsumoto
2014-04-15resolve conflictYukihiro "Matz" Matsumoto
2014-04-14fixed wrong use of pointer reference found by @tsahara; ref #2059Yukihiro "Matz" Matsumoto
2014-04-14reduce RSTRING_PTR usagecremno
2014-04-12replace memcpy() with a magic number by two assignments as suggested by ↵Yukihiro "Matz" Matsumoto
@cremno; close #2048
2014-04-02Use bool macro KHASH_DEFINE and KHASH_DECLAREksss
2014-03-19change mrb_int to size_t that would take strlen()Yukihiro "Matz" Matsumoto
2014-03-15symbol length type to be mrb_intYukihiro "Matz" Matsumoto
2014-03-11fix sym_intern argument typeksss
2014-03-10Merge pull request #1840 from ksss/bit-fieldYukihiro "Matz" Matsumoto
set bit field for mrb_bool
2014-03-10set bool macroksss
2014-03-10set bit field for mrb_boolksss
2014-03-06embed small stringksss
use flags 4 for *this object is embed* use flags 8~64 for *embed string length*
2014-02-25initialize sname before interningYukihiro "Matz" Matsumoto
2014-01-31use mrb_bool, FALSE and TRUE morecremno
It doesn't matter to me if one is using FALSE/TRUE instead of 1/0 but I prefer a type (alias) which emphasizes boolean vars to int. I changed 1/0 to FALSE/TRUE anyway.
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-25rename mrb_intern_litral -> mrb_intern_staticYukihiro "Matz" Matsumoto
2013-12-24zero copy C literal strings in symbol tableYukihiro "Matz" Matsumoto
2013-12-23Merge pull request #1615 from crimsonwoods/remove_strong_coupling_by_khashYukihiro "Matz" Matsumoto
Remove 'mrb_state' field from 'kh_xxx_t' structure.
2013-12-23Remove 'mrb_state' field from 'kh_xxx_t' structure.crimsonwoods
'kh_xxx_t' requires 'mrb_state' to allocate, free, and compute hash value. But 'mrb_state' should not be held by 'kh_xxx_t' and 'mrb_state' should be supplied from outside.
2013-12-23change behavior of mrb_sym2strh2so5
2013-11-29rename mrb_intern2() to mrb_intern(); huge API incompatibility; close #1513Yukihiro "Matz" Matsumoto
2013-08-13define Class#new in ruby to call #initializeYukihiro "Matz" Matsumoto
2013-07-15Repalace int with mrb_bool because a return value is boolean.Jun Hiroe
2013-07-12Replace mrb_intern() func with mrb_intern2() func or mrb_intern_cstr() func.Jun Hiroe
2013-06-15Merge upstreamDaniel Bovensiepen
2013-06-17Add ISO Number to SymbolDaniel Bovensiepen
2013-04-28mrb_str_new_static(): zero copy string creationYukihiro "Matz" Matsumoto
2013-04-26rename mrb_interned API functionsYukihiro "Matz" Matsumoto
2013-04-26Merge branch 'suppress_intern' of https://github.com/crimsonwoods/mruby into ↵Yukihiro "Matz" Matsumoto
crimsonwoods-suppress_intern
2013-04-25modify the type of return value (mrb_bool => mrb_value).crimsonwoods
2013-04-25rename every ARGS_XXX to MRB_ARGS_XXX; ref #1206Yukihiro "Matz" Matsumoto
2013-04-25add new functions to check if symbols are interned without registration.crimsonwoods
2013-03-29Sort include files. Some redundant includes are removed.Masaki Muranaka
2013-03-27use new mrb_format API from mrb_raisef; its only format specifier is "%S" ↵Yukihiro Matz Matsumoto
(stringify) and takes mrb_value; close #1062
2013-03-24Adjusted indent, space and tabMATSUMOTO Ryosuke
2013-03-22Add new API mrb_intern_cstr(). This is for naming orthogonality. mrb_intern ↵Masaki Muranaka
is also left for backward compatibility.
2013-03-19rename mrb_true_or_false_value() to mrb_bool_value()Yukihiro Matz Matsumoto
2013-03-19Use mrb_true_or_false_value() / in sym_equal().Masaki Muranaka
2013-03-18Removed unused exprYuichiro MASUI
2013-03-14Fix indentation in symbol.ckano4
2013-03-14symbol length make size_t from mrb_int; cancel #993 ↵Yukihiro Matz Matsumoto
monaka/pr-cleanup-symbol.c-20130312
2013-03-12Use mrb_int as possible.Masaki Muranaka
2013-03-12Copy to *lenp just in case lenp != NULL.Masaki Muranaka
2013-03-05Skip end of loop in mrb_sym2name_lenmattn