Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unsigned <macro-defined type> not handled correctly #466

Open
edsko opened this issue Mar 4, 2025 · 0 comments
Open

unsigned <macro-defined type> not handled correctly #466

edsko opened this issue Mar 4, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@edsko
Copy link
Collaborator

edsko commented Mar 4, 2025

When macro-defined types such as

#define foo int

are surrounded by qualifiers, such as

void foo(unsigned foo x);

we currently ignore those qualifiers.

If we really did want to support this, we'd have to think about how this would translate to Haskell, since unsigned is not a qualifier in Haskell; we'd need some type-level mapping from the int newtype (or type aliases) to some kind of unsigned version.

@edsko edsko added the enhancement New feature or request label Mar 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant