summaryrefslogtreecommitdiff
path: root/usr.bin/mandoc/tree.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/tree.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/tree.c')
-rw-r--r--usr.bin/mandoc/tree.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/mandoc/tree.c b/usr.bin/mandoc/tree.c
index 9f4df836a0c..fb1297c5fd3 100644
--- a/usr.bin/mandoc/tree.c
+++ b/usr.bin/mandoc/tree.c
@@ -1,6 +1,6 @@
-/* $Id: tree.c,v 1.7 2010/05/23 22:45:01 schwarze Exp $ */
+/* $Id: tree.c,v 1.8 2010/06/27 21:54:42 schwarze Exp $ */
/*
- * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
+ * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@bsd.lv>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -20,6 +20,7 @@
#include <time.h>
#include "mandoc.h"
+#include "regs.h"
#include "mdoc.h"
#include "man.h"
#include "main.h"