aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/strings.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-03-20 19:56:25 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-03-20 19:56:25 +0000
commit9c62a1979e3ea0f278835a15164bf139d2c68fd1 (patch)
tree2b0a93cc000a651e2fc99370c9f2060ff244dd3e /strings.c
parentaaecef62db6ab2f4b6d57502b6e92562a30efb1b (diff)
downloadmandoc-9c62a1979e3ea0f278835a15164bf139d2c68fd1.tar.gz
mandoc-9c62a1979e3ea0f278835a15164bf139d2c68fd1.tar.zst
mandoc-9c62a1979e3ea0f278835a15164bf139d2c68fd1.zip
Proper .Dl literalism.
Diffstat (limited to 'strings.c')
-rw-r--r--strings.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/strings.c b/strings.c
index 3860ebaf..ef11f84d 100644
--- a/strings.c
+++ b/strings.c
@@ -1,4 +1,4 @@
-/* $Id: strings.c,v 1.29 2009/03/14 05:36:07 kristaps Exp $ */
+/* $Id: strings.c,v 1.30 2009/03/20 19:56:25 kristaps Exp $ */
/*
* Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -95,6 +95,8 @@ mdoc_isescape(const char *p)
/* FALLTHROUGH */
case ('.'):
/* FALLTHROUGH */
+ case (':'):
+ /* FALLTHROUGH */
case ('e'):
return(2);
case ('*'):
@@ -206,9 +208,9 @@ mdoc_atotime(const char *p)
(void)memset(&tm, 0, sizeof(struct tm));
- if (xstrcmp(p, "$Mdocdate: March 14 2009 $"))
+ if (xstrcmp(p, "$Mdocdate: March 20 2009 $"))
return(time(NULL));
- if ((pp = strptime(p, "$Mdocdate: March 14 2009 $", &tm)) && 0 == *pp)
+ if ((pp = strptime(p, "$Mdocdate: March 20 2009 $", &tm)) && 0 == *pp)
return(mktime(&tm));
/* XXX - this matches "June 1999", which is wrong. */
if ((pp = strptime(p, "%b %d %Y", &tm)) && 0 == *pp)