* include/ruby/ruby.h (RBIGNUM_SIGN): Defined for compatibility.
(RBIGNUM_POSITIVE_P): Ditto. (RBIGNUM_NEGATIVE_P): Ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44996 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
10a8e87ce5
commit
0bb75c4a71
@ -1,3 +1,9 @@
|
|||||||
|
Sun Feb 16 14:33:52 2014 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
|
* include/ruby/ruby.h (RBIGNUM_SIGN): Defined for compatibility.
|
||||||
|
(RBIGNUM_POSITIVE_P): Ditto.
|
||||||
|
(RBIGNUM_NEGATIVE_P): Ditto.
|
||||||
|
|
||||||
Sun Feb 16 12:46:47 2014 Eric Wong <e@80x24.org>
|
Sun Feb 16 12:46:47 2014 Eric Wong <e@80x24.org>
|
||||||
|
|
||||||
* io.c (rb_f_backquote): trade volatile for manual recycle
|
* io.c (rb_f_backquote): trade volatile for manual recycle
|
||||||
|
@ -1069,6 +1069,10 @@ struct RStruct {
|
|||||||
#define RSTRUCT_SET(st, idx, v) RB_OBJ_WRITE(st, &RSTRUCT_CONST_PTR(st)[idx], (v))
|
#define RSTRUCT_SET(st, idx, v) RB_OBJ_WRITE(st, &RSTRUCT_CONST_PTR(st)[idx], (v))
|
||||||
#define RSTRUCT_GET(st, idx) (RSTRUCT_CONST_PTR(st)[idx])
|
#define RSTRUCT_GET(st, idx) (RSTRUCT_CONST_PTR(st)[idx])
|
||||||
|
|
||||||
|
#define RBIGNUM_SIGN(b) (FIX2INT(rb_big_cmp((b), INT2FIX(0))) >= 0)
|
||||||
|
#define RBIGNUM_POSITIVE_P(b) (FIX2INT(rb_big_cmp((b), INT2FIX(0))) >= 0)
|
||||||
|
#define RBIGNUM_NEGATIVE_P(b) (FIX2INT(rb_big_cmp((b), INT2FIX(0))) < 0)
|
||||||
|
|
||||||
#define R_CAST(st) (struct st*)
|
#define R_CAST(st) (struct st*)
|
||||||
#define RBASIC(obj) (R_CAST(RBasic)(obj))
|
#define RBASIC(obj) (R_CAST(RBasic)(obj))
|
||||||
#define ROBJECT(obj) (R_CAST(RObject)(obj))
|
#define ROBJECT(obj) (R_CAST(RObject)(obj))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user