From 5a7f26cfea3266f984d8ec806ed876813bb82eeb Mon Sep 17 00:00:00 2001 From: Jfreegman Date: Sun, 10 Nov 2013 01:23:07 -0500 Subject: [PATCH] replace more defines with enum --- src/toxic_windows.h | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/toxic_windows.h b/src/toxic_windows.h index 22f9554..5386b43 100644 --- a/src/toxic_windows.h +++ b/src/toxic_windows.h @@ -28,14 +28,16 @@ #define CURS_Y_OFFSET 3 /* y-axis cursor offset for chat contexts */ /* Curses foreground colours (background is black) */ -#define WHITE 0 -#define GREEN 1 -#define CYAN 2 -#define RED 3 -#define BLUE 4 -#define YELLOW 5 -#define MAGENTA 6 -#define BLACK 7 +enum { + WHITE, + GREEN, + CYAN, + RED, + BLUE, + YELLOW, + MAGENTA, + BLACK, +}; /* Fixes text color problem on some terminals. Uncomment if necessary */