summaryrefslogtreecommitdiffstats
path: root/include/ruby/missing.h
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-06-16 21:36:50 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-06-16 21:36:50 +0000
commit9356fffe38ca78890628769a73c46c68c4f90d5d (patch)
tree15aa77a6191cf6223baa51fc7578b6e1fcd6a62b /include/ruby/missing.h
parent1f60dc7ffb674cefecc06562b95d777fe9584797 (diff)
downloadruby-9356fffe38ca78890628769a73c46c68c4f90d5d.tar.gz
ruby-9356fffe38ca78890628769a73c46c68c4f90d5d.tar.xz
ruby-9356fffe38ca78890628769a73c46c68c4f90d5d.zip
* include/ruby/ruby.h: New structure RTypedData, added.
This structure incldues more explicit type information for T_DATA objects. If RData(obj)->dfree is immediate value `1' on T_DATA object obj, obj is needed to be accessed with RTYPEDDATA(obj) instead of RDATA(obj). A RTypedData structure points the structure rb_typed_data_t. rb_typed_data_t includes information such as the type name of this data, mark and free function what RData includes, and memsize function show how data consuming the memory size. Note that you do not need any change existing T_DATA objects. If you use RDataType instead of RData on T_DATA object, you can specify explicit type information. * gc.c (rb_data_typed_object_alloc, rb_objspace_data_type_memsize, rb_objspace_data_type_name): added. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23710 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby/missing.h')
0 files changed, 0 insertions, 0 deletions