summaryrefslogtreecommitdiff
path: root/usr.bin/mandoc/term.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2010-06-27 21:54:43 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2010-06-27 21:54:43 +0000
commitdae22b2a7b046070a5972b52c5be5ab23c603ce7 (patch)
tree04d8a2c11e8943c412d5e1de74ee8881754a9d61 /usr.bin/mandoc/term.c
parentd41b978186af813a0930f71b4972e6e4750be2c5 (diff)
Full .nr nS support, unbreaking the kernel manuals.
Kristaps coded this from scratch after reading my .nr patch; it is simpler and more powerful. Registers live in struct regset in regs.h, struct man and struct mdoc contain pointers to it. The nS register is cleared when parsing .Sh. Frontends respect the MDOC_SYNPRETTY flag set in mdoc node_alloc.
Diffstat (limited to 'usr.bin/mandoc/term.c')
-rw-r--r--usr.bin/mandoc/term.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.bin/mandoc/term.c b/usr.bin/mandoc/term.c
index 90094bf658a..408d9916505 100644
--- a/usr.bin/mandoc/term.c
+++ b/usr.bin/mandoc/term.c
@@ -1,4 +1,4 @@
-/* $Id: term.c,v 1.40 2010/06/27 01:24:02 schwarze Exp $ */
+/* $Id: term.c,v 1.41 2010/06/27 21:54:42 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -27,8 +27,6 @@
#include "chars.h"
#include "out.h"
#include "term.h"
-#include "man.h"
-#include "mdoc.h"
#include "main.h"
static void spec(struct termp *, const char *, size_t);