diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-03-13 07:46:10 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-03-13 07:46:10 +0000 |
commit | b0cafeab98f59c29d9408948ff1bcba72c7ac341 (patch) | |
tree | 0507b5daf0c4c0038f4524f11e72ba42eed6d5ec /strings.c | |
parent | 4a9a5bd5431e071c38e206580be6f1729dc2d2b7 (diff) | |
download | mandoc-b0cafeab98f59c29d9408948ff1bcba72c7ac341.tar.gz mandoc-b0cafeab98f59c29d9408948ff1bcba72c7ac341.tar.zst mandoc-b0cafeab98f59c29d9408948ff1bcba72c7ac341.zip |
Added canonical mdoc.7.
Added \q macro.
Diffstat (limited to 'strings.c')
-rw-r--r-- | strings.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $Id: strings.c,v 1.27 2009/03/09 13:17:49 kristaps Exp $ */ +/* $Id: strings.c,v 1.28 2009/03/13 07:46:10 kristaps Exp $ */ /* * Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se> * @@ -83,6 +83,8 @@ mdoc_isescape(const char *p) /* FALLTHROUGH */ case ('`'): /* FALLTHROUGH */ + case ('q'): + /* FALLTHROUGH */ case ('-'): /* FALLTHROUGH */ case (' '): @@ -202,9 +204,9 @@ mdoc_atotime(const char *p) (void)memset(&tm, 0, sizeof(struct tm)); - if (xstrcmp(p, "$Mdocdate: March 9 2009 $")) + if (xstrcmp(p, "$Mdocdate: March 13 2009 $")) return(time(NULL)); - if ((pp = strptime(p, "$Mdocdate: March 9 2009 $", &tm)) && 0 == *pp) + if ((pp = strptime(p, "$Mdocdate: March 13 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) |