Skip to content

Supporting multiple versions of C headers #30

@georgefst

Description

@georgefst

I knew the day would come eventually, but 1369957 is the first time we've had to worry about this. Obviously, if we had to keep repeating the process used there, we'd quickly get an unmaintainable mess. But it's also total boilerplate, so we should be able to do better.

Could c2hs be patched to allow CPP within enum define blocks (and others?). Currently it causes a "lexical error". Alternatively, maybe it could do something smarter like just not generating the constructor if a constant isn't found. But bear in mind, we would sometimes still want to get warnings.

Otherwise, maybe we should just auto-generate Codes.chs in it's entirety (and drop c2hs?)?

We need to consider what our support policy is. Bear in mind it's mostly just me, and I don't dedicate a lot of time to maintaining this library.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions