Apply coding style

Regards https://github.com/profanity-im/profanity/issues/1396
This commit is contained in:
Michael Vetter
2020-07-07 09:43:28 +02:00
parent 66f9a6b721
commit 9b55f2dec0
214 changed files with 19572 additions and 17582 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);