summaryrefslogtreecommitdiffstatshomepage
path: root/man_macro.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-03-25 07:28:16 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-03-25 07:28:16 +0000
commit593dce8101ad48cec410d5dad655335d738c0213 (patch)
treead2fee232aab0e4605b1bce4bc135ebd4602f339 /man_macro.c
parentbdcaee420fe7a05a2069049d14aa31dce93be009 (diff)
downloadmandoc-593dce8101ad48cec410d5dad655335d738c0213.tar.gz
mandoc-593dce8101ad48cec410d5dad655335d738c0213.tar.zst
mandoc-593dce8101ad48cec410d5dad655335d738c0213.zip
Fixed up some documentation in man.7: only documenting man.7 macros, not related ones (de, Vb, etc.), which aren't technically man. It's an open question as to where these /should/ be documented, however.
Diffstat (limited to 'man_macro.c')
-rw-r--r--man_macro.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/man_macro.c b/man_macro.c
index 5281a905..74b59980 100644
--- a/man_macro.c
+++ b/man_macro.c
@@ -1,4 +1,4 @@
-/* $Id: man_macro.c,v 1.35 2010/03/24 20:10:53 kristaps Exp $ */
+/* $Id: man_macro.c,v 1.36 2010/03/25 07:28:16 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -217,7 +217,11 @@ rew_scope(enum man_type type, struct man *m, enum mant tok)
}
-/* ARGSUSED */
+/*
+ * Closure for dotted macros (de, dei, am, ami, ign). This must handle
+ * any of these as the parent node, so it needs special handling.
+ * Beyond this, it's the same as blk_close().
+ */
int
blk_dotted(MACRO_PROT_ARGS)
{
@@ -248,7 +252,9 @@ blk_dotted(MACRO_PROT_ARGS)
}
-/* ARGSUSED */
+/*
+ * Close out a generic explicit macro.
+ */
int
blk_close(MACRO_PROT_ARGS)
{
@@ -286,7 +292,6 @@ blk_exp(MACRO_PROT_ARGS)
{
int w, la;
char *p;
- struct man_node *n;
/*
* Close out prior scopes. "Regular" explicit macros cannot be
@@ -306,8 +311,6 @@ blk_exp(MACRO_PROT_ARGS)
if ( ! man_head_alloc(m, line, ppos, tok))
return(0);
- n = m->last;
-
for (;;) {
la = *pos;
w = man_args(m, line, pos, buf, &p);