aboutsummaryrefslogtreecommitdiffstats
path: root/src/colors.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-03 14:24:28 +0200
committerMax Kellermann <max@duempel.org>2008-10-03 14:24:28 +0200
commit7a12f9e8754a10634fa43732712dc60b87fa2c47 (patch)
treeeee8b02c060839674ec6346697dde9d020a5e75e /src/colors.h
parent43dfcc89822e46657db0d2bd52721e4ce852a357 (diff)
downloadmpd-7a12f9e8754a10634fa43732712dc60b87fa2c47.tar.gz
mpd-7a12f9e8754a10634fa43732712dc60b87fa2c47.tar.xz
mpd-7a12f9e8754a10634fa43732712dc60b87fa2c47.zip
colors: color id is the index of the "colors" array
The color ids are sequential, and we can save some bytes if we use it for the array index.
Diffstat (limited to 'src/colors.h')
-rw-r--r--src/colors.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/colors.h b/src/colors.h
index df0335561..b612a33ce 100644
--- a/src/colors.h
+++ b/src/colors.h
@@ -15,6 +15,7 @@ enum color {
COLOR_STATUS_BOLD,
COLOR_STATUS_TIME,
COLOR_STATUS_ALERT,
+ COLOR_END
};
short colors_str2color(const char *str);