summaryrefslogtreecommitdiffstats
path: root/mdoc_strings.c
diff options
context:
space:
mode:
Diffstat (limited to 'mdoc_strings.c')
-rw-r--r--mdoc_strings.c16
1 files changed, 11 insertions, 5 deletions
diff --git a/mdoc_strings.c b/mdoc_strings.c
index 0b1847fd..b895cbe9 100644
--- a/mdoc_strings.c
+++ b/mdoc_strings.c
@@ -70,7 +70,7 @@ mdoc_iscdelim(char p)
{
switch (p) {
- case('|'): /* FIXME! */
+ case('|'):
/* FALLTHROUGH */
case('('):
/* FALLTHROUGH */
@@ -104,11 +104,17 @@ int
mdoc_isdelim(const char *p)
{
- if (0 == *p)
+ if ('\0' == p[0])
return(0);
- if (0 != *(p + 1))
- return(0);
- return(mdoc_iscdelim(*p));
+ if ('\0' == p[1])
+ return(mdoc_iscdelim(p[0]));
+
+ /*
+ * XXX; account for groff bubu where the \*(Ba reserved string
+ * is treated in exactly the same way as the vertical bar. This
+ * is the only function that checks for this.
+ */
+ return(0 == strcmp(p, "\\*(Ba"));
}