mall.git  about / heads / tags
access the mallinfo(3) and mallopt(3) functions from Ruby
blob c8ae538ef12c99c513afb9a4b5ff12be3e81e31d 287 bytes (raw)
$ git show HEAD:ext/mall/extconf.rb	# shows this blob on the CLI

1
2
3
4
5
6
7
8
 
require 'mkmf'

have_header('malloc.h') or abort "malloc.h header missing"
have_type('struct mallinfo', 'malloc.h') or abort 'struct mallinfo missing'
have_func('malloc_trim', 'malloc.h')
have_func('malloc_stats', 'malloc.h')
have_func('malloc_info', 'malloc.h')
create_makefile('mall')

git clone https://yhbt.net/mall.git