summaryrefslogtreecommitdiffstats
path: root/mdoc_argv.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-03-17 09:16:38 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-03-17 09:16:38 +0000
commite3df96e26436bd256a2aa5a33e49f9166ff6d4b6 (patch)
tree45cda180303addde16f0252611e2e4f7c28a619d /mdoc_argv.c
parentb115f948b8e55e6c3cef4bfa81f62c190af37a59 (diff)
downloadmandoc-e3df96e26436bd256a2aa5a33e49f9166ff6d4b6.tar.gz
Move mdoc_isdelim() into mandoc.h as mandoc_isdelim(). This allows the
removal of manual delimiter checks in html.c and term.c. Finally, add the escaped period as a closing delimiter, removing a TODO to this effect.
Diffstat (limited to 'mdoc_argv.c')
-rw-r--r--mdoc_argv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mdoc_argv.c b/mdoc_argv.c
index 12c15966..89f30fd7 100644
--- a/mdoc_argv.c
+++ b/mdoc_argv.c
@@ -587,7 +587,7 @@ args_checkpunct(const char *p)
return(0);
buf[j] = '\0';
- if (DELIM_CLOSE != mdoc_isdelim(buf))
+ if (DELIM_CLOSE != mandoc_isdelim(buf))
return(0);
while (' ' == p[i])
@@ -604,7 +604,7 @@ args_checkpunct(const char *p)
return(0);
buf[j] = '\0';
- d = mdoc_isdelim(buf);
+ d = mandoc_isdelim(buf);
if (DELIM_NONE == d || DELIM_OPEN == d)
return(0);