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_functions(), you'll be fresh-faced.
[apps/madmutt.git]
/
makedoc.c
diff --git
a/makedoc.c
b/makedoc.c
index
69df277
..
f68f969
100644
(file)
--- a/
makedoc.c
+++ b/
makedoc.c
@@
-38,7
+38,7
@@
static var_t *outbuf = NULL;
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 {
@@
-215,15
+215,15
@@
static void makedoc (FILE * in, FILE * out)
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, "/*++*/"))
active = 1;
active = 1;
- 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);
}
@@
-370,7
+370,7
@@
static int buff2type (const char *s)
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;
@@
-408,7
+408,7
@@
static void handle_confline (char *s)
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;
@@
-421,14
+421,14
@@
static void handle_confline (char *s)
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;
@@
-439,7
+439,7
@@
static void handle_confline (char *s)
/* <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;
}
@@
-447,7
+447,7
@@
static void handle_confline (char *s)
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);