summaryrefslogtreecommitdiff
path: root/marshal.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-09-27 01:28:47 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-09-27 01:28:47 +0000
commitbb10a21346fb1e66f581c8ef3110649b1ecb355a (patch)
treecc6fa8578838df1ba204b3a035d5293632f071bf /marshal.c
parent2a8989d71c611884631c4d9ff5dba65aed00cc83 (diff)
ruby.h: deprecate plain Data
* include/ruby/ruby.h (rb_data_object_alloc_deprecated): deprecate Data_Make_Struct and Data_Wrap_Struct. [EXPERIMENTAL] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47717 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'marshal.c')
-rw-r--r--marshal.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/marshal.c b/marshal.c
index 598f90f187..26fd0bcc0b 100644
--- a/marshal.c
+++ b/marshal.c
@@ -28,6 +28,8 @@
#include <ieeefp.h>
#endif
+#undef rb_data_object_alloc
+
#define BITSPERSHORT (2*CHAR_BIT)
#define SHORTMASK ((1<<BITSPERSHORT)-1)
#define SHORTDN(x) RSHIFT((x),BITSPERSHORT)