From 154c74a463b9f4d0c87a3161a60df5ce17c366c9 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Thu, 17 Mar 2011 09:16:38 +0000 Subject: 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. --- mdoc_argv.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mdoc_argv.c') diff --git a/mdoc_argv.c b/mdoc_argv.c index dc28916c..42266dbb 100644 --- a/mdoc_argv.c +++ b/mdoc_argv.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_argv.c,v 1.65 2011/03/17 01:23:28 kristaps Exp $ */ +/* $Id: mdoc_argv.c,v 1.66 2011/03/17 09:16:38 kristaps Exp $ */ /* * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons * @@ -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); -- cgit v1.2.3-56-ge451