summaryrefslogtreecommitdiffstats
path: root/include/ruby
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-11-23 07:00:50 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-11-23 07:00:50 +0000
commite5b80d58446ab6882e5d45d5b737e9a6ea70d890 (patch)
tree766be5e92103ecf3001063b0ff5a703f95bfc3b9 /include/ruby
parentde110ffd3c2c39ffda9b91e2da351c3dc4e877db (diff)
downloadruby-e5b80d58446ab6882e5d45d5b737e9a6ea70d890.tar.gz
ruby-e5b80d58446ab6882e5d45d5b737e9a6ea70d890.tar.xz
ruby-e5b80d58446ab6882e5d45d5b737e9a6ea70d890.zip
* struct.c (rb_struct_alloc_noinit): new function.
(rb_struct_define_without_accessor): add allocator to the arguments. * range.c (range_alloc): re-introduced using rb_struct_alloc_noinit. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14003 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby')
-rw-r--r--include/ruby/intern.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/ruby/intern.h b/include/ruby/intern.h
index 7af65d414..20ba6ef55 100644
--- a/include/ruby/intern.h
+++ b/include/ruby/intern.h
@@ -542,7 +542,8 @@ VALUE rb_struct_getmember(VALUE, ID);
VALUE rb_struct_iv_get(VALUE, const char*);
VALUE rb_struct_s_members(VALUE);
VALUE rb_struct_members(VALUE);
-VALUE rb_struct_define_without_accessor(char *, VALUE, ...);
+VALUE rb_struct_alloc_noinit(VALUE);
+VALUE rb_struct_define_without_accessor(char *, VALUE, rb_alloc_func_t, ...);
/* thread.c */
typedef void rb_unblock_function_t(void *);
typedef VALUE rb_blocking_function_t(void *);