1
0
mirror of https://git.zap.org.au/git/trader.git synced 2025-02-02 15:08:13 -05:00

Redefine the cursor type as an enum instead of as macros

This commit is contained in:
John Zaitseff 2011-07-02 12:47:51 +10:00
parent e8590e68eb
commit d5951adb4f

@ -72,10 +72,12 @@
************************************************************************/ ************************************************************************/
// Visibility of the cursor in Curses // Visibility of the cursor in Curses
#define CURS_INVISIBLE (0) typedef enum curs_type {
#define CURS_NORMAL (1) CURS_INVISIBLE = 0,
#define CURS_VISIBLE (1) CURS_NORMAL = 1,
#define CURS_VERYVISIBLE (2) CURS_VISIBLE = 1,
CURS_VERYVISIBLE = 2
} curs_type_t;
// Compiler __attributes__ for less-capable compilers // Compiler __attributes__ for less-capable compilers