mimaki
22464fe5a0
mruby-1.2.0
2015-11-17 18:02:30 +09:00
cremno
ad21e5e6d8
fix MRB_DISABLE_STDIO typos
2015-11-17 00:08:41 +01:00
Yukihiro "Matz" Matsumoto
4440566b95
DISABLE_STDIO/ENABLE_DEBUG macros to rename; close #3014
...
changes:
* rename DISABLE_STDIO -> MRB_DISABLE_STDIO
* rename ENABLE_DEBUG -> MRB_ENABLE_DEBUG_HOOK
* no more opposite macro definitions (e.g. ENABLE_STDIO, DISABLE_DEBUG).
* rewrite above macro references throughout the code.
* update documents
2015-11-17 07:30:34 +09:00
cremno
d109e5b4e1
remove ifdef as MRB_FIXNUM_SHIFT is always defined
2015-11-06 19:27:39 +01:00
Yukihiro "Matz" Matsumoto
727f2485c9
Merge pull request #2999 from sagmor/better-docs
...
More Docs
2015-10-22 07:10:16 +09:00
Seba Gamboa
d4238494eb
Tag include/mruby/error.h functions with required mrbgem tag
2015-10-21 17:03:43 -03:00
Seba Gamboa
25c8e95365
Revert "Mark core gems with mrbgem tag"
...
This reverts commit 5cdcce8dbd .
2015-10-21 14:31:13 -03:00
Seba Gamboa
5cdcce8dbd
Mark core gems with mrbgem tag
2015-10-20 12:16:47 -03:00
Seba Gamboa
84b70886cd
Add block to document mrb_value type
2015-10-20 12:16:46 -03:00
furunkel
1c6b1d0155
Prefix mrb_gc_state enum members, make color defines private
2015-10-20 10:54:47 +02:00
furunkel
2b39d87fe8
Remove gc_ prefix of mrb_gc fields
2015-10-19 23:00:07 +02:00
furunkel
2f8b0f66bc
Move MRB_GC_ARENA_SIZE to gc.h and fix compiler warnings
2015-10-19 22:43:09 +02:00
furunkel
3ab2f9371e
Clean up GC code
2015-10-19 22:29:43 +02:00
Seba Gamboa
ef73ec560e
array header cleanup
2015-10-08 13:33:38 -03:00
Seba Gamboa
11fb10a21a
Merge doc/api/mruby/hash.h.md docs
2015-10-08 13:29:57 -03:00
Seba Gamboa
5dfdd53bcc
Merge doc/api/mruby/range.h.md docs
2015-10-08 13:26:23 -03:00
Seba Gamboa
e441fdaad8
Merge doc/api/mruby/value.h.md docs
2015-10-08 13:17:31 -03:00
Seba Gamboa
649901b75c
Merge doc/api/mruby/string.h.md contents
2015-10-08 12:55:28 -03:00
Seba Gamboa
4dc9869700
Merge contents from doc/api/mruby/version.h.md
2015-10-08 12:45:25 -03:00
Seba Gamboa
a0fe0c40b1
Remove old doxygen tags
2015-10-08 12:29:10 -03:00
Seba Gamboa
4c8205db1f
Merge descriptions from doc/api/mruby/array.h.md
2015-09-21 15:13:43 -03:00
Seba Gamboa
88f9770f83
document mrb_nil_value
2015-09-21 14:50:59 -03:00
Seba Gamboa
0e5b815399
Document data header
2015-09-21 14:50:04 -03:00
Seba Gamboa
dd925578c6
Sort compiler macros around
2015-09-21 11:59:39 -03:00
Seba Gamboa
40bf7bde78
Sorting documentation grouping
2015-09-21 01:48:42 -03:00
Seba Gamboa
c127614638
Setting up doxygen groups
2015-09-20 21:14:07 -03:00
Seba Gamboa
7505bad677
Playing around with some documentations schemes
2015-09-18 23:59:29 -03:00
Yukihiro "Matz" Matsumoto
2550edd570
remove origin member to implement prepend from struct RClass; ref #2885
...
instead origin is saved in ICLASS with MRB_FLAG_IS_ORIGIN set.
2015-09-05 02:01:02 +09:00
Yukihiro "Matz" Matsumoto
8bb7962eb8
Merge branch 'module-prepend' of https://github.com/polyfox/mruby into polyfox-module-prepend
2015-09-04 04:01:49 +09:00
Yukihiro "Matz" Matsumoto
7b5f8b0728
remove trailing spaces from bc9c47d5
2015-09-03 01:39:17 +09:00
jbreeden
5ed13da7d6
C++ 11 requires a space between literal and identifiers
2015-09-01 18:12:53 -07:00
Jun Hiroe
a2385c05f5
Refactor version.h macros
2015-09-01 13:54:52 +09:00
Yukihiro "Matz" Matsumoto
1a45447b8b
add String#freeze to the core
2015-08-27 17:54:30 +09:00
Corey Powell
667f7788db
Renamed MRB_FLAG_IS_INSTANCE to MRB_INSTANCE_TT_MASK
2015-07-15 07:27:31 -05:00
Yukihiro "Matz" Matsumoto
1085167fef
add an small comment description in mruby/error.h header
2015-07-15 14:47:15 +09:00
take_cheeze
f6b5a82972
Use class array instead of variadic.
2015-07-15 14:47:15 +09:00
take_cheeze
cdd72d9c37
Implement mrb_protect, mrb_ensure, mrb_rescue, mrb_rescue_exceptions.
...
(`mrb_rescue_exceptions` is mruby implementation of `rb_rescue2`.)
Closes #2844 , closes #2837 .
2015-07-15 14:46:56 +09:00
Corey Powell
eb172c28d7
Applied gc patch to fix ORIGIN ICLASS method table leak
...
Based on the gc patch by ko1
https://github.com/ruby/ruby/commit/5922c954614e5947a548780bb3b894626affe6dd
2015-07-14 09:44:04 -05:00
Blaž Hrastnik
f962890a92
Implement Module#prepend.
2015-07-13 14:04:42 +02:00
Yukihiro "Matz" Matsumoto
9c311ddc93
refactor mrb_bob_missing to share raising NoMethodError code; fix #2878
...
Note: arguments of mrb_no_method_error() has changed. You need to replace
3rd and 4th argument (say n, argv) to mrb_ary_new_from_values(mrb, n, argv).
2015-07-13 11:07:59 +09:00
Franck Verrot
2588507285
Remove unnecessary backticks.
...
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-06-24 13:07:07 +02:00
take_cheeze
6498d90f1b
Move "src/mrb_throw.h" to "include/mruby/throw.h".
...
Related to #2760 .
2015-05-25 21:19:24 +09:00
cremno
4c868a9562
remove SET_PROC_VALUE() macro
...
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-17 22:25:55 +02:00
cremno
2106d4d446
remove mrb_define_method_vm() function
...
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-15 13:04:55 +02:00
furunkel
99a00cf417
Avoid unnecessary stores and reloads
2015-05-12 13:46:56 +02:00
furunkel
08c877699a
Use builtins for overflow math if possible
2015-04-17 17:37:09 +02:00
Yukihiro "Matz" Matsumoto
d77249f006
Merge pull request #2754 from cremno/remove-unnecessary-inttypes.h-inclusion
...
remove unnecessary <inttypes.h> inclusion
2015-04-03 08:30:44 +09:00
cremno
18fdf7e03f
remove unnecessary <inttypes.h> inclusion
...
The format specifier macros were needed to portably print a mrb_int,
because mrb_raisef() originally called vsnprintf(). It doesn't anymore
since 18b2683b97 and the mrb_int format
specifier macros are already gone.
2015-03-30 21:01:16 +02:00
cremno
6424569a63
MSVC 2015 implements inline keyword
...
Apparently the C compiler of Visual Studio 2015 CTP6 finally implements
inline as inline and not only as _inline and __inline.
2015-03-30 20:13:23 +02:00
cremno
6f893b5183
re-implement mrb_float_to_str()
...
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-13 09:33:03 +01:00