summaryrefslogtreecommitdiff
path: root/usr.bin/mandoc/mdoc.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/mdoc.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/mdoc.h')
-rw-r--r--usr.bin/mandoc/mdoc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mandoc/mdoc.h b/usr.bin/mandoc/mdoc.h
index f495fa0c16f..b442033e82e 100644
--- a/usr.bin/mandoc/mdoc.h
+++ b/usr.bin/mandoc/mdoc.h
@@ -1,4 +1,4 @@
-/* $Id: mdoc.h,v 1.43 2011/01/30 17:41:59 schwarze Exp $ */
+/* $Id: mdoc.h,v 1.44 2011/03/07 01:35:33 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -231,7 +231,7 @@ struct mdoc_meta {
char *msec; /* `Dt' section (1, 3p, etc.) */
char *vol; /* `Dt' volume (implied) */
char *arch; /* `Dt' arch (i386, etc.) */
- time_t date; /* `Dd' normalised date */
+ char *date; /* `Dd' normalised date */
char *title; /* `Dt' title (FOO, etc.) */
char *os; /* `Os' system (OpenBSD, etc.) */
char *name; /* leading `Nm' name */