fiddle icon indicating copy to clipboard operation
fiddle copied to clipboard

A libffi wrapper for Ruby.

Results 26 fiddle issues
Sort by recently updated
recently updated
newest added

Hi, libffi-3.4.2 recently landed in Fedora and since that time, I observe strange failures in Ruby test suite: ~~~ 1) Failure: TestAutoload#test_autoload_fork [/builddir/build/BUILD/ruby-3.1.0/test/ruby/test_autoload.rb:380]: [ruby-core:86410] [Bug #14634]. Expected # to be...

I would like to check if a symbol is defined before trying to access it. Some symbols aren't available on all platforms, so instead of raising an exception, I want...

JRuby ships an implementation of fiddle based on FFI, and cannot support the C extension contained in this gem. It may be possible for us to do what @chrisseaton did...

Hello fiddle-folks, fiddle is quite epic. kojix2 wrote the bindings (if you can call them) for libui - see here for most of the try_extern calls: https://github.com/kojix2/LibUI/blob/main/lib/libui/ffi.rb As a "downstream"...

We discussed at https://bugs.ruby-lang.org/issues/18034

`parse_ctype()` does not handle `int long len` correctly; errors with `unknown type: int` ```ruby [22] pry(#)> parse_struct_signature(["char id", "int long size"]) Fiddle::DLError: unknown type: int from /Users/dmlary/.rbenv/versions/3.0.2/lib/ruby/3.0.0/fiddle/cparser.rb:245:in `parse_ctype' [24] pry(#)>...

I have Qt installed via Homebrew on macOS 12 (x86_64), and running the following script causes a segmentation fault (`ruby 2.6.8p205 (2021-07-07 revision 67951) [x86_64-darwin21]` installed via `rbenv`, Fiddle 1.1.0...

The following script causes a segfault when exiting: ``` $workaround = false require 'fiddle' Fiddle::MemoryView.new(Fiddle::Pointer["foo"]) GC.start if $workaround ``` A backtrace from GDB: ``` Thread 1 received signal SIGSEGV, Segmentation...

Hi! I have a question about c char. https://github.com/andlabs/libui/blob/fea45b2d5b75839be0af9acc842a147c5cba9295/ui.h#L767 c function ```c void uiOpenTypeFeaturesAdd(uiOpenTypeFeatures *otf, char a, char b, char c, char d, uint32_t value); ``` ruby method ```ruby extern...

kojix2 provides the fiddle-bindings for libui here: https://github.com/kojix2/LibUI Libui is very easy to use; I ported many of my ruby-gtk3 widgets already, even though libui is quite limited compared to...

need feedback