[Issue 23513] New: ImportC doesn't export ncurses' attributes (C macros)

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Nov 27 06:23:14 UTC 2022


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

          Issue ID: 23513
           Summary: ImportC doesn't export ncurses' attributes (C macros)
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Keywords: ImportC
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: tomasortin at mailbox.org

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.

--


More information about the Digitalmars-d-bugs mailing list