=================================================================== RCS file: /cvs/mandoc/Attic/strings.c,v retrieving revision 1.26 retrieving revision 1.30 diff -u -p -r1.26 -r1.30 --- mandoc/Attic/strings.c 2009/03/06 14:13:47 1.26 +++ mandoc/Attic/strings.c 2009/03/20 19:56:25 1.30 @@ -1,4 +1,4 @@ -/* $Id: strings.c,v 1.26 2009/03/06 14:13:47 kristaps Exp $ */ +/* $Id: strings.c,v 1.30 2009/03/20 19:56:25 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,14 +83,20 @@ mdoc_isescape(const char *p) /* FALLTHROUGH */ case ('`'): /* FALLTHROUGH */ + case ('q'): + /* FALLTHROUGH */ case ('-'): /* FALLTHROUGH */ case (' '): /* FALLTHROUGH */ + case ('|'): + /* FALLTHROUGH */ case ('&'): /* FALLTHROUGH */ case ('.'): /* FALLTHROUGH */ + case (':'): + /* FALLTHROUGH */ case ('e'): return(2); case ('*'): @@ -203,9 +208,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 20 2009 $")) return(time(NULL)); - if ((pp = strptime(p, "$Mdocdate: March 6 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)