summaryrefslogtreecommitdiffstats
path: root/mdoc_term.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-07-12 20:50:08 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-07-12 20:50:08 +0000
commitc13cf29fb280ec0bdd7e124d786f95c82f3e2c71 (patch)
tree13b84acd5935bc9ef1ec19bc12454c9e5f8a3d04 /mdoc_term.c
parentf73e57538b043ce8b2e27e9f5acc7d95ea3e332f (diff)
downloadmandoc-c13cf29fb280ec0bdd7e124d786f95c82f3e2c71.tar.gz
Replacement of `Lb' in mdoc_action.c.
Added warning against bogus `Lb' (like groff does). Added proper quotes around `Lb' in mdoc_term.c. Moved mdoc_a2lib -> libmdoc (where it belongs).
Diffstat (limited to 'mdoc_term.c')
-rw-r--r--mdoc_term.c20
1 files changed, 1 insertions, 19 deletions
diff --git a/mdoc_term.c b/mdoc_term.c
index 1728400e..df2258c1 100644
--- a/mdoc_term.c
+++ b/mdoc_term.c
@@ -147,7 +147,6 @@ static int termp_ft_pre(DECL_ARGS);
static int termp_ic_pre(DECL_ARGS);
static int termp_in_pre(DECL_ARGS);
static int termp_it_pre(DECL_ARGS);
-static int termp_lb_pre(DECL_ARGS);
static int termp_lk_pre(DECL_ARGS);
static int termp_ms_pre(DECL_ARGS);
static int termp_mt_pre(DECL_ARGS);
@@ -281,7 +280,7 @@ static const struct termact termacts[MDOC_MAX] = {
{ NULL, NULL }, /* Hf */
{ NULL, NULL }, /* Fr */
{ termp_ud_pre, NULL }, /* Ud */
- { termp_lb_pre, termp_lb_post }, /* Lb */
+ { NULL, termp_lb_post }, /* Lb */
{ termp_pp_pre, NULL }, /* Lp */
{ termp_lk_pre, NULL }, /* Lk */
{ termp_mt_pre, NULL }, /* Mt */
@@ -1284,23 +1283,6 @@ termp_bt_pre(DECL_ARGS)
/* ARGSUSED */
-static int
-termp_lb_pre(DECL_ARGS)
-{
- const char *lb;
-
- assert(node->child && MDOC_TEXT == node->child->type);
- lb = mdoc_a2lib(node->child->string);
- if (lb) {
- term_word(p, lb);
- return(0);
- }
- term_word(p, "library");
- return(1);
-}
-
-
-/* ARGSUSED */
static void
termp_lb_post(DECL_ARGS)
{