summaryrefslogtreecommitdiffhomepage
path: root/include
AgeCommit message (Collapse)Author
2014-10-29Fix mrb_convert_to_integer.Jun Hiroe
2014-10-15remove header prototype of mrb_exc_print; close #2607Yukihiro "Matz" Matsumoto
2014-10-03word_boxing.h used int to represent symbols; use mrb_sym insteadYukihiro "Matz" Matsumoto
2014-10-02cast MRB_ENV_STACK_LEN to (mrb_int); ref #2600Yukihiro "Matz" Matsumoto
2014-10-02use __init_array_start to determine readonly data section;Yukihiro "Matz" Matsumoto
b72e94f used _etext and _edata to distinguish C string literals from heap allocated strings, but using _edata, global char arrays may be considered as string literals. to avoid the issue, we have to use __init_array_start, which might be less portable. you can still use _edata, by using MRB_NO_INIT_ARRAY_START.
2014-09-30mrbconf.h option MRB_USE_ETEXT_EDATA to reduce memory.Yukihiro "Matz" Matsumoto
on platforms with _etext and _edata, mruby can distinguish string literals so that it avoids memory allocation to copy them. for example, on my Linux box (x86 32bit), memory consumed by mrbtest decreased from 8,168,203 to 8,078,848 (reduced 88KB).
2014-09-30O(1) mrb_sym2name_len(); close #2591Yukihiro "Matz" Matsumoto
instead of adding sym->name hash table, linear symbol table is added, and reduced name->sym hash table size.
2014-09-27Remove duplicated mrb_print_backtrace() declarationKouhei Sutou
It is declared in mruby.h.
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-15change mrb_sym type from uint16_t to uint32_tYukihiro "Matz" Matsumoto
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-05add some MRB_API to function prototypesYukihiro "Matz" Matsumoto
2014-09-05use uint16_t instead of short; ref #2568Yukihiro "Matz" Matsumoto
2014-09-02refactor valid instance variable name checkYukihiro "Matz" Matsumoto
2014-09-02move mrb_proc_new_cfunc_with_env() to the coreYukihiro "Matz" Matsumoto
2014-08-29delete obsolete macros (mrb_basic + mrb_object)cremno
Over a year ago is not "soon" anymore. See: 88483fad0036e5cb023940f7c6d18006517fa731 243669308dfd10c8444c2992a883e165b9209941
2014-08-29allow no_optimize esp. for debuggerYukihiro "Matz" Matsumoto
2014-08-29Merge pull request #2570 from cubicdaiya/issues/unify_duplicated_functionsYukihiro "Matz" Matsumoto
Unify and rename duplicated functions (noregexp() and regexp_check()).
2014-08-29Fix mismatches for MRB_API declarations.Tatsuhiko Kubo
2014-08-28Rename functions for avoinding symbol confiliction.Tatsuhiko Kubo
Add prefix(mrb) to noregexp() and regexp_check().
2014-08-28Unify duplicated functions (noregexp() and regexp_check()).Tatsuhiko Kubo
2014-08-27add symbol table overflow checkcremno
Since raising an error might intern a few new strings, some symbols need to be reserved. 8 should be sufficient. If the real limit has been reached, mrb_bug() is called.
2014-08-26remove unused MSVC strtoll fallbackcremno
2014-08-21Unify include guard styles and header comments.Tatsuhiko Kubo
2014-08-20Add API `mrb_data_init` to initialize `MRB_TT_DATA` tagged instance.take_cheeze
2014-08-06Rename GC_STATE_NONE GC_STATE_ROOTJun Hiroe
2014-08-05Refactor obj_free() in gc.cJun Hiroe
2014-08-05Merge pull request #2508 from iij/pr-mrb-str-to-cstr-returns-mutableYukihiro "Matz" Matsumoto
revert accidental constify.
2014-08-05revert accidental constify.Tomoyuki Sahara
2014-08-04Merge branch 'master' of github.com:mruby/mrubyYukihiro "Matz" Matsumoto
2014-08-03MSVC: add simple (v)snprintf implementationcremno
_snprintf is not C99's snprintf! This simple implementation, unlike _snprintf, always null-terminates and returns the expected return value (in most cases). Other C99 behaviors (like format specifiers) require adding a complete snprintf implementation. Do we want or need that? The same applies to vsnprintf (aka _vsnprintf).
2014-08-04turn string obsolete functions into macrosYukihiro "Matz" Matsumoto
2014-08-04add MRB_API modifiers to mruby API functionsYukihiro "Matz" Matsumoto
2014-08-03fix typo with MRB_INT16; fix #2495Yukihiro "Matz" Matsumoto
2014-07-24Merge pull request #2477 from take-cheeze/allocf_udYukihiro "Matz" Matsumoto
Add field `allocf_ud` to replace current `ud`.
2014-07-23Silence "unused parameter" warnings in C++Jonas Kulla
This has been done already, but the fixes were accidentally removed in 249f05e7d70761823ef07a990276f9200e8b3302.
2014-07-21Use MRB_TT_EXCEPTION in exception object.take_cheeze
2014-07-20Move word boxing structs to "mruby/boxing_word.h".take_cheeze
2014-07-17Add field `allocf_ud` to replace current `ud`.take_cheeze
Since some use it as `mrb_state` associated user data.
2014-07-14Use `mrb_bool` as return type of `mrb_const_defined_at`.take_cheeze
2014-07-12use SystemStackError instead of RuntimeErrorYukihiro "Matz" Matsumoto
2014-07-09Merge branch 'master' of github.com:mruby/mrubyYukihiro "Matz" Matsumoto
2014-07-09rename boxing_nix.h to boxing_no.hYukihiro "Matz" Matsumoto
2014-07-09rename word boxing functionsYukihiro "Matz" Matsumoto
2014-07-09rename SET_FIXNUM_VALUE to SET_INT_VALUE since it sets mrb_int valueYukihiro "Matz" Matsumoto
2014-07-09Clean up value.h and mrb_value boxingDavid Turnbull
2014-07-06Add new API `mrb_ary_resize`(mruby implementation of `rb_ary_resize`).take_cheeze
2014-07-01Fix MRB_WORD_BOXING by correctly telling GC which mrb_value types are immediate.David Turnbull
2014-06-25proc.h: MRB_ASPEC_REST() macro return 1 or 0ksss
MRB_ASPEC_REST() is macro just only checks whether truthy or falsy. And truthy means exist 1 rest argument in current proc.
2014-06-24add a few const qualifierSanta Zhang