summaryrefslogtreecommitdiffstats
path: root/libmandoc.h
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-11-02 06:22:44 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-11-02 06:22:44 +0000
commitd612b79e06155082b6342af68940fa671568998d (patch)
treec823b0d3420b6f66b76bf2249667aab2ed2ca0c2 /libmandoc.h
parent768ae2f18e90273f3a363fe0374c8dc61ecff26b (diff)
downloadmandoc-d612b79e06155082b6342af68940fa671568998d.tar.gz
Added mandoc_a2time() for proper date conversion.
Fitted TH and Dd handlers to use mandoc_a2time(). Documented date syntax for -man, fixed documentation for -mdoc.
Diffstat (limited to 'libmandoc.h')
-rw-r--r--libmandoc.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libmandoc.h b/libmandoc.h
index 5f9ad688..dc91a200 100644
--- a/libmandoc.h
+++ b/libmandoc.h
@@ -24,6 +24,11 @@ void *mandoc_calloc(size_t, size_t);
char *mandoc_strdup(const char *);
void *mandoc_malloc(size_t);
void *mandoc_realloc(void *, size_t);
+time_t mandoc_a2time(int, const char *);
+#define MTIME_CANONICAL (1 << 0)
+#define MTIME_REDUCED (1 << 1)
+#define MTIME_MDOCDATE (1 << 2)
+#define MTIME_ISO_8601 (1 << 3)
__END_DECLS