GithubHelp home page GithubHelp logo

gptrixie's People

Contributors

eikef avatar jonathanstowe avatar samcv avatar skarsnik avatar zoffixznet avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

gptrixie's Issues

Change the name to make purpose more obvious

For whatever reason, I have a hard time finding this module. When I search the docs the name still doesn't click for me until I read the "fine print."

I wish for several things:

  1. That it become a "core module" in like manner of JSON::Fast.
  2. That it be renamed to something like NativeCall::Helper or C::To::Raku or similar.
  3. That the new name be mentioned in the docs along with a short summary and a link to this repo's README.

Encountered an unknown type "(long double)"

This was encountered when attempting to run it on GraphicsMagick using gptrixie --enums --functions --structs --castxml=c99 api.h -I..

Encountered a non know FundamentalType (long double), either it missing in DG dic or you need to do something specific
  in block  at /home/cbwood/Projects/rakudobrew/versions/moar-blead/install/share/perl6/site/sources/403A5E73B433ECBC2EEF7658DFFA5BFAD92DBDC6 (GPT::DumbGenerator) line 103
Malformed UTF-8 near bytes 6c e9 6d
  in sub extract-func-definition at /home/cbwood/Projects/rakudobrew/versions/moar-blead/install/share/perl6/site/sources/403A5E73B433ECBC2EEF7658DFFA5BFAD92DBDC6 (GPT::DumbGenerator) line 143
  in sub dg-generate-functions at /home/cbwood/Projects/rakudobrew/versions/moar-blead/install/share/perl6/site/sources/403A5E73B433ECBC2EEF7658DFFA5BFAD92DBDC6 (GPT::DumbGenerator) line 155
  in sub MAIN at /home/cbwood/Projects/rakudobrew/versions/moar-blead/install/share/perl6/site/resources/E1C3516BEF69276E7298DB57A82D9E0553314ECD line 161
  in block <unit> at /home/cbwood/Projects/rakudobrew/versions/moar-blead/install/share/perl6/site/resources/E1C3516BEF69276E7298DB57A82D9E0553314ECD line 16
  in sub MAIN at /home/cbwood/Projects/rakudobrew/versions/moar-blead/install/share/perl6/site/bin/gptrixie line 3
  in block <unit> at /home/cbwood/Projects/rakudobrew/versions/moar-blead/install/share/perl6/site/bin/gptrixie line 1

This module assumes that CWD is writable and attempts to create some files

gptrixie/bin/gptrixie

Lines 212 to 222 in e17a013

my @arg = '--castxml-gccxml', "-std=$CASTXML_STD", '-o', 'plop.xml', $header, |@other;
gpt-note "Calling castxml : " ~ @arg.join(' ');
run 'castxml', @arg;
} else {
gpt-note "Calling GCCXML : $GCC_XML $header -fxml=plop.xml ", |@other;
run $GCC_XML, $header, "-fxml=plop.xml", @other;
}
%times<gccxml> = now - $t;
$t = now;
gpt-note "Parsing the XML file";
my $xml = from-xml-file('plop.xml');

File plop.xml is created in CWD with an assumption that the filesystem is writable. In case of whateverables, it is not. I don't think it should do anything like this. In the worst case it should write to $*TMPDIR, but perhaps even that is avoidable?

Better handling typedef

in DG, for now I choose to always give the name of the thing pointed by the typedef, resulting on struct getting their original name. I am not sure if giving the typedef name instead in this case is better

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.