aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roff.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2008-12-04 11:25:29 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2008-12-04 11:25:29 +0000
commitff889942f7c344c157152d8ed3c19809b62ff504 (patch)
treee4212cc4f2e9948193aff908bf5e38d4c8c7c76c /roff.c
parent42bf2c72d14bba2a852d97de53916afef4f57269 (diff)
downloadmandoc-ff889942f7c344c157152d8ed3c19809b62ff504.tar.gz
mandoc-ff889942f7c344c157152d8ed3c19809b62ff504.tar.zst
mandoc-ff889942f7c344c157152d8ed3c19809b62ff504.zip
More html-css.
Diffstat (limited to 'roff.c')
-rw-r--r--roff.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/roff.c b/roff.c
index fb6c37a4..80089387 100644
--- a/roff.c
+++ b/roff.c
@@ -1,4 +1,4 @@
-/* $Id: roff.c,v 1.35 2008/12/03 19:21:58 kristaps Exp $ */
+/* $Id: roff.c,v 1.36 2008/12/04 11:25:29 kristaps Exp $ */
/*
* Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -40,6 +40,7 @@
/* TODO: (warn) NAME section has particular order. */
/* TODO: unify empty-content tags a la <br />. */
/* TODO: macros with a set number of arguments? */
+/* TODO: validate Dt macro arguments. */
#define ROFF_MAXARG 32
@@ -965,7 +966,7 @@ roff_Dd(ROFFCALL_ARGS)
argv++;
- if (0 == strcmp(*argv, "$Mdocdate: December 3 2008 $")) {
+ if (0 == strcmp(*argv, "$Mdocdate: December 4 2008 $")) {
t = time(NULL);
if (NULL == localtime_r(&t, &tree->tm))
err(1, "localtime_r");
@@ -1210,7 +1211,9 @@ roff_Os(ROFFCALL_ARGS)
assert(NULL == tree->last);
- return((*tree->cb.roffhead)(tree->arg));
+ return((*tree->cb.roffhead)(tree->arg, &tree->tm,
+ tree->os, tree->title, tree->section,
+ tree->volume));
}