=================================================================== RCS file: /cvs/mandoc/Attic/strings.c,v retrieving revision 1.20 retrieving revision 1.21 diff -u -p -r1.20 -r1.21 --- mandoc/Attic/strings.c 2009/02/26 16:08:11 1.20 +++ mandoc/Attic/strings.c 2009/02/27 08:20:15 1.21 @@ -1,4 +1,4 @@ -/* $Id: strings.c,v 1.20 2009/02/26 16:08:11 kristaps Exp $ */ +/* $Id: strings.c,v 1.21 2009/02/27 08:20:15 kristaps Exp $ */ /* * Copyright (c) 2008 Kristaps Dzonsons * @@ -61,6 +61,18 @@ mdoc_isescape(const char *p) /* FALLTHROUGH */ case ('e'): return(2); + case ('*'): + if (0 == *++p || ! isgraph((int)*p)) + return(0); + switch (*p) { + case ('('): + if (0 == *++p || ! isgraph((int)*p)) + return(0); + return(4); + default: + break; + } + return(3); case ('('): if (0 == *++p || ! isgraph((int)*p)) return(0); @@ -178,9 +190,9 @@ mdoc_atotime(const char *p) (void)memset(&tm, 0, sizeof(struct tm)); - if (xstrcmp(p, "$Mdocdate: February 26 2009 $")) + if (xstrcmp(p, "$Mdocdate: February 27 2009 $")) return(time(NULL)); - if ((pp = strptime(p, "$Mdocdate: February 26 2009 $", &tm)) && 0 == *pp) + if ((pp = strptime(p, "$Mdocdate: February 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)