aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/msec.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2011-12-02 01:37:14 +0000
committerIngo Schwarze <schwarze@openbsd.org>2011-12-02 01:37:14 +0000
commit92b82a1384a9e9840e25d2364a36c9fa50384e34 (patch)
tree827d1f0788bc8e1d2f9fb69aa580c83339372c74 /msec.c
parentb505ecce3956d6be1ab0554257d7ce9ead09ff89 (diff)
downloadmandoc-92b82a1384a9e9840e25d2364a36c9fa50384e34.tar.gz
mandoc-92b82a1384a9e9840e25d2364a36c9fa50384e34.tar.zst
mandoc-92b82a1384a9e9840e25d2364a36c9fa50384e34.zip
In man(7), when no explicit volume name is given, use the default
volume name for the respective manual section, just like in mdoc(7). This gives us nicer page headers for cvs(1), lynx(1), tic(1), mkhybrid(8), and many curses(3) manuals. ok kristaps@ To not break compatibility, i wrote a corresponding patch for GNU troff which Werner Lemberg accepted upstream at rev. 1.65 of: http://cvs.savannah.gnu.org/viewvc/groff/tmac/an-old.tmac?root=groff
Diffstat (limited to 'msec.c')
-rw-r--r--msec.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/msec.c b/msec.c
index f51360e5..dd7d11c6 100644
--- a/msec.c
+++ b/msec.c
@@ -1,4 +1,4 @@
-/* $Id: msec.c,v 1.9 2011/03/22 14:33:05 kristaps Exp $ */
+/* $Id: msec.c,v 1.10 2011/12/02 01:37:14 schwarze Exp $ */
/*
* Copyright (c) 2009 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -21,15 +21,14 @@
#include <stdlib.h>
#include <string.h>
-#include "mdoc.h"
#include "mandoc.h"
-#include "libmdoc.h"
+#include "libmandoc.h"
#define LINE(x, y) \
if (0 == strcmp(p, x)) return(y);
const char *
-mdoc_a2msec(const char *p)
+mandoc_a2msec(const char *p)
{
#include "msec.in"