diff options
author | June McEnroe <june@causal.agency> | 2018-04-09 01:00:54 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2018-04-09 01:00:54 -0400 |
commit | b2ad77d0be34b7cbfd5dd9dcc55c3c93811edbc6 (patch) | |
tree | 348179099ee109c1bedc0e4f7b40eb06e5306dfa /client.c | |
parent | Link against ncurses (diff) | |
download | torus-b2ad77d0be34b7cbfd5dd9dcc55c3c93811edbc6.tar.gz torus-b2ad77d0be34b7cbfd5dd9dcc55c3c93811edbc6.zip |
Replace #define with enum or const where possible
Diffstat (limited to '')
-rw-r--r-- | client.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/client.c b/client.c index 8b4732e..bddf20f 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) |