diff options
author | Vadim Kochan <vadim4j@gmail.com> | 2016-08-12 01:42:24 +0300 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2016-08-12 09:22:51 +0200 |
commit | 355bbe1b1e7fe1b0ab07fe2de8cb6e64418d51e0 (patch) | |
tree | 2b4b69205c164a30570af414f79df3726a44c1bc | |
parent | 4651ad352e6afabea33ed46bca9fa49fab528d09 (diff) |
colorize: Squash colorize macros into colors.h
Move colorize_xxx macroes to colors.h, the reason is to have one file
for coloring stuff and have less files in the source tree.
Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
-rw-r--r-- | colorize.h | 8 | ||||
-rw-r--r-- | colors.h | 4 | ||||
-rw-r--r-- | tprintf.h | 1 |
3 files changed, 4 insertions, 9 deletions
diff --git a/colorize.h b/colorize.h deleted file mode 100644 index 928deb2..0000000 --- a/colorize.h +++ /dev/null @@ -1,8 +0,0 @@ -#ifndef COLORIZE_H -#define COLORIZE_H - -#define colorize_start(fore) "\033[" __##fore "m" -#define colorize_start_full(fore, back) "\033[" __##fore ";" __on_##back "m" -#define colorize_end() "\033[" __reset "m" - -#endif /* COLORIZE_H */ @@ -23,4 +23,8 @@ #define __on_cyan "46" #define __on_white "47" +#define colorize_start(fore) "\033[" __##fore "m" +#define colorize_start_full(fore, back) "\033[" __##fore ";" __on_##back "m" +#define colorize_end() "\033[" __reset "m" + #endif /* COLORS_H */ @@ -3,7 +3,6 @@ #include "built_in.h" #include "colors.h" -#include "colorize.h" extern void tprintf_init(void); extern void tprintf(char *msg, ...) __check_format_printf(1, 2); |