diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-05-05 15:17:32 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-05-05 15:17:32 +0000 |
commit | 59ff183bfbf2ef15bb6bae96290e8347aef13fb0 (patch) | |
tree | 44bdd5ee7af707828e02619c5b92b76ff63f5a20 /mdoc_macro.c | |
parent | 3f8e564abc73c1abd2c1286b5e767b2b101aae57 (diff) | |
download | mandoc-59ff183bfbf2ef15bb6bae96290e8347aef13fb0.tar.gz |
Move .sp to the roff modules. Enough infrastructure is in place
now that this actually saves code: -70 LOC.
Diffstat (limited to 'mdoc_macro.c')
-rw-r--r-- | mdoc_macro.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/mdoc_macro.c b/mdoc_macro.c index ac2600c4..832494bf 100644 --- a/mdoc_macro.c +++ b/mdoc_macro.c @@ -197,7 +197,6 @@ const struct mdoc_macro __mdoc_macros[MDOC_MAX - MDOC_Dd] = { { blk_part_imp, MDOC_CALLABLE | MDOC_PARSED | MDOC_JOIN }, /* En */ { in_line_argn, MDOC_CALLABLE | MDOC_PARSED }, /* Dx */ { in_line_eoln, MDOC_JOIN }, /* %Q */ - { in_line_eoln, 0 }, /* sp */ { in_line_eoln, 0 }, /* %U */ { phrase_ta, MDOC_CALLABLE | MDOC_PARSED | MDOC_JOIN }, /* Ta */ }; @@ -249,9 +248,8 @@ lookup(struct roff_man *mdoc, int from, int line, int ppos, const char *p) if (res != TOKEN_NONE) { if (mdoc_macros[res].flags & MDOC_CALLABLE) return res; - if (res != MDOC_sp) - mandoc_msg(MANDOCERR_MACRO_CALL, - mdoc->parse, line, ppos, p); + mandoc_msg(MANDOCERR_MACRO_CALL, + mdoc->parse, line, ppos, p); } } return TOKEN_NONE; |