diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2011-03-07 01:35:51 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2011-03-07 01:35:51 +0000 |
commit | 04cc425ad5987ba914232718ff8bbd5ef418b4d6 (patch) | |
tree | fffb227f8453437d1a80c4109593664bef06d4f4 /out.h | |
parent | 130d794d1e169870967f8cbb047c5a35891cbfb7 (diff) | |
download | mandoc-04cc425ad5987ba914232718ff8bbd5ef418b4d6.tar.gz mandoc-04cc425ad5987ba914232718ff8bbd5ef418b4d6.tar.zst mandoc-04cc425ad5987ba914232718ff8bbd5ef418b4d6.zip |
Clean up date handling,
as a first step to get rid of the frequent petty warnings in this area:
- always store dates as strings, not as seconds since the Epoch
- for input, try the three most common formats everywhere
- for unrecognized format, just pass the date though verbatim
- when there is no date at all, still use the current date
Originally triggered by a one-line patch from Tim van der Molen,
<tbvdm at xs4all dot nl>, which is included here.
Feedback and OK on manual parts from jmc@.
"please check this in" kristaps@
Diffstat (limited to 'out.h')
-rw-r--r-- | out.h | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $Id: out.h,v 1.16 2011/01/30 16:05:37 schwarze Exp $ */ +/* $Id: out.h,v 1.17 2011/03/07 01:35:51 schwarze Exp $ */ /* * Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -17,8 +17,6 @@ #ifndef OUT_H #define OUT_H -#define DATESIZ 24 - __BEGIN_DECLS struct roffcol { |