mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* include/ruby/ruby.h (RSTRUCT_PTR): need a close parenthese.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52473 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7ceb0f9eb4
commit
92861a1163
2 changed files with 5 additions and 1 deletions
|
|
@ -1,3 +1,7 @@
|
|||
Sat Nov 7 03:32:27 2015 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* include/ruby/ruby.h (RSTRUCT_PTR): need a close parenthese.
|
||||
|
||||
Sat Nov 7 01:32:06 2015 Naohisa Goto <ngotogenome@gmail.com>
|
||||
|
||||
* dir.c (dir_fileno, dirfd): support of Dir#fileno on Solaris 10.
|
||||
|
|
|
|||
|
|
@ -1228,7 +1228,7 @@ struct RStruct {
|
|||
#define RSTRUCT_LEN(st) rb_struct_len(st)
|
||||
#define RSTRUCT_LENINT(st) rb_long2int(RSTRUCT_LEN(st))
|
||||
#define RSTRUCT_CONST_PTR(st) rb_struct_const_ptr(st)
|
||||
#define RSTRUCT_PTR(st) ((VALUE *)RSTRUCT_CONST_PTR(RB_OBJ_WB_UNPROTECT_FOR(STRUCT, st))
|
||||
#define RSTRUCT_PTR(st) ((VALUE *)RSTRUCT_CONST_PTR(RB_OBJ_WB_UNPROTECT_FOR(STRUCT, st)))
|
||||
|
||||
#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])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue