Move colorize_xxx macroses to colors.h, the reason is to have one file for coloring stuff and have less files as possible in the source tree.
Signed-off-by: Vadim Kochan <[email protected]> --- colorize.h | 8 -------- colors.h | 4 ++++ tprintf.h | 1 - 3 files changed, 4 insertions(+), 9 deletions(-) delete mode 100644 colorize.h 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 */ diff --git a/colors.h b/colors.h index ee4cd12..0236d35 100644 --- a/colors.h +++ b/colors.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 */ diff --git a/tprintf.h b/tprintf.h index b2ca69e..488360a 100644 --- a/tprintf.h +++ b/tprintf.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); -- 2.9.2 -- You received this message because you are subscribed to the Google Groups "netsniff-ng" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
