summaryrefslogtreecommitdiffhomepage
path: root/include/mrbconf.h
AgeCommit message (Collapse)Author
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-08-04add MRB_API modifiers to mruby API functionsYukihiro "Matz" Matsumoto
2014-06-16Add fixed state atexit stack feature.take_cheeze
Adds following macros: * MRB_FIXED_STATE_ATEXIT_STACK (not defined by default) * When defined enables fixed state atexit stack. * MRB_FIXED_STATE_ATEXIT_STACK_SIZE (default value: 5) * This macro will be ignored when `MRB_FIXED_STATE_ATEXIT_STACK` isn't defined. * When `mrb_state_atexit` is called more than this value it will raise runtime error.
2014-05-18Remove space.yui-knk
2014-03-01revert changes to mrbconf.hYukihiro "Matz" Matsumoto
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.
2013-12-24remove MRB_IREP_ARRAY_INIT_SIZE which is no longer usedYukihiro "Matz" Matsumoto
2013-11-25remove MRB_PARSER_BUF_SIZE configuration; close #1596Yukihiro "Matz" Matsumoto
2013-11-22Make mrb->arena variable sized. Use MRB_GC_FIXED_ARENA for old behavior.Yukihiro "Matz" Matsumoto
You will not see "arena overflow" error anymore, but I encourage gem authors to check your gems with MRB_GC_FIXED_ARENA to avoid memory broat.
2013-08-08allow turning off GC generational mode by default by ↵Yukihiro "Matz" Matsumoto
MRB_GC_TURN_OFF_GENERATIONAL; #1447
2013-06-10restructure header files; move non config lines away from mrbconf.hYukihiro "Matz" Matsumoto
2013-05-26Add MRB_WORD_BOXING mode (represent mrb_value as a word)kimu_shu
2013-05-11Potential fix for 'inline' macro redefinition error - VS2012 C++Ryan Scott
2013-04-29always use unsigned int as mrb_bool even in C++Yukihiro "Matz" Matsumoto
2013-04-26quote error message in mrbconf.h to stop warningYukihiro "Matz" Matsumoto
2013-04-26Add a descrption of MRB_INT16.Masaki Muranaka
2013-04-26Avoid defining MRB_INT16 adn MRB_INT64 at the same time. This is a poka-yoke.Masaki Muranaka
2013-03-29Remove str_to_mrb_int(). There is some reasons.Masaki Muranaka
It is not used in the core. It does not have mrb_ prefix. strtol() is slightly heavy and we have similar API.
2013-03-29Move TRUE/FALSE existence checks.Masaki Muranaka
2013-03-24Include stddef.h. It is required by size_t. In case you include stdio.h, ↵Masaki Muranaka
stddef.h is included indirectly.
2013-03-24resolve conflictYukihiro Matz Matsumoto
2013-03-22Add configuration macro MRB_PARSER_BUF_SIZE.Masaki Muranaka
2013-03-18applying C++ patch from @monaka to support C++ bool type; close #1019Yukihiro Matz Matsumoto
2013-03-14experimental MRB_INT16 addedYukihiro Matz Matsumoto
2013-03-14Define type mrb_bool. It is typedef-ed to _Bool on C99, unsigned int on MSVC.Masaki Muranaka
It is safer than applying 1bit bit-fields to signed int. For forward compatibility, you should substiture only 1 or 0 for the variable typed mrb_bool.
2013-03-12Rename STR_BUF_MIN_SIZE to MRB_STR_BUF_MIN_SIZE. Make it configurable.Masaki Muranaka
2013-03-08define and use print format macros for mrb_intCremno
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-05Include stdio.h in mrbconf.h instead of C extension sources.Masaki Muranaka
2013-03-04Separate Kernel#sprintf support from mruby core. It's moved to mrbgems.Masaki Muranaka
2013-03-03Merge pull request #884 from monaka/pr-use-MRB_IREP_ARRY_INIT_SIZE-macroYukihiro "Matz" Matsumoto
Use MRB_IREP_ARRAY_INIT_SIZE macro.
2013-03-03Remove trailing whitespaces. This is just a cosmetic change.Masaki Muranaka
2013-03-01Pluggable Structmattn
2013-02-28Pluggable Mathmattn
2013-02-26Fix buildmattn
2013-02-25Use MRB_IREP_ARRAY_INIT_SIZE macro. It should be configurable since it is ↵Masaki Muranaka
possible to reduce RAM size.
2013-02-23Reduce sprintf() calls. Remove mrb_int_to_str() and MRB_INT_FORMAT.Masaki Muranaka
2013-02-21better comment description for mrbconf.h configurationYukihiro Matz Matsumoto
2013-02-21remove unused HAVE_UNISTD_H altogether; ref #865Yukihiro Matz Matsumoto
2013-02-21Clean up mrbconf.hbrainopia
- undef for windows is not used by default so comment it - casting to the same type is not needed - parenthesis are not needed for macro attributes separated by commas - change order of MRB_NAN_BOXING and MRB_INT64 to simplify logic
2013-02-17Merge pull request #851 from mattn/bye_bye_regexpYukihiro "Matz" Matsumoto
Remove DISABLE_REGEXP
2013-02-18Changed debugger hook to disableYuichiro MASUI
2013-02-18Remove DISABLE_REGEXPmattn
2013-02-17Merge pull request #845 from masuidrive/hook_fetchYukihiro "Matz" Matsumoto
Added a hook at VM code fetch.
2013-02-17Created hook at VM code fetch. It's for debuggerYuichiro MASUI
2013-02-15Pluggable Regexpmattn
2013-01-26defined printf macro for mrb_intYuichiro MASUI
2013-01-22Fixed mistakeYuichiro MASUI
2013-01-21Fixed MRB_INT64 warningYuichiro MASUI
2013-01-20Improved build scripts and config filesYuichiro MASUI