summaryrefslogtreecommitdiffstats
path: root/macro.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-01-12 12:52:21 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-01-12 12:52:21 +0000
commitf41349a945984d15e04b7576ea08bc651631d093 (patch)
treedfdb636417d47144c7e8110b0869c2e75e642a68 /macro.c
parent062881c5bc9c7803c1b4caaca0d73dfd937f3445 (diff)
downloadmandoc-f41349a945984d15e04b7576ea08bc651631d093.tar.gz
*** empty log message ***
Diffstat (limited to 'macro.c')
-rw-r--r--macro.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/macro.c b/macro.c
index 74764e53..e319cafc 100644
--- a/macro.c
+++ b/macro.c
@@ -93,7 +93,7 @@ rewind_elem(struct mdoc *mdoc, int tok)
if (MDOC_ELEM != n->type)
n = n->parent;
assert(MDOC_ELEM == n->type);
- assert(tok == n->data.elem.tok);
+ assert(tok == n->tok);
return(rewind_last(mdoc, n));
}
@@ -111,7 +111,7 @@ rewind_body(struct mdoc *mdoc, int tok)
for (n = mdoc->last; n; n = n->parent) {
if (MDOC_BODY != n->type)
continue;
- if (tok == (t = n->data.head.tok))
+ if (tok == (t = n->tok))
break;
if ( ! (MDOC_EXPLICIT & mdoc_macros[t].flags))
continue;
@@ -135,7 +135,7 @@ rewind_head(struct mdoc *mdoc, int tok)
for (n = mdoc->last; n; n = n->parent) {
if (MDOC_HEAD != n->type)
continue;
- if (tok == (t = n->data.head.tok))
+ if (tok == (t = n->tok))
break;
if ( ! (MDOC_EXPLICIT & mdoc_macros[t].flags))
continue;
@@ -159,7 +159,7 @@ rewind_expblock(struct mdoc *mdoc, int tok)
for ( ; n; n = n->parent) {
if (MDOC_BLOCK != n->type)
continue;
- if (tok == (t = n->data.block.tok))
+ if (tok == (t = n->tok))
break;
if (MDOC_NESTED & mdoc_macros[t].flags)
continue;
@@ -183,7 +183,7 @@ rewind_impblock(struct mdoc *mdoc, int tok)
for ( ; n; n = n->parent) {
if (MDOC_BLOCK != n->type)
continue;
- if (tok == (t = n->data.block.tok))
+ if (tok == (t = n->tok))
break;
if ( ! (MDOC_EXPLICIT & mdoc_macros[t].flags))
continue;