summaryrefslogtreecommitdiff
path: root/usr.bin/mandoc/man.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2011-03-07 01:35:34 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2011-03-07 01:35:34 +0000
commite309b62a5156d70d03157abded5836eccaa56b7a (patch)
tree44a05144b8164f480fe009d9b9b7ed168d629e47 /usr.bin/mandoc/man.h
parentc59e5e6dbdacdeef70d0b723a5087e77503d2ee0 (diff)
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 'usr.bin/mandoc/man.h')
-rw-r--r--usr.bin/mandoc/man.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/mandoc/man.h b/usr.bin/mandoc/man.h
index 4c8bd5e4fc2..0fdf892ea9b 100644
--- a/usr.bin/mandoc/man.h
+++ b/usr.bin/mandoc/man.h
@@ -1,4 +1,4 @@
-/* $Id: man.h,v 1.34 2011/01/16 02:56:47 schwarze Exp $ */
+/* $Id: man.h,v 1.35 2011/03/07 01:35:33 schwarze Exp $ */
/*
* Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -75,8 +75,7 @@ enum man_type {
*/
struct man_meta {
char *msec; /* `TH' section (1, 3p, etc.) */
- time_t date; /* `TH' normalised date */
- char *rawdate; /* raw `TH' date */
+ char *date; /* `TH' normalised date */
char *vol; /* `TH' volume */
char *title; /* `TH' title (e.g., FOO) */
char *source; /* `TH' source (e.g., GNU) */