Git Product home page Git Product logo

Comments (9)

inducer avatar inducer commented on August 16, 2024
void* foo(int a, int b) attribute((nonnull(1));

looks like it has unbalanced parens.

Unrelatedly, please use triple-backquotes to quote your code on Github, so it doesn't come out a mess like it does now.

from pycparserext.

vijunag avatar vijunag commented on August 16, 2024

Perhaps a balanced parenthesis still has a problem.

from pycparserext.

vijunag avatar vijunag commented on August 16, 2024

I finally managed to write a production to reduce the expressions of above form.
Below is the patch that reduces statements
declarator: pointer direct_declarator attributes_opt
| pointer attributes_opt direct_declarator

The generators are crashing while emitting statements of the above form. Can you please help me fix this ?
http://pastebin.com/WKz9d4PG

from pycparserext.

inducer avatar inducer commented on August 16, 2024

Thanks for the patch! I've merged what I believe to be a fixed version.

from pycparserext.

vijunag avatar vijunag commented on August 16, 2024

Please note that c generator isn't working for funcs with attributes.

On Mar 18, 2016 6:54 AM, "Andreas Klöckner" [email protected]
wrote:

Thanks for the patch! I've merged what I believe to be a fixed version.


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub

from pycparserext.

vijunag avatar vijunag commented on August 16, 2024

Can you provide commit access as I have added couple of Gnu C extensions ?

On Friday, March 18, 2016, Andreas Klöckner [email protected]
wrote:

Thanks for the patch! I've merged what I believe to be a fixed version.


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#14 (comment)

from pycparserext.

inducer avatar inducer commented on August 16, 2024

Please note that c generator isn't working for funcs with attributes.

Could you provide a test?

Can you provide commit access as I have added couple of Gnu C extensions ?

Just fork the repo and send a pull request.

from pycparserext.

vijunag avatar vijunag commented on August 16, 2024

I have already added the tests in the test file.

On Friday, March 18, 2016, Andreas Klöckner [email protected]
wrote:

Please note that c generator isn't working for funcs with attributes.

Could you provide a test?

Can you provide commit access as I have added couple of Gnu C extensions ?

Just fork the repo and send a pull request.


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#14 (comment)

from pycparserext.

inducer avatar inducer commented on August 16, 2024

All those pass.

from pycparserext.

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.