summaryrefslogtreecommitdiff
path: root/usr.bin/mandoc/man.h
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/man.h
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/man.h')
-rw-r--r--usr.bin/mandoc/man.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/mandoc/man.h b/usr.bin/mandoc/man.h
index 1c191e39ceb..b56a2863e68 100644
--- a/usr.bin/mandoc/man.h
+++ b/usr.bin/mandoc/man.h
@@ -1,6 +1,6 @@
-/* $Id: man.h,v 1.23 2010/06/06 18:08:41 schwarze Exp $ */
+/* $Id: man.h,v 1.24 2010/06/27 21:54:42 schwarze Exp $ */
/*
- * Copyright (c) 2009 Kristaps Dzonsons <kristaps@kth.se>
+ * Copyright (c) 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
@@ -106,7 +106,7 @@ __BEGIN_DECLS
struct man;
void man_free(struct man *);
-struct man *man_alloc(void *, int, mandocmsg);
+struct man *man_alloc(struct regset *, void *, int, mandocmsg);
void man_reset(struct man *);
int man_parseln(struct man *, int, char *, int);
int man_endparse(struct man *);