netbsd-curses
netbsd-curses copied to clipboard
Heavy namespace violations in curses.h
curses.h is full of identifiers in the __-prefixed namespace, many of which are things that could easily clash with system headers. I saw a report of it failing to build on OSX that looked like it might have been related, and while I didn't see cause for that particular failure it prompted me to notice all these violations. I don't think any of them are essential/public API.
@rsmarples could this be addressed in netbsd upstream ?
Unlikely.
@richfelker is right that __ is reserved for system headers and in NetBSD curses.h is a system header and libcurses is a system library.
Saying that I'm always happy to make changes to make it more portable if there is a reported build failure, which there currently isn't.