* please see the file GPL in the top level source directory.
*/
-#if HAVE_CONFIG_H
-# include "config.h"
-#endif
-
-#include <lib-lib/mem.h>
-#include <lib-lib/ascii.h>
-#include <lib-lib/str.h>
-#include <lib-lib/macros.h>
-#include <lib-lib/buffer.h>
-#include <lib-lib/mapping.h>
+#include <lib-lib/lib-lib.h>
#include "curses.h"
+#include "pattern.h"
#include "mutt.h"
-#include "lib/debug.h"
-
-#include <string.h>
-#include <stdlib.h>
-#include <ctype.h>
-
/* globals */
int *ColorQuote;
int ColorQuoteUsed;
*/
regfree (&tmp->rx);
- mutt_pattern_free (&tmp->color_pattern);
+ pattern_list_wipe(&tmp->color_pattern);
p_delete(&tmp->pattern);
p_delete(l);
}
int i;
#if defined (USE_SLANG_CURSES)
- char fgc[SHORT_STRING], bgc[SHORT_STRING];
+ char fgc[STRING], bgc[STRING];
#endif
/* check to see if this color is already allocated to save space */
init_pair (i, fg, bg);
- debug_print (1, ("Color pairs used so far: %d\n", UserColors));
-
return (COLOR_PAIR (p->index));
}
return;
UserColors--;
- debug_print (1, ("Color pairs used so far: %d\n", UserColors));
if (p == ColorList) {
ColorList = ColorList->next;
if (!m_strcmp(buf->data, tmp->pattern)) {
if (!do_cache)
do_cache = 1;
- debug_print (1, ("Freeing pattern \"%s\" from ColorIndexList\n", tmp->pattern));
if (last)
last->next = tmp->next;
else