summaryrefslogtreecommitdiffstats
path: root/mdoc_validate.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-04-19 14:25:41 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-04-19 14:25:41 +0000
commitb41835362693d09c3eff29cb37f2217b9dca8cc3 (patch)
tree304f88d63b2cc2aa84f33f3805156cd93c4f7cec /mdoc_validate.c
parenteed5e7f1fb85805f1b324c5a4501ed30467ae2a0 (diff)
downloadmandoc-b41835362693d09c3eff29cb37f2217b9dca8cc3.tar.gz
Unify some node handling functions that use TOKEN_NONE.
* mdoc_word_alloc(), man_word_alloc() -> roff_word_alloc() * mdoc_word_append(), man_word_append() -> roff_word_append() * mdoc_addspan(), man_addspan() -> roff_addtbl() * mdoc_addeqn(), man_addeqn() -> roff_addeqn() Minus 50 lines of code, no functional change.
Diffstat (limited to 'mdoc_validate.c')
-rw-r--r--mdoc_validate.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/mdoc_validate.c b/mdoc_validate.c
index 18c606e1..dd477eef 100644
--- a/mdoc_validate.c
+++ b/mdoc_validate.c
@@ -1051,13 +1051,13 @@ post_defaults(POST_ARGS)
switch (nn->tok) {
case MDOC_Ar:
- mdoc_word_alloc(mdoc, nn->line, nn->pos, "file");
- mdoc_word_alloc(mdoc, nn->line, nn->pos, "...");
+ roff_word_alloc(mdoc, nn->line, nn->pos, "file");
+ roff_word_alloc(mdoc, nn->line, nn->pos, "...");
break;
case MDOC_Pa:
/* FALLTHROUGH */
case MDOC_Mt:
- mdoc_word_alloc(mdoc, nn->line, nn->pos, "~");
+ roff_word_alloc(mdoc, nn->line, nn->pos, "~");
break;
default:
abort();
@@ -1076,7 +1076,7 @@ post_at(POST_ARGS)
n = mdoc->last;
if (n->child == NULL) {
mdoc->next = ROFF_NEXT_CHILD;
- mdoc_word_alloc(mdoc, n->line, n->pos, "AT&T UNIX");
+ roff_word_alloc(mdoc, n->line, n->pos, "AT&T UNIX");
mdoc->last = n;
return;
}
@@ -2315,7 +2315,7 @@ post_ex(POST_ARGS)
}
mdoc->next = ROFF_NEXT_CHILD;
- mdoc_word_alloc(mdoc, n->line, n->pos, mdoc->meta.name);
+ roff_word_alloc(mdoc, n->line, n->pos, mdoc->meta.name);
mdoc->last = n;
}