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_strncmp instead of strncmp
[apps/madmutt.git]
/
makedoc.c
diff --git
a/makedoc.c
b/makedoc.c
index
e2cfc67
..
004d68b
100644
(file)
--- a/
makedoc.c
+++ b/
makedoc.c
@@
-981,11
+981,11
@@
static int print_it (int special, char *str, int docstat)
add_s ("\\(rq");
else if (*str == '\\')
add_s ("\\\\");
add_s ("\\(rq");
else if (*str == '\\')
add_s ("\\\\");
- else if (!strncmp (str, "``", 2)) {
+ else if (!
m_
strncmp (str, "``", 2)) {
add_s ("\\(lq");
str++;
}
add_s ("\\(lq");
str++;
}
- else if (!strncmp (str, "''", 2)) {
+ else if (!
m_
strncmp (str, "''", 2)) {
add_s ("\\(rq");
str++;
}
add_s ("\\(rq");
str++;
}
@@
-1177,49
+1177,49
@@
static int handle_docline (char *l, int docstat)
l = skip_ws (l);
l = skip_ws (l);
- if (!strncmp (l, ".pp", 3))
+ if (!
m_
strncmp (l, ".pp", 3))
return print_it (SP_NEWPAR, NULL, docstat);
return print_it (SP_NEWPAR, NULL, docstat);
- else if (!strncmp (l, ".ts", 3))
+ else if (!
m_
strncmp (l, ".ts", 3))
return print_it (SP_START_TAB, NULL, docstat);
return print_it (SP_START_TAB, NULL, docstat);
- else if (!strncmp (l, ".te", 3))
+ else if (!
m_
strncmp (l, ".te", 3))
return print_it (SP_END_TAB, NULL, docstat);
return print_it (SP_END_TAB, NULL, docstat);
- else if (!strncmp (l, ".dl", 3))
+ else if (!
m_
strncmp (l, ".dl", 3))
return print_it (SP_START_DL, NULL, docstat);
return print_it (SP_START_DL, NULL, docstat);
- else if (!strncmp (l, ".de", 3))
+ else if (!
m_
strncmp (l, ".de", 3))
return print_it (SP_END_DL, NULL, docstat);
return print_it (SP_END_DL, NULL, docstat);
- else if (!strncmp (l, ". ", 2))
+ else if (!
m_
strncmp (l, ". ", 2))
*l = ' ';
for (s = l, d = buff; *s; s++) {
*l = ' ';
for (s = l, d = buff; *s; s++) {
- if (!strncmp (s, "\\(as", 4)) {
+ if (!
m_
strncmp (s, "\\(as", 4)) {
*d++ = '*';
s += 3;
}
*d++ = '*';
s += 3;
}
- else if (!strncmp (s, "\\(rs", 4)) {
+ else if (!
m_
strncmp (s, "\\(rs", 4)) {
*d++ = '\\';
s += 3;
}
*d++ = '\\';
s += 3;
}
- else if (!strncmp (s, "\\fI", 3)) {
+ else if (!
m_
strncmp (s, "\\fI", 3)) {
docstat = commit_buff (buff, &d, docstat);
docstat = print_it (SP_START_EM, NULL, docstat);
s += 2;
}
docstat = commit_buff (buff, &d, docstat);
docstat = print_it (SP_START_EM, NULL, docstat);
s += 2;
}
- else if (!strncmp (s, "\\fB", 3)) {
+ else if (!
m_
strncmp (s, "\\fB", 3)) {
docstat = commit_buff (buff, &d, docstat);
docstat = print_it (SP_START_BF, NULL, docstat);
s += 2;
}
docstat = commit_buff (buff, &d, docstat);
docstat = print_it (SP_START_BF, NULL, docstat);
s += 2;
}
- else if (!strncmp (s, "\\fT", 3)) {
+ else if (!
m_
strncmp (s, "\\fT", 3)) {
docstat = commit_buff (buff, &d, docstat);
docstat = print_it (SP_START_TT, NULL, docstat);
s += 2;
}
docstat = commit_buff (buff, &d, docstat);
docstat = print_it (SP_START_TT, NULL, docstat);
s += 2;
}
- else if (!strncmp (s, "\\fP", 3)) {
+ else if (!
m_
strncmp (s, "\\fP", 3)) {
docstat = commit_buff (buff, &d, docstat);
docstat = print_it (SP_END_FT, NULL, docstat);
s += 2;
}
docstat = commit_buff (buff, &d, docstat);
docstat = print_it (SP_END_FT, NULL, docstat);
s += 2;
}
- else if (!strncmp (s, ".dt", 3)) {
+ else if (!
m_
strncmp (s, ".dt", 3)) {
if (docstat & D_DD) {
docstat = commit_buff (buff, &d, docstat);
docstat = print_it (SP_END_DD, NULL, docstat);
if (docstat & D_DD) {
docstat = commit_buff (buff, &d, docstat);
docstat = print_it (SP_END_DD, NULL, docstat);
@@
-1228,7
+1228,7
@@
static int handle_docline (char *l, int docstat)
docstat = print_it (SP_DT, NULL, docstat);
s += 3;
}
docstat = print_it (SP_DT, NULL, docstat);
s += 3;
}
- else if (!strncmp (s, ".dd", 3)) {
+ else if (!
m_
strncmp (s, ".dd", 3)) {
docstat = commit_buff (buff, &d, docstat);
docstat = print_it (SP_DD, NULL, docstat);
s += 3;
docstat = commit_buff (buff, &d, docstat);
docstat = print_it (SP_DD, NULL, docstat);
s += 3;