=================================================================== RCS file: /cvs/mandoc/Attic/strings.c,v retrieving revision 1.27 retrieving revision 1.33 diff -u -p -r1.27 -r1.33 --- mandoc/Attic/strings.c 2009/03/09 13:17:49 1.27 +++ mandoc/Attic/strings.c 2009/03/27 13:44:24 1.33 @@ -1,4 +1,4 @@ -/* $Id: strings.c,v 1.27 2009/03/09 13:17:49 kristaps Exp $ */ +/* $Id: strings.c,v 1.33 2009/03/27 13:44:24 kristaps Exp $ */ /* * Copyright (c) 2008 Kristaps Dzonsons * @@ -24,7 +24,7 @@ #include #include -#include "private.h" +#include "libmdoc.h" /* * Various string-literal operations: converting scalars to and from @@ -83,14 +83,24 @@ mdoc_isescape(const char *p) /* FALLTHROUGH */ case ('`'): /* FALLTHROUGH */ + case ('q'): + /* FALLTHROUGH */ case ('-'): /* FALLTHROUGH */ + case ('%'): + /* FALLTHROUGH */ + case ('0'): + /* FALLTHROUGH */ case (' '): /* FALLTHROUGH */ + case ('|'): + /* FALLTHROUGH */ case ('&'): /* FALLTHROUGH */ case ('.'): /* FALLTHROUGH */ + case (':'): + /* FALLTHROUGH */ case ('e'): return(2); case ('*'): @@ -202,9 +212,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 27 2009 $")) return(time(NULL)); - if ((pp = strptime(p, "$Mdocdate: March 9 2009 $", &tm)) && 0 == *pp) + if ((pp = strptime(p, "$Mdocdate: March 27 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)