[v0.98][Refactoring] Use array of colors instead of fixed structure of colors in args

This commit is contained in:
Dr-Noob
2021-08-07 10:00:00 +02:00
parent a03f296390
commit 2e08b10652
4 changed files with 48 additions and 69 deletions

View File

@@ -10,13 +10,6 @@ struct color {
int32_t B;
};
struct colors {
struct color* c1;
struct color* c2;
struct color* c3;
struct color* c4;
};
enum {
STYLE_EMPTY,
STYLE_FANCY,
@@ -48,8 +41,8 @@ bool show_raw();
bool show_debug();
bool show_version();
bool verbose_enabled();
void free_colors_struct(struct colors* cs);
struct colors* get_colors();
void free_colors_struct(struct color** cs);
struct color** get_colors();
STYLE get_style();
#endif