diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-03-21 13:47:02 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-03-21 13:47:02 +0000 |
commit | 0a0adafcdad00a607e52e6644b018e6d26bcc1db (patch) | |
tree | fa1e536d8e398189daabcb222d367c5aef501163 /strings.c | |
parent | 292265c8f2bd4928a2895544f1f3017c1463d750 (diff) | |
download | mandoc-0a0adafcdad00a607e52e6644b018e6d26bcc1db.tar.gz mandoc-0a0adafcdad00a607e52e6644b018e6d26bcc1db.tar.zst mandoc-0a0adafcdad00a607e52e6644b018e6d26bcc1db.zip |
Freed more macros from zero-length restrictions.
Fixed `Fn' spacing.
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.30 2009/03/20 19:56:25 kristaps Exp $ */ +/* $Id: strings.c,v 1.31 2009/03/21 13:47:02 kristaps Exp $ */ /* * Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se> * @@ -87,6 +87,8 @@ mdoc_isescape(const char *p) /* FALLTHROUGH */ case ('-'): /* FALLTHROUGH */ + case ('%'): + /* FALLTHROUGH */ case (' '): /* FALLTHROUGH */ case ('|'): @@ -208,9 +210,9 @@ mdoc_atotime(const char *p) (void)memset(&tm, 0, sizeof(struct tm)); - if (xstrcmp(p, "$Mdocdate: March 20 2009 $")) + if (xstrcmp(p, "$Mdocdate: March 21 2009 $")) return(time(NULL)); - if ((pp = strptime(p, "$Mdocdate: March 20 2009 $", &tm)) && 0 == *pp) + if ((pp = strptime(p, "$Mdocdate: March 21 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) |