diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2015-04-19 14:25:41 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2015-04-19 14:25:41 +0000 |
commit | b41835362693d09c3eff29cb37f2217b9dca8cc3 (patch) | |
tree | 304f88d63b2cc2aa84f33f3805156cd93c4f7cec /mdoc_macro.c | |
parent | eed5e7f1fb85805f1b324c5a4501ed30467ae2a0 (diff) | |
download | mandoc-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_macro.c')
-rw-r--r-- | mdoc_macro.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mdoc_macro.c b/mdoc_macro.c index fcfd517c..cb06dcdc 100644 --- a/mdoc_macro.c +++ b/mdoc_macro.c @@ -432,11 +432,11 @@ dword(struct roff_man *mdoc, int line, int col, const char *p, ! (mdoc->flags & (MDOC_SYNOPSIS | MDOC_KEEP | MDOC_SMOFF)) && d == DELIM_NONE && mdoc->last->type == ROFFT_TEXT && mdoc_isdelim(mdoc->last->string) == DELIM_NONE) { - mdoc_word_append(mdoc, p); + roff_word_append(mdoc, p); return; } - mdoc_word_alloc(mdoc, line, col, p); + roff_word_alloc(mdoc, line, col, p); /* * If the word consists of a bare delimiter, |