rpav / c2ffi-ruby Goto Github PK
View Code? Open in Web Editor NEWImport C2FFI JSON to ruby/ffi
Import C2FFI JSON to ruby/ffi
Hello @rpav
c2ffi is amazing.
I am surprised that c2ffi is not well known in the Ruby community.
I want to improve c2ffi-ruby and upload it as a package on the RubyGem server.
But I'm not sure about the license. May I freely improve it and redistribute it?
If not, I will make a Ruby tool to output FFI bindings from json files generated by c2ffi from scratch without referring to c2ffi-ruby.
Keep up your great work!
Thank you.
I'm trying to run this using MRI 2.4.1 (and 2.5.0). Given the example
dir, I tried running it. Here's my output:
OSX-Guest:simple cremes$ ../../../c2ffi/build/bin/c2ffi -M macros.h -o example.spec example.h
c2ffi warning: Unhandled environment: '' for triple ''
OSX-Guest:simple cremes$ ../../../c2ffi/build/bin/c2ffi -o macros.spec macros.h
c2ffi warning: Unhandled environment: '' for triple ''
macros.h:1:26: error: use of undeclared identifier 'FOO'
const long __c2ffi_FOO = FOO;
^
Skipping invalid Decl:
VarDecl 0x7fb39a019738 <macros.h:1:1, col:12> col:12 invalid __c2ffi_FOO 'const long'
macros.h:2:28: error: use of undeclared identifier 'QUUX'
const char* __c2ffi_QUUX = QUUX;
^
Skipping invalid Decl:
VarDecl 0x7fb39a03dc18 <macros.h:2:1, col:13> col:13 invalid __c2ffi_QUUX 'const char *'
This is on OSX 10.12.6 with LLVM 5.0.0 installed (via brew) using both MRI 2.4.1 and 2.5.0.
What's the last version you tested with? Project is about 5 years old so I'm thinking it was probably MRI 1.9.3. Any chance for an update to a modern ruby release?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.