summaryrefslogtreecommitdiffhomepage
path: root/include
AgeCommit message (Collapse)Author
2015-05-18fix type of mrb_exc_new()'s len parametercremno
mrb_str_new() takes size_t, so should mrb_exc_new().
2015-05-17remove SET_PROC_VALUE() macrocremno
It isn't used anymore since the #2791 merge. It's also unlikely to be needed again as it wasn't before (its usage was unnecessary).
2015-05-17Merge pull request #2791 from cremno/remove-mrb_define_method_vmYukihiro "Matz" Matsumoto
remove mrb_define_method_vm() function
2015-05-15remove mrb_define_method_vm() functioncremno
It isn't needed as it's very similar to mrb_define_method_raw() and also there's only one place where mrb_proc_ptr() actually has to be called. Inspired by @furunkel's method cache patch (#2764).
2015-05-15Update Coopyright Information to year 2015Daniel Bovensiepen
2015-05-12Avoid unnecessary stores and reloadsfurunkel
2015-04-17Use builtins for overflow math if possiblefurunkel
2015-04-03Merge pull request #2754 from cremno/remove-unnecessary-inttypes.h-inclusionYukihiro "Matz" Matsumoto
remove unnecessary <inttypes.h> inclusion
2015-03-30remove unnecessary <inttypes.h> inclusioncremno
The format specifier macros were needed to portably print a mrb_int, because mrb_raisef() originally called vsnprintf(). It doesn't anymore since 18b2683b97ae54d4f2f15c19076f33aa29eaf2b7 and the mrb_int format specifier macros are already gone.
2015-03-30MSVC 2015 implements inline keywordcremno
Apparently the C compiler of Visual Studio 2015 CTP6 finally implements inline as inline and not only as _inline and __inline.
2015-02-19add a prototype declaration for mrb_fiber_resume(); ref #1269Yukihiro "Matz" Matsumoto
2015-02-13re-implement mrb_float_to_str()cremno
The new implementation is backwards incompatible, but I couldn't find any usage outside mruby and I also couldn't think of a different and good name. All ISO C99 printf conversion specifiers for floating point numbers and an optional precision are supported. It is largely based on code from the MIT licensed musl libc (http://www.musl-libc.org/) and its floating point printing is exact (unlike the current code behind Float#to_s).
2015-02-02allow endian specification of mrb files by `mrbc -e/-E`Yukihiro "Matz" Matsumoto
`mruby -b` now accepts both big/little endian mrb (compiled binary) files. `mrbc` generates mrb files in big endian for .mrb files and in native endian for C files (with -B option specified) by default. If you are cross compiling, you need to specify target endian by -e/-E options if it is different from host endian.
2015-01-03Removed duplicated declarations.Tatsuhiko Kubo
* `mrb_show_version()` * `mrb_show_copyright()`
2014-12-23khash.h: keep key/value table accessible from original hashtable during ↵Yukihiro "Matz" Matsumoto
resize; fix #2682
2014-12-02fix ISBLANK() for Visual Studio < 2013 (ref #2658)cremno
Visual Studio versions older than 2013 lack C99's isblank(). Since only ASCII characters are passed to it, implement it directly without calling the locale-specific isblank().
2014-11-19Merge pull request #2640 from mruby-Forum/v1.1.01.1.0Hiroshi Mimaki
mruby-1.1.0
2014-11-19separate mrb_notimplement() and mrb_notimplement_m(); ref #2636Yukihiro "Matz" Matsumoto
2014-11-18mruby-1.1.0mimaki
2014-11-18Add mruby debugger (mrdb)mimaki
2014-11-17Implement C API mrb_notimplementksss
2014-11-10Merge branch 'master' of github.com:mruby/mrubyYukihiro "Matz" Matsumoto
2014-11-10Fix mrb_iv_check function declerationXuejie "Rafael" Xiao
2014-11-04update teeny of MRUBY_VERSION; ref #2629Yukihiro "Matz" Matsumoto
2014-11-04Fix misaligned access when reading irep; close #2630Yukihiro "Matz" Matsumoto
Add padding bytes before iseq block that may be used as mrb_code[]. Note that dumped mrb format has changed. Based on a patch from kimu_shu <[email protected]>
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