Code Monkey home page Code Monkey logo

c2ffi-ruby's People

Contributors

rpav avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

kojix2 you54f

c2ffi-ruby's Issues

Could you please tell me about the license?

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.

Last tested Ruby runtime?

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.