Skip to content

ImportC doesn't export ncurses' attributes (C macros) #20194

@dlangBugzillaToGithub

Description

@dlangBugzillaToGithub

Tomas Ortin Fernandez reported this on 2022-11-27T06:23:14Z

Transferred from https://issues.dlang.org/show_bug.cgi?id=23513

CC List

Description

When importing ncurses from D, ImportC doesn't seem to be exporting as enums (or at all) ncurses' macro definitions such as A_BOLD, as I have not been able to compile it and get errors like this:

Error: undefined identifier `A_BOLD`

Steps to reproduce:
1- Import ncurses into a D source file with "import ncurses".
2- Initialize ncurses with "initscr()" (that works without any issue)
3- Use any function with a ncurses attribute, for example "addch('a' | A_BOLD)"
4- Attempt to compile it.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions