=================================================================== RCS file: /cvs/mandoc/mdoc_macro.c,v retrieving revision 1.110 retrieving revision 1.113 diff -u -p -r1.110 -r1.113 --- mandoc/mdoc_macro.c 2011/08/10 14:07:23 1.110 +++ mandoc/mdoc_macro.c 2011/12/03 23:59:14 1.113 @@ -1,6 +1,6 @@ -/* $Id: mdoc_macro.c,v 1.110 2011/08/10 14:07:23 kristaps Exp $ */ +/* $Id: mdoc_macro.c,v 1.113 2011/12/03 23:59:14 schwarze Exp $ */ /* - * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons + * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2010 Ingo Schwarze * * Permission to use, copy, modify, and distribute this software for any @@ -1443,18 +1443,15 @@ blk_part_exp(MACRO_PROT_ARGS) /* Clean-up to leave in a consistent state. */ - if (NULL == head) { + if (NULL == head) if ( ! mdoc_head_alloc(m, line, ppos, tok)) return(0); - head = m->last; - } if (NULL == body) { if ( ! rew_sub(MDOC_HEAD, m, tok, line, ppos)) return(0); if ( ! mdoc_body_alloc(m, line, ppos, tok)) return(0); - body = m->last; } /* Standard appending of delimiters. */ @@ -1571,22 +1568,6 @@ in_line_argn(MACRO_PROT_ARGS) return(0); flushed = 1; } - - /* - * XXX: this is a hack to work around groff's ugliness - * as regards `Xr' and extraneous arguments. It should - * ideally be deprecated behaviour, but because this is - * code is no here, it's unlikely to be removed. - */ - -#ifdef __OpenBSD__ - if (MDOC_Xr == tok && j == maxargs) { - if ( ! mdoc_elem_alloc(m, line, la, MDOC_Ns, NULL)) - return(0); - if ( ! rew_elem(m, MDOC_Ns)) - return(0); - } -#endif if ( ! dword(m, line, la, p, DELIM_MAX)) return(0);