Signed-off-by: Julien Danjou <julien@danjou.info>
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
mutt_extract_token(path, s, 0);
m_strcpy(buf, sizeof(buf), path->data);
mutt_extract_token(path, s, 0);
m_strcpy(buf, sizeof(buf), path->data);
- if (data == M_UNMAILBOXES && !strcmp(buf, "*")) {
+ if (data == M_UNMAILBOXES && !m_strcmp(buf, "*")) {
buffy_array_wipe(&Incoming);
return 0;
}
buffy_array_wipe(&Incoming);
return 0;
}
m_strreplace(&Charset, "iso-8859-1");
}
m_strreplace(&Charset, "iso-8859-1");
}
- Charset_is_utf8 = !strcmp(Charset, "utf-8");
+ Charset_is_utf8 = !m_strcmp(Charset, "utf-8");
CharsetReplacement = Charset_is_utf8 ? 0xfffd : '?';
#ifdef HAVE_BIND_TEXTDOMAIN_CODESET
CharsetReplacement = Charset_is_utf8 ? 0xfffd : '?';
#ifdef HAVE_BIND_TEXTDOMAIN_CODESET
{
char buf[SHORT_STRING];
charset_canonicalize(buf, sizeof(buf), s);
{
char buf[SHORT_STRING];
charset_canonicalize(buf, sizeof(buf), s);
- return !strcmp(buf, "utf-8");
+ return !m_strcmp(buf, "utf-8");
}
int charset_is_us_ascii(const char *s)
{
char buf[SHORT_STRING];
charset_canonicalize(buf, sizeof(buf), s);
}
int charset_is_us_ascii(const char *s)
{
char buf[SHORT_STRING];
charset_canonicalize(buf, sizeof(buf), s);
- return !strcmp(buf, "us-ascii");
+ return !m_strcmp(buf, "us-ascii");
mutt_extract_token (buf, s, 0);
/* don't add "*" to the unignore list */
mutt_extract_token (buf, s, 0);
/* don't add "*" to the unignore list */
- if (strcmp (buf->data, "*"))
+ if (m_strcmp (buf->data, "*"))
add_to_list (&UnIgnore, buf->data);
remove_from_list (&Ignore, buf->data);
add_to_list (&UnIgnore, buf->data);
remove_from_list (&Ignore, buf->data);
rx_t **rx_lookup(rx_t **l, const char *pat)
{
rx_t **rx_lookup(rx_t **l, const char *pat)
{
return NULL;
while (*l) {
return NULL;
while (*l) {
- if (!strcmp((*l)->pattern, pat))
+ if (!m_strcmp((*l)->pattern, pat))
return l;
l = &(*l)->next;
}
return l;
l = &(*l)->next;
}
* which may make the line look like fixed although it wasn't
* so keep this in mind for later processing */
fixed = buf_len == 0 || buf[buf_len - 1] != ' ' ||
* which may make the line look like fixed although it wasn't
* so keep this in mind for later processing */
fixed = buf_len == 0 || buf[buf_len - 1] != ' ' ||
- (strcmp(buf + buf_off, "-- ") == 0);
+ (m_strcmp(buf + buf_off, "-- ") == 0);
if (delsp && buf_len >= 1 && buf[buf_len-1] == ' ')
buf[--buf_len] = '\0';
if (delsp && buf_len >= 1 && buf[buf_len-1] == ' ')
buf[--buf_len] = '\0';
}
/* signature separator also flushes the previous paragraph */
}
/* signature separator also flushes the previous paragraph */
- if (strcmp(buf + buf_off, "-- ") == 0 && curline && *curline) {
+ if (m_strcmp(buf + buf_off, "-- ") == 0 && curline && *curline) {
print_flowed_line (curline, s, quotelevel);
*curline = '\0';
curline_len = 1;
print_flowed_line (curline, s, quotelevel);
*curline = '\0';
curline_len = 1;
static int var_cmp (const void *a, const void *b)
{
static int var_cmp (const void *a, const void *b)
{
- return (strcmp (((var_t *) a)->name, ((var_t *) b)->name));
+ return (m_strcmp (((var_t *) a)->name, ((var_t *) b)->name));
}
enum output_formats_t {
}
enum output_formats_t {
if (!(p = get_token (token, sizeof (token), buffer)))
continue;
if (!(p = get_token (token, sizeof (token), buffer)))
continue;
- if (!strcmp (token, "/*++*/"))
+ if (!m_strcmp (token, "/*++*/"))
- else if (!strcmp (token, "/*--*/")) {
+ else if (!m_strcmp (token, "/*--*/")) {
docstat = flush_doc (docstat);
active = 0;
}
docstat = flush_doc (docstat);
active = 0;
}
- else if (active && (!strcmp (token, "/**") || !strcmp (token, "**")))
+ else if (active && (!m_strcmp (token, "/**") || !m_strcmp (token, "**")))
docstat = handle_docline (p, docstat);
docstat = handle_docline (p, docstat);
- else if (active && !strcmp (token, "{")) {
+ else if (active && !m_strcmp (token, "{")) {
docstat = flush_doc (docstat);
handle_confline (p);
}
docstat = flush_doc (docstat);
handle_confline (p);
}
int type;
for (type = DT_NONE; types[type].machine; type++)
int type;
for (type = DT_NONE; types[type].machine; type++)
- if (!strcmp (types[type].machine, s))
+ if (!m_strcmp (types[type].machine, s))
return type;
return DT_NONE;
return type;
return DT_NONE;
if (!(s = get_token (buff, sizeof (buff), s)))
return;
if (!(s = get_token (buff, sizeof (buff), s)))
return;
- if (!strcmp (buff, "|")) {
+ if (!m_strcmp (buff, "|")) {
/* ignore subtype and comma */
if (!(s = get_token (buff, sizeof (buff), s)))
return;
/* ignore subtype and comma */
if (!(s = get_token (buff, sizeof (buff), s)))
return;
while (1) {
if (!(s = get_token (buff, sizeof (buff), s)))
return;
while (1) {
if (!(s = get_token (buff, sizeof (buff), s)))
return;
- if (!strcmp (buff, ","))
+ if (!m_strcmp (buff, ","))
break;
}
/* option name or UL &address */
if (!(s = get_token (buff, sizeof (buff), s)))
return;
break;
}
/* option name or UL &address */
if (!(s = get_token (buff, sizeof (buff), s)))
return;
- if (!strcmp (buff, "UL"))
+ if (!m_strcmp (buff, "UL"))
if (!(s = get_token (buff, sizeof (buff), s)))
return;
if (!(s = get_token (buff, sizeof (buff), s)))
return;
/* <default value> or UL <default value> */
if (!(s = get_token (buff, sizeof (buff), s)))
return;
/* <default value> or UL <default value> */
if (!(s = get_token (buff, sizeof (buff), s)))
return;
- if (!strcmp (buff, "UL")) {
+ if (!m_strcmp (buff, "UL")) {
if (!(s = get_token (buff, sizeof (buff), s)))
return;
}
if (!(s = get_token (buff, sizeof (buff), s)))
return;
}
memset(val, 0, sizeof(val));
do {
memset(val, 0, sizeof(val));
do {
- if (!strcmp (buff, "}"))
+ if (!m_strcmp (buff, "}"))
break;
m_strcat(val, sizeof(val), buff);
break;
m_strcat(val, sizeof(val), buff);
- if (!strcmp (buffer, searchbuf)) {
+ if (!m_strcmp (buffer, searchbuf)) {
if (SearchCompiled) {
/* do an implicit search-next */
if (ch == OP_SEARCH)
if (SearchCompiled) {
/* do an implicit search-next */
if (ch == OP_SEARCH)