diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2023-01-27 21:45:49 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2023-01-28 15:14:24 +0100 |
commit | fbeab26a3510680a5ad1753bf554b70b9a78a336 (patch) | |
tree | 9930db9909e86ae01c20ab06aba7b803018a3652 /src/gui/gui-color.c | |
parent | c07cf691adb4740759e9fd128a2f6702c912d70f (diff) | |
download | weechat-fbeab26a3510680a5ad1753bf554b70b9a78a336.zip |
core, plugins: replace calls to string_str(n)cmp by str(n)cmp (issue #1872)
Diffstat (limited to 'src/gui/gui-color.c')
-rw-r--r-- | src/gui/gui-color.c | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/src/gui/gui-color.c b/src/gui/gui-color.c index d27c4403a..4c1e8296e 100644 --- a/src/gui/gui-color.c +++ b/src/gui/gui-color.c @@ -276,111 +276,111 @@ gui_color_get_custom (const char *color_name) ptr_color_name - color_name); } - if (string_strcmp (ptr_color_name, "reset") == 0) + if (strcmp (ptr_color_name, "reset") == 0) { snprintf (color[index_color], sizeof (color[index_color]), "%c", GUI_COLOR_RESET_CHAR); } - else if (string_strcmp (ptr_color_name, "resetcolor") == 0) + else if (strcmp (ptr_color_name, "resetcolor") == 0) { snprintf (color[index_color], sizeof (color[index_color]), "%c%c", GUI_COLOR_COLOR_CHAR, GUI_COLOR_RESET_CHAR); } - else if (string_strcmp (ptr_color_name, "emphasis") == 0) + else if (strcmp (ptr_color_name, "emphasis") == 0) { snprintf (color[index_color], sizeof (color[index_color]), "%c%c", GUI_COLOR_COLOR_CHAR, GUI_COLOR_EMPHASIS_CHAR); } - else if (string_strcmp (ptr_color_name, "blink") == 0) + else if (strcmp (ptr_color_name, "blink") == 0) { snprintf (color[index_color], sizeof (color[index_color]), "%c%c", GUI_COLOR_SET_ATTR_CHAR, GUI_COLOR_ATTR_BLINK_CHAR); } - else if (string_strcmp (ptr_color_name, "-blink") == 0) + else if (strcmp (ptr_color_name, "-blink") == 0) { snprintf (color[index_color], sizeof (color[index_color]), "%c%c", GUI_COLOR_REMOVE_ATTR_CHAR, GUI_COLOR_ATTR_BLINK_CHAR); } - else if (string_strcmp (ptr_color_name, "dim") == 0) + else if (strcmp (ptr_color_name, "dim") == 0) { snprintf (color[index_color], sizeof (color[index_color]), "%c%c", GUI_COLOR_SET_ATTR_CHAR, GUI_COLOR_ATTR_DIM_CHAR); } - else if (string_strcmp (ptr_color_name, "-dim") == 0) + else if (strcmp (ptr_color_name, "-dim") == 0) { snprintf (color[index_color], sizeof (color[index_color]), "%c%c", GUI_COLOR_REMOVE_ATTR_CHAR, GUI_COLOR_ATTR_DIM_CHAR); } - else if (string_strcmp (ptr_color_name, "bold") == 0) + else if (strcmp (ptr_color_name, "bold") == 0) { snprintf (color[index_color], sizeof (color[index_color]), "%c%c", GUI_COLOR_SET_ATTR_CHAR, GUI_COLOR_ATTR_BOLD_CHAR); } - else if (string_strcmp (ptr_color_name, "-bold") == 0) + else if (strcmp (ptr_color_name, "-bold") == 0) { snprintf (color[index_color], sizeof (color[index_color]), "%c%c", GUI_COLOR_REMOVE_ATTR_CHAR, GUI_COLOR_ATTR_BOLD_CHAR); } - else if (string_strcmp (ptr_color_name, "reverse") == 0) + else if (strcmp (ptr_color_name, "reverse") == 0) { snprintf (color[index_color], sizeof (color[index_color]), "%c%c", GUI_COLOR_SET_ATTR_CHAR, GUI_COLOR_ATTR_REVERSE_CHAR); } - else if (string_strcmp (ptr_color_name, "-reverse") == 0) + else if (strcmp (ptr_color_name, "-reverse") == 0) { snprintf (color[index_color], sizeof (color[index_color]), "%c%c", GUI_COLOR_REMOVE_ATTR_CHAR, GUI_COLOR_ATTR_REVERSE_CHAR); } - else if (string_strcmp (ptr_color_name, "italic") == 0) + else if (strcmp (ptr_color_name, "italic") == 0) { snprintf (color[index_color], sizeof (color[index_color]), "%c%c", GUI_COLOR_SET_ATTR_CHAR, GUI_COLOR_ATTR_ITALIC_CHAR); } - else if (string_strcmp (ptr_color_name, "-italic") == 0) + else if (strcmp (ptr_color_name, "-italic") == 0) { snprintf (color[index_color], sizeof (color[index_color]), "%c%c", GUI_COLOR_REMOVE_ATTR_CHAR, GUI_COLOR_ATTR_ITALIC_CHAR); } - else if (string_strcmp (ptr_color_name, "underline") == 0) + else if (strcmp (ptr_color_name, "underline") == 0) { snprintf (color[index_color], sizeof (color[index_color]), "%c%c", GUI_COLOR_SET_ATTR_CHAR, GUI_COLOR_ATTR_UNDERLINE_CHAR); } - else if (string_strcmp (ptr_color_name, "-underline") == 0) + else if (strcmp (ptr_color_name, "-underline") == 0) { snprintf (color[index_color], sizeof (color[index_color]), "%c%c", GUI_COLOR_REMOVE_ATTR_CHAR, GUI_COLOR_ATTR_UNDERLINE_CHAR); } - else if (string_strcmp (ptr_color_name, "bar_fg") == 0) + else if (strcmp (ptr_color_name, "bar_fg") == 0) { snprintf (color[index_color], sizeof (color[index_color]), "%c%c%c", @@ -388,7 +388,7 @@ gui_color_get_custom (const char *color_name) GUI_COLOR_BAR_CHAR, GUI_COLOR_BAR_FG_CHAR); } - else if (string_strcmp (ptr_color_name, "bar_delim") == 0) + else if (strcmp (ptr_color_name, "bar_delim") == 0) { snprintf (color[index_color], sizeof (color[index_color]), "%c%c%c", @@ -396,7 +396,7 @@ gui_color_get_custom (const char *color_name) GUI_COLOR_BAR_CHAR, GUI_COLOR_BAR_DELIM_CHAR); } - else if (string_strcmp (ptr_color_name, "bar_bg") == 0) + else if (strcmp (ptr_color_name, "bar_bg") == 0) { snprintf (color[index_color], sizeof (color[index_color]), "%c%c%c", |