From d5951adb4fdfe841509c0fe1eeee4337c0f3e64a Mon Sep 17 00:00:00 2001 From: John Zaitseff Date: Sat, 2 Jul 2011 12:47:51 +1000 Subject: [PATCH] Redefine the cursor type as an enum instead of as macros --- src/system.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/system.h b/src/system.h index d8ee6c8..f10a322 100644 --- a/src/system.h +++ b/src/system.h @@ -72,10 +72,12 @@ ************************************************************************/ // Visibility of the cursor in Curses -#define CURS_INVISIBLE (0) -#define CURS_NORMAL (1) -#define CURS_VISIBLE (1) -#define CURS_VERYVISIBLE (2) +typedef enum curs_type { + CURS_INVISIBLE = 0, + CURS_NORMAL = 1, + CURS_VISIBLE = 1, + CURS_VERYVISIBLE = 2 +} curs_type_t; // Compiler __attributes__ for less-capable compilers