Apply coding style

This commit is contained in:
Michael Vetter
2020-07-07 14:18:57 +02:00
parent 95015cec56
commit a2726b6a7d
213 changed files with 19064 additions and 17062 deletions

View File

@@ -47,16 +47,18 @@ typedef enum {
COLOR_PROFILE_BLUE_BLINDNESS,
} color_profile;
struct color_def {
uint16_t h; uint8_t s, l;
const char *name;
struct color_def
{
uint16_t h;
uint8_t s, l;
const char* name;
};
extern const struct color_def color_names[];
/* hash string to color pair */
int color_pair_cache_hash_str(const char *str, color_profile profile);
int color_pair_cache_hash_str(const char* str, color_profile profile);
/* parse fg_bg string to color pair */
int color_pair_cache_get(const char *pair_name);
int color_pair_cache_get(const char* pair_name);
/* clear cache */
void color_pair_cache_reset(void);