ruby/ext/fiddle
Vít Ondruch ce6caade7c [ruby/fiddle] Use ffi_closure_free by default. (#20)
* Use ffi_closure_free unconditionally.

The current conditionals reflect historic heritage of FFI. Usage of
ffi_closure_free should be better default nowadays, because libffi 3.0.5
fixing issues of ffi_closure_free should be widely available.

* RUBY_LIBFFI_MODVERSION is not used anymore.

Because `ffi_closure_free()` is not used unconditionally, there is no
other use for RUBY_LIBFFI_MODVERSION define, so drop its usage.

* Use more meaningful variable name.

`ver` variable used to be used to pupulate RUBY_LIBFFI_MODVERSION
define. Since the define was removed, the `libffi_dir` variable name
should better describe the remaining usage of the variable.

c49cc79eb8
2019-10-24 19:34:43 +09:00
..
lib fiddle/import.rb: suppress warning 2018-04-19 23:35:39 +00:00
win32 Merge fiddle-1.0.0.beta2 from upstream. 2017-09-12 11:52:23 +00:00
closure.c [ruby/fiddle] Use ffi_closure_free by default. (#20) 2019-10-24 19:34:43 +09:00
closure.h ext: protoize no-arguments functions 2014-10-04 23:29:24 +00:00
conversions.c
conversions.h conversions.h: PTR2NUM 2015-12-13 09:35:10 +00:00
depend Include ruby/assert.h in ruby/ruby.h so that assertions can be there 2019-07-14 17:58:03 +09:00
extconf.rb [ruby/fiddle] Use ffi_closure_free by default. (#20) 2019-10-24 19:34:43 +09:00
extlibs Fixup r59961. Use http for libffi downloading. 2017-09-19 05:01:02 +00:00
fiddle.c use NUM2SIZET instead of NUM2INT 2014-02-25 14:18:13 +00:00
fiddle.gemspec Bump fiddle-1.0.0 for released version. 2017-12-06 08:35:13 +00:00
fiddle.h * ext/dl/*: remove DL as it is replaced by Fiddle. 2014-10-31 21:13:09 +00:00
function.c [ruby/fiddle] Fiddle::Function must maintain a reference to the closure 2019-10-24 19:34:15 +09:00
function.h ext: protoize no-arguments functions 2014-10-04 23:29:24 +00:00
handle.c * ext/fiddle/handle.c: check tainted string arguments. 2015-12-16 12:08:49 +00:00
pointer.c add casts (cosmetic; just be explicit) 2018-02-16 08:49:09 +00:00