Duplicate struct definition
chrisseaton opened this issue · 3 comments
chrisseaton commented
Is this code as intended?
crabstone/lib/crabstone/arch/4/x86.rb
Lines 55 to 89 in a7e3b6f
FFI is warning about it. It also doesn't make immediate sense to me.
[DEPRECATION] Struct layout is already defined for class Crabstone::X86::Instruction. Redefinition as in /Users/chrisseaton/.gem/ruby/2.5.8/gems/crabstone-4.0.2/lib/crabstone/arch/4/x86.rb:68:in `<class:Instruction>' will be disallowed in ffi-2.0.
david942j commented
Interesting.. must be a bug.
Thanks for the report!
david942j commented
The new 4.0.3 release of Crabstone contains the fix, thanks again for pointing this out!
chrisseaton commented
Thanks very much for responding so quickly and doing the release straight away. We're using this gem at Shopify for some compiler research.