=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mandoc/roff.c,v retrieving revision 1.215 retrieving revision 1.216 diff -c -r1.215 -r1.216 *** src/usr.bin/mandoc/roff.c 2018/11/26 17:44:29 1.215 --- src/usr.bin/mandoc/roff.c 2018/12/04 02:53:45 1.216 *************** *** 1,4 **** ! /* $OpenBSD: roff.c,v 1.215 2018/11/26 17:44:29 schwarze Exp $ */ /* * Copyright (c) 2008-2012, 2014 Kristaps Dzonsons * Copyright (c) 2010-2015, 2017, 2018 Ingo Schwarze --- 1,4 ---- ! /* $OpenBSD: roff.c,v 1.216 2018/12/04 02:53:45 schwarze Exp $ */ /* * Copyright (c) 2008-2012, 2014 Kristaps Dzonsons * Copyright (c) 2010-2015, 2017, 2018 Ingo Schwarze *************** *** 1062,1067 **** --- 1062,1075 ---- } if (man->first == n) man->first = NULL; + } + + void + roff_node_relink(struct roff_man *man, struct roff_node *n) + { + roff_node_unlink(man, n); + n->prev = n->next = NULL; + roff_node_append(man, n); } void