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/sample/libc.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/dl/sample') diff --git a/ext/dl/sample/libc.rb b/ext/dl/sample/libc.rb index cb16aa043f..7d1de2601d 100644 --- a/ext/dl/sample/libc.rb +++ b/ext/dl/sample/libc.rb @@ -57,8 +57,8 @@ ptr = ary.to_ptr LIBC.qsort(ptr, ary.length, DL.sizeof('P'), $cb1) p ptr.to_a('S', ary.length) -tv = LIBC::Timeval.alloc -tz = LIBC::Timezone.alloc +tv = LIBC::Timeval.malloc +tz = LIBC::Timezone.malloc LIBC.gettimeofday(tv, tz) p Time.at(tv.tv_sec) -- cgit v1.2.3