Yukihiro "Matz" Matsumoto
206f89e209
add MRB_API modifiers to mruby API functions
2014-08-04 00:47:08 +09:00
Yukihiro "Matz" Matsumoto
5e5fad2f25
fix typo with MRB_INT16; fix #2495
2014-08-03 20:30:29 +09:00
Jonas Kulla
ec606e3aa7
Silence "unused parameter" warnings in C++
...
This has been done already, but the fixes were accidentally
removed in 249f05e7d7 .
2014-07-23 21:40:15 +02:00
take_cheeze
3c96602574
Use MRB_TT_EXCEPTION in exception object.
2014-07-21 23:09:13 +09:00
Yukihiro "Matz" Matsumoto
df4c298e3b
rename boxing_nix.h to boxing_no.h
2014-07-09 07:06:58 +09:00
Yukihiro "Matz" Matsumoto
0cf86dea0e
rename SET_FIXNUM_VALUE to SET_INT_VALUE since it sets mrb_int value
2014-07-09 06:40:19 +09:00
David Turnbull
249f05e7d7
Clean up value.h and mrb_value boxing
2014-07-09 06:32:11 +09:00
David Turnbull
ed5c13bc11
Fix MRB_WORD_BOXING by correctly telling GC which mrb_value types are immediate.
2014-07-01 15:23:23 -07:00
Santa Zhang
17ecbaa23d
add a few const qualifier
2014-06-25 07:53:23 +09:00
cremno
84e1b0a9d0
upcoming Visual Studio versions provide snprintf
2014-06-04 06:04:06 +02:00
yui-knk
0c96ba4bd8
Replace tab with spaces.
2014-05-17 00:49:08 +09:00
Yukihiro "Matz" Matsumoto
c12f64271a
fix overflow error like #2244 on MRB_WORD_BOXING
2014-05-13 23:15:44 +09:00
cremno
86cfcd20d6
simply use isfinite
2014-05-04 01:50:17 +02:00
kyab
10cc4be32d
Fix MSVC warnings for numeric.c
2014-04-28 03:07:28 +09:00
take_cheeze
d4a510f751
Add mrb_regexp_p to check whether mrb_value is Regexp.
2014-04-17 14:32:45 +09:00
take_cheeze
90d74b99ff
Add MRB_TT_HAS_BASIC_P macro to check whether a typetag has MRB_OBJECT_HEADER.
2014-04-09 14:26:26 +09:00
Yukihiro "Matz" Matsumoto
ddd1bfda02
type of mrb_type() should be enum mrb_vtype when MRB_NAN_BOXING is on
2014-03-15 14:30:17 +09:00
cremno
1b6a4fb5a2
add MRB_INT_BIT
2014-03-11 20:14:18 +01:00
cremno
8a4faae55e
MSVC: add NAN and INFINITY for older versions
2014-03-08 17:25:56 +01:00
cubicdaiya
dd4ddcae38
fix a comment end of include guard
2014-03-04 20:35:11 +09:00
Yukihiro "Matz" Matsumoto
7952e7af3c
Merge pull request #1740 from tmash06/fix_missing_spaces
...
fix missing spaces.
2014-02-26 01:54:27 +09:00
Tatsuya Matsumoto
fd903c1f38
fix missing spaces.
2014-02-26 00:06:23 +09:00
cremno
1838099e00
more mrb_flo_to_str fixes
...
- remove float check (take mrb_float instead of mrb_value)
- support -0.0
- fix range error if log10 is called when n == 0.0
- MSVC older than 2013: add signbit macro (for double)
2014-02-17 12:37:39 +01:00
Yukihiro "Matz" Matsumoto
dc27c2be46
Merge pull request #1634 from cremno/use-mrb_fixnum_p
...
tiny word boxing optimization
2014-01-02 15:46:00 -08:00
cremno
09bb30870b
tiny word boxing optimization
2014-01-02 06:36:29 +01:00
cremno
16c5cf92b0
NaN boxing: use uintptr_t for bit manipulations
2014-01-02 06:19:20 +01:00
Yukihiro "Matz" Matsumoto
9ac386923d
float objects in pool are objects when MRB_WORD_BOXING is set
2013-11-27 17:29:28 +09:00
kyab
1a6244d99d
Fix build error for MRB_WORD_BOXING
2013-11-26 20:28:24 +09:00
Yukihiro "Matz" Matsumoto
3995e7ff8f
rename voidp to cptr
2013-09-21 17:28:47 +09:00
Yukihiro "Matz" Matsumoto
578589141f
use CHAR_BIT instead of bare 8
2013-08-12 09:52:16 +09:00
Yukihiro "Matz" Matsumoto
3a27e9189a
move (void) cast after declarations
2013-08-12 09:37:21 +09:00
Jonas Kulla
9b01bf6035
Silence 'unused parameter' warnings
2013-08-10 09:29:42 +02:00
Yukihiro "Matz" Matsumoto
1f5c91d68d
use intptr_t instead of int64_t for 32bit platforms
2013-08-07 23:02:08 +09:00
Yukihiro "Matz" Matsumoto
40e6cdcb5c
rename mrb_value_p() to mrb_ptr() since _p means predicate in mruby source
2013-08-07 17:39:28 +09:00
Yuichi Nishiwaki
7389ae4b7d
fix bugs in comment
2013-08-04 04:28:51 -07:00
Yuichi Nishiwaki
dd2ea59d61
add commentary to value representation
2013-08-04 01:08:11 -07:00
Yuichi Nishiwaki
94a6d8380f
bugfix: the bit mask was smaller than the size it should be
2013-08-04 01:07:30 -07:00
Yuichi Nishiwaki
8854ecb629
revert one of the API changes: MRB_SET_VALUE_P no longer used
2013-08-04 00:40:41 -07:00
Yuichi Nishiwaki
07fefb585e
cosmetic changes
2013-08-04 00:18:03 -07:00
Yuichi Nishiwaki
831e16cdf5
implement 64bit nan-boxing
2013-08-04 00:12:22 -07:00
Yuichi Nishiwaki
8dc2fa3bc8
add read barrier to value.p
...
API changes:
- value.p must be accessed via mrb_value_p macro
- value.p must be mutated via MRB_SET_VALUE_P macro
2013-08-03 14:03:44 -07:00
Cremno
bc91bcefcf
include inttypes.h if _MSC_VER is not defined
2013-06-27 12:30:25 +02:00
Cremno
8728837478
Visual Studio 2013 support + strtof + inline
...
- VC12 has better C99 library support due to C++11
- defined strtof for VC11 or older
- define "inline" only if the C compiler is used
2013-06-27 12:18:35 +02:00
Yukihiro "Matz" Matsumoto
4e877bc92f
restructure header files; move non config lines away from mrbconf.h
2013-06-10 14:40:32 +09:00
Yukihiro "Matz" Matsumoto
b172be47fa
small refactoring over word boxing
2013-05-29 00:05:57 +09:00
kimu_shu
e720782f81
Add MRB_WORD_BOXING mode (represent mrb_value as a word)
2013-05-26 10:09:17 +09:00
Yukihiro "Matz" Matsumoto
5c0b9b703c
primary mruby fiber implementation
2013-05-20 17:54:07 +09:00
Yukihiro "Matz" Matsumoto
ee14d37da4
use uint8_t for mrb_bool instead of unsigned int; close #1222
2013-04-29 11:46:16 +09:00
Yukihiro "Matz" Matsumoto
8890a992a6
always use unsigned int as mrb_bool even in C++
2013-04-29 09:23:43 +09:00
Yukihiro "Matz" Matsumoto
f475da9bf9
Merge pull request #871 from monaka/pr-remove-bit-field-in-mrb_value
...
Remove the bit-field by mrb_value.tt
2013-03-30 07:23:24 -07:00