зеркало из https://github.com/github/ruby.git
ruby.h: removed internal macros
* include/ruby/ruby.h (RCOMPLEX_SET_REAL, RCOMPLEX_SET_IMAG): removed macros for internal use, which have been exposed by accident. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64631 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
1cf2bb4b20
Коммит
868ad2104c
|
@ -1076,9 +1076,6 @@ struct RFile {
|
|||
struct rb_io_t *fptr;
|
||||
};
|
||||
|
||||
#define RCOMPLEX_SET_REAL(cmp, r) RB_OBJ_WRITE((cmp), &((struct RComplex *)(cmp))->real,(r))
|
||||
#define RCOMPLEX_SET_IMAG(cmp, i) RB_OBJ_WRITE((cmp), &((struct RComplex *)(cmp))->imag,(i))
|
||||
|
||||
struct RData {
|
||||
struct RBasic basic;
|
||||
void (*dmark)(void*);
|
||||
|
|
|
@ -666,12 +666,9 @@ struct RComplex {
|
|||
|
||||
#define RCOMPLEX(obj) (R_CAST(RComplex)(obj))
|
||||
|
||||
#ifdef RCOMPLEX_SET_REAL /* shortcut macro for internal only */
|
||||
#undef RCOMPLEX_SET_REAL
|
||||
#undef RCOMPLEX_SET_IMAG
|
||||
/* shortcut macro for internal only */
|
||||
#define RCOMPLEX_SET_REAL(cmp, r) RB_OBJ_WRITE((cmp), &((struct RComplex *)(cmp))->real,(r))
|
||||
#define RCOMPLEX_SET_IMAG(cmp, i) RB_OBJ_WRITE((cmp), &((struct RComplex *)(cmp))->imag,(i))
|
||||
#endif
|
||||
|
||||
struct RHash {
|
||||
struct RBasic basic;
|
||||
|
|
Загрузка…
Ссылка в новой задаче