Giter Club home page Giter Club logo

Comments (5)

alexcrichton avatar alexcrichton commented on July 18, 2024

Looks bad! I think it can largely be fixed around here and transitive functinos.

from ctest.

gnzlbg avatar gnzlbg commented on July 18, 2024

So I have partially fixed this, but I am having a bit of trouble generating the functions that return function pointer types (I have to generate a typedef for the pointer first).

from ctest.

alexcrichton avatar alexcrichton commented on July 18, 2024

The syntax for doing so, while obscure, is possible to do without a typedef!

from ctest.

gnzlbg avatar gnzlbg commented on July 18, 2024

@alexcrichton yeah, it can be done, but it gets nastier as the function pointers being returned also return function pointers (e.g. fn() -> fn() -> fn() -> fn()). I'll try to special case the C code generated for statics to, instead of adding a function that returns a type, have it use that function pointer syntax when the return type is a function pointer.

from ctest.

gnzlbg avatar gnzlbg commented on July 18, 2024

Will be closed by https://github.com/alexcrichton/ctest/pull/39 .

from ctest.

Related Issues (20)

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.