Skip to content

Define constants manually from preprocessed header files #49

@aploese

Description

@aploese

Why not code the constants manually by using preprocessed files like this for termios.h on Linux:
echo "#include <termios.h>" > c.c
gcc -dD -dI -E c.c > _termios-prepocessed.h
Doing this once will give you all defines,structures, function calls in _termios-prepocessed.h, so you can later check or add something even if you have no access to the said hardware?

I have no idea how the copyright is affected if the preprocessed files are stored in the source repository.

And maybe go away from enums to abstract classes that hold the defined values in final public (long|int|short|String) fields?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions