projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use m_strdup and m_strlen that are inlined for efficiency
[apps/madmutt.git]
/
color.c
diff --git
a/color.c
b/color.c
index
1c60c77
..
81adfbb
100644
(file)
--- a/
color.c
+++ b/
color.c
@@
-12,6
+12,8
@@
#endif
#include <lib-lib/mem.h>
#endif
#include <lib-lib/mem.h>
+#include <lib-lib/str.h>
+#include <lib-lib/macros.h>
#include "mutt.h"
#include "buffer.h"
#include "mutt.h"
#include "buffer.h"
@@
-19,8
+21,6
@@
#include "mutt_curses.h"
#include "mapping.h"
#include "mutt_curses.h"
#include "mapping.h"
-#include "lib/intl.h"
-#include "lib/str.h"
#include "lib/debug.h"
#include <string.h>
#include "lib/debug.h"
#include <string.h>
@@
-510,7
+510,7
@@
add_pattern (COLOR_LINE ** top, const char *s, int sensitive,
return (-1);
}
tmp->next = *top;
return (-1);
}
tmp->next = *top;
- tmp->pattern =
str_dup
(s);
+ tmp->pattern =
m_strdup
(s);
#ifdef HAVE_COLOR
if (fg != -1 && bg != -1) {
tmp->fg = fg;
#ifdef HAVE_COLOR
if (fg != -1 && bg != -1) {
tmp->fg = fg;