X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=color.c;h=dd29b7fbb39ee3b3c50ad900cbf5f78ff8a7dbc4;hp=81adfbb584a159c427df50428856572fe419a3a2;hb=0c12d960399d14b4143b2bb91a96bdaca64e4c56;hpb=7f7a0be369840b290248e5b0302beb447fa1b3cd diff --git a/color.c b/color.c index 81adfbb..dd29b7f 100644 --- a/color.c +++ b/color.c @@ -12,12 +12,12 @@ #endif #include +#include #include #include +#include #include "mutt.h" -#include "buffer.h" -#include "ascii.h" #include "mutt_curses.h" #include "mapping.h" @@ -132,23 +132,23 @@ static void mutt_free_color_line (COLOR_LINE ** l, int free_colors) void ci_start_color (void) { - memset (ColorDefs, A_NORMAL, sizeof (int) * MT_COLOR_MAX); - ColorQuote = p_new(int, COLOR_QUOTE_INIT); - memset (ColorQuote, A_NORMAL, sizeof (int) * COLOR_QUOTE_INIT); - ColorQuoteSize = COLOR_QUOTE_INIT; - ColorQuoteUsed = 0; - - /* set some defaults */ - ColorDefs[MT_COLOR_STATUS] = A_REVERSE; - ColorDefs[MT_COLOR_INDICATOR] = A_REVERSE; - ColorDefs[MT_COLOR_SEARCH] = A_REVERSE; - ColorDefs[MT_COLOR_MARKERS] = A_REVERSE; - /* special meaning: toggle the relevant attribute */ - ColorDefs[MT_COLOR_BOLD] = 0; - ColorDefs[MT_COLOR_UNDERLINE] = 0; + memset(ColorDefs, A_NORMAL, sizeof(int) * MT_COLOR_MAX); + ColorQuote = p_new(int, COLOR_QUOTE_INIT); + memset(ColorQuote, A_NORMAL, sizeof(int) * COLOR_QUOTE_INIT); + ColorQuoteSize = COLOR_QUOTE_INIT; + ColorQuoteUsed = 0; + + /* set some defaults */ + ColorDefs[MT_COLOR_STATUS] = A_REVERSE; + ColorDefs[MT_COLOR_INDICATOR] = A_REVERSE; + ColorDefs[MT_COLOR_SEARCH] = A_REVERSE; + ColorDefs[MT_COLOR_MARKERS] = A_REVERSE; + /* special meaning: toggle the relevant attribute */ + ColorDefs[MT_COLOR_BOLD] = 0; + ColorDefs[MT_COLOR_UNDERLINE] = 0; #ifdef HAVE_COLOR - start_color (); + start_color (); #endif } @@ -402,7 +402,7 @@ _mutt_parse_uncolor (BUFFER * buf, BUFFER * s, unsigned long data, do { mutt_extract_token (buf, s, 0); - if (!str_cmp ("*", buf->data)) { + if (!m_strcmp("*", buf->data)) { for (tmp = ColorIndexList; tmp;) { if (!do_cache) do_cache = 1; @@ -415,7 +415,7 @@ _mutt_parse_uncolor (BUFFER * buf, BUFFER * s, unsigned long data, else { for (last = NULL, tmp = ColorIndexList; tmp; last = tmp, tmp = tmp->next) { - if (!str_cmp (buf->data, tmp->pattern)) { + if (!m_strcmp(buf->data, tmp->pattern)) { if (!do_cache) do_cache = 1; debug_print (1, ("Freeing pattern \"%s\" from ColorIndexList\n", tmp->pattern)); @@ -457,7 +457,7 @@ add_pattern (COLOR_LINE ** top, const char *s, int sensitive, while (tmp) { if (sensitive) { - if (str_cmp (s, tmp->pattern) == 0) + if (m_strcmp(s, tmp->pattern) == 0) break; } else {