summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-02-11 17:43:36 -0500
committerJune McEnroe <june@causal.agency>2020-02-11 17:43:36 -0500
commit277186329921ba34630b7a2492e1792133a02c67 (patch)
treebf4942e5bb472715c57dbbd6d7bb8639da1f2bb1
parentMove hash to top of chat.h (diff)
downloadcatgirl-277186329921ba34630b7a2492e1792133a02c67.tar.gz
catgirl-277186329921ba34630b7a2492e1792133a02c67.zip
Define ColorCap instead of hardcoding 100
-rw-r--r--chat.h1
-rw-r--r--ui.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/chat.h b/chat.h
index 1e28bad..bd1ff4e 100644
--- a/chat.h
+++ b/chat.h
@@ -34,6 +34,7 @@ enum Color {
 	White, Black, Blue, Green, Red, Brown, Magenta, Orange,
 	Yellow, LightGreen, Cyan, LightCyan, LightBlue, Pink, Gray, LightGray,
 	Default = 99,
+	ColorCap,
 };
 
 enum { None, Debug, Network, IDCap = 256 };
diff --git a/ui.c b/ui.c
index 34b6f7d..83373d9 100644
--- a/ui.c
+++ b/ui.c
@@ -314,7 +314,7 @@ struct Style {
 };
 static const struct Style Reset = { A_NORMAL, Default, Default };
 
-static const short Colors[100] = {
+static const short Colors[ColorCap] = {
 	[Default]    = -1,
 	[White]      = 8 + COLOR_WHITE,
 	[Black]      = 0 + COLOR_BLACK,
2019-09-08Set title User-AgentJune McEnroe 2019-09-07Add -x flag to titleJune McEnroe 2019-09-07Ignore SIGPIPE in relayJune McEnroe 2019-09-07Add A Memory Called EmpireJune McEnroe 2019-09-05Handle lack of Content-TypeJune McEnroe 2019-09-05Use CURLINFO_CONTENT_TYPEJune McEnroe 2019-09-05Decode entities in titlesJune McEnroe 2019-09-05Print title as soon as it's availableJune McEnroe 2019-09-05Use CURL_PREFIX to set flagsJune McEnroe 2019-09-05Add titleJune McEnroe 2019-09-04Add Avorter n'est pas tuerJune McEnroe 2019-08-29Unset executable on shell scriptsJune McEnroe 2019-08-29Add long-missing setopt to bin.7June McEnroe 2019-08-29Add editJune McEnroe