summaryrefslogtreecommitdiffstatshomepage
path: root/macro.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-01-20 16:04:48 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-01-20 16:04:48 +0000
commit6a14e4705e3232af38a72cfb7ca8b2a09ed0b3a9 (patch)
treeac2ee0f08e076497e941f17cab44b8047c0d0dbe /macro.c
parent9f42ba4041f2c6efac97ae8a06564e5244e1ea23 (diff)
downloadmandoc-6a14e4705e3232af38a72cfb7ca8b2a09ed0b3a9.tar.gz
mandoc-6a14e4705e3232af38a72cfb7ca8b2a09ed0b3a9.tar.zst
mandoc-6a14e4705e3232af38a72cfb7ca8b2a09ed0b3a9.zip
Minor documentation.
Diffstat (limited to 'macro.c')
-rw-r--r--macro.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/macro.c b/macro.c
index 5245801f..4be91601 100644
--- a/macro.c
+++ b/macro.c
@@ -1,4 +1,4 @@
-/* $Id: macro.c,v 1.46 2009/01/20 15:06:07 kristaps Exp $ */
+/* $Id: macro.c,v 1.47 2009/01/20 16:04:48 kristaps Exp $ */
/*
* Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -713,6 +713,8 @@ macro_scoped(MACRO_PROT_ARGS)
assert ( ! (MDOC_CALLABLE & mdoc_macros[tok].flags));
+ /* First rewind extant implicit scope. */
+
if ( ! (MDOC_EXPLICIT & mdoc_macros[tok].flags)) {
if ( ! rewind_subblock(MDOC_BODY, mdoc, tok, line, ppos))
return(0);
@@ -720,6 +722,8 @@ macro_scoped(MACRO_PROT_ARGS)
return(0);
}
+ /* Parse arguments. */
+
for (argc = 0; argc < MDOC_LINEARG_MAX; argc++) {
lastarg = *pos;
c = mdoc_argv(mdoc, line, tok, &argv[argc], pos, buf);