From 6d601f57d01308c8dcd7d348a05eaf33f9f1b9ce Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Sun, 28 Dec 2014 14:42:27 +0000 Subject: mdoc(7) already uses the mandoc(1) -Ios argument in the footer line when .Os has no argument, so do the same for man(7) when .TH has less than four arguments; there is no reason to treat both differently. Issue found following a question from Thomas Klausner . --- man.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'man.c') diff --git a/man.c b/man.c index 048db26f..766272d9 100644 --- a/man.c +++ b/man.c @@ -1,4 +1,4 @@ -/* $Id: man.c,v 1.145 2014/11/28 06:27:05 schwarze Exp $ */ +/* $Id: man.c,v 1.146 2014/12/28 14:42:27 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2013, 2014 Ingo Schwarze @@ -92,7 +92,8 @@ man_free(struct man *man) } struct man * -man_alloc(struct roff *roff, struct mparse *parse, int quick) +man_alloc(struct roff *roff, struct mparse *parse, + const char *defos, int quick) { struct man *p; @@ -100,6 +101,7 @@ man_alloc(struct roff *roff, struct mparse *parse, int quick) man_hash_init(); p->parse = parse; + p->defos = defos; p->quick = quick; p->roff = roff; -- cgit v1.2.3