X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=makedoc.c;h=004d68b77a10c8c84c475b31012805d5202bbccb;hb=81efbf8081bad2eed7ad07209b301ca35fe183e8;hp=e2cfc67cfd759436d76da7a14f55e85e5031d0cd;hpb=c8e3d1cce2a8af0b4725e1a751f8795bf04487da;p=apps%2Fmadmutt.git diff --git a/makedoc.c b/makedoc.c index e2cfc67..004d68b 100644 --- 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 ("\\\\"); - else if (!strncmp (str, "``", 2)) { + else if (!m_strncmp (str, "``", 2)) { add_s ("\\(lq"); str++; } - else if (!strncmp (str, "''", 2)) { + else if (!m_strncmp (str, "''", 2)) { add_s ("\\(rq"); str++; } @@ -1177,49 +1177,49 @@ static int handle_docline (char *l, int docstat) l = skip_ws (l); - if (!strncmp (l, ".pp", 3)) + if (!m_strncmp (l, ".pp", 3)) 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); - else if (!strncmp (l, ".te", 3)) + else if (!m_strncmp (l, ".te", 3)) 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); - else if (!strncmp (l, ".de", 3)) + else if (!m_strncmp (l, ".de", 3)) 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++) { - if (!strncmp (s, "\\(as", 4)) { + if (!m_strncmp (s, "\\(as", 4)) { *d++ = '*'; s += 3; } - else if (!strncmp (s, "\\(rs", 4)) { + else if (!m_strncmp (s, "\\(rs", 4)) { *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; } - 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; } - 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; } - 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; } - 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); @@ -1228,7 +1228,7 @@ static int handle_docline (char *l, int docstat) 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;