X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/236dae9fb3183b9c1d8bc6f77614797d65800987..b0cafeab98f59c29d9408948ff1bcba72c7ac341:/strings.c?ds=sidebyside diff --git a/strings.c b/strings.c index 35fe643f..b67c44b6 100644 --- a/strings.c +++ b/strings.c @@ -1,4 +1,4 @@ -/* $Id: strings.c,v 1.26 2009/03/06 14:13:47 kristaps Exp $ */ +/* $Id: strings.c,v 1.28 2009/03/13 07:46:10 kristaps Exp $ */ /* * Copyright (c) 2008 Kristaps Dzonsons * @@ -16,14 +16,13 @@ * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR * PERFORMANCE OF THIS SOFTWARE. */ +#include + #include #include #include #include #include -#ifndef __OpenBSD__ -#include -#endif #include "private.h" @@ -84,6 +83,8 @@ mdoc_isescape(const char *p) /* FALLTHROUGH */ case ('`'): /* FALLTHROUGH */ + case ('q'): + /* FALLTHROUGH */ case ('-'): /* FALLTHROUGH */ case (' '): @@ -203,9 +204,9 @@ mdoc_atotime(const char *p) (void)memset(&tm, 0, sizeof(struct tm)); - if (xstrcmp(p, "$Mdocdate: March 6 2009 $")) + if (xstrcmp(p, "$Mdocdate: March 13 2009 $")) return(time(NULL)); - if ((pp = strptime(p, "$Mdocdate: March 6 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)