]> git.refcnt.org Git - colorize.git/blobdiff - colorize.c
Define DEBUG_FILE under DEBUG only
[colorize.git] / colorize.c
index 3e9755af4fd5667bccf26caa8622660906ecd749..cefde455c1e7c62f932067504bb6933eb6234b2e 100644 (file)
 # define COLOR_SEP_CHAR '/'
 #endif
 
-#define DEBUG_FILE "debug.txt"
+#if DEBUG
+# define DEBUG_FILE "debug.txt"
+#endif
 
 #define MAX_ATTRIBUTE_CHARS (6 * 2)
 
@@ -164,7 +166,7 @@ struct bytes_size {
     char unit;
 };
 
-enum fmts {
+enum {
     FMT_GENERIC,
     FMT_STRING,
     FMT_QUOTE,
@@ -188,7 +190,7 @@ static const char *formats[] = {
 enum { GENERIC, FOREGROUND = 0, BACKGROUND };
 
 static const struct {
-    struct color const *entries;
+    const struct color *entries;
     unsigned int count;
     const char *desc;
 } tables[] = {