From 99e3c574a02fdb779e97186119891fbe46390d72 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Mon, 9 Apr 2018 01:00:54 -0400 Subject: Replace #define with enum or const where possible --- client.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'client.c') diff --git a/client.c b/client.c index 6ad60d7..ef51ae0 100644 --- a/client.c +++ b/client.c @@ -29,8 +29,10 @@ #include "torus.h" -#define ESC (0x1B) -#define DEL (0x7F) +enum { + ESC = 0x1B, + DEL = 0x7F, +}; #define CH_COLOR(ch) (ch & A_BOLD ? COLOR_BRIGHT | ch >> 8 & 0xFF : ch >> 8 & 0xFF) -- cgit 1.4.1