diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-06-12 12:40:44 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-06-12 12:40:44 +0000 |
commit | 91deb3ada9798193fdc1eea30c75fde0f2a96203 (patch) | |
tree | 313fc1f2fa38bd31dabeb137b9b87bc9540f23bd /mdoc_strings.c | |
parent | 0214fa880cd249945951f08bfcf80004d5e6f43f (diff) | |
download | mandoc-91deb3ada9798193fdc1eea30c75fde0f2a96203.tar.gz mandoc-91deb3ada9798193fdc1eea30c75fde0f2a96203.tar.zst mandoc-91deb3ada9798193fdc1eea30c75fde0f2a96203.zip |
Made per-macro "now callable" COMPATIBILITY claims into a single "most macros callable".
Added COMPATIBILITY note on escaped special-character sequences.
Vertical bar now correctly delimits (like in new groff).
Diffstat (limited to 'mdoc_strings.c')
-rw-r--r-- | mdoc_strings.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/mdoc_strings.c b/mdoc_strings.c index afba4a07..a9abe0bf 100644 --- a/mdoc_strings.c +++ b/mdoc_strings.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_strings.c,v 1.3 2009/04/12 19:45:26 kristaps Exp $ */ +/* $Id: mdoc_strings.c,v 1.4 2009/06/12 12:40:44 kristaps Exp $ */ /* * Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se> * @@ -147,6 +147,8 @@ mdoc_iscdelim(char p) { switch (p) { + case('|'): + /* FALLTHROUGH */ case('.'): /* FALLTHROUGH */ case(','): @@ -214,9 +216,9 @@ mdoc_atotime(const char *p) (void)memset(&tm, 0, sizeof(struct tm)); - if (0 == strcmp(p, "$Mdocdate: April 12 2009 $")) + if (0 == strcmp(p, "$Mdocdate: June 12 2009 $")) return(time(NULL)); - if ((pp = strptime(p, "$Mdocdate: April 12 2009 $", &tm)) && 0 == *pp) + if ((pp = strptime(p, "$Mdocdate: June 12 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) |