From 4bf76b4e6c85db9177f1501843b8161ddfae222b Mon Sep 17 00:00:00 2001 From: ttate Date: Mon, 20 May 2002 15:35:48 +0000 Subject: rename PtrData::alloc and Struct#alloc to malloc respectively. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2476 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/dl/lib/dl/struct.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/dl/lib/dl') diff --git a/ext/dl/lib/dl/struct.rb b/ext/dl/lib/dl/struct.rb index faa1377c51..efa9118c11 100644 --- a/ext/dl/lib/dl/struct.rb +++ b/ext/dl/lib/dl/struct.rb @@ -81,7 +81,7 @@ module DL return mem end - def alloc(size = nil) + def malloc(size = nil) if( !size ) size = @size end -- cgit v1.2.3