diff options
| author | ttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-05-20 15:35:48 +0000 |
|---|---|---|
| committer | ttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-05-20 15:35:48 +0000 |
| commit | 01140893f6dd769b3d6690fbe41285d12f22e138 (patch) | |
| tree | 08d6ffce3fc185927152eed8281407a1f3862826 /ext/dl/sample | |
| parent | fc5fce68e4cb48f1cb3275b3992f08bdfe4174ba (diff) | |
| download | ruby-01140893f6dd769b3d6690fbe41285d12f22e138.tar.gz ruby-01140893f6dd769b3d6690fbe41285d12f22e138.tar.xz ruby-01140893f6dd769b3d6690fbe41285d12f22e138.zip | |
rename PtrData::alloc and Struct#alloc to malloc respectively.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2476 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/dl/sample')
| -rw-r--r-- | ext/dl/sample/libc.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/dl/sample/libc.rb b/ext/dl/sample/libc.rb index cb16aa043..7d1de2601 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) |
