diff options
Diffstat (limited to 'mdoc.c')
-rw-r--r-- | mdoc.c | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -1,7 +1,7 @@ -/* $Id: mdoc.c,v 1.200 2012/07/18 10:39:19 schwarze Exp $ */ +/* $Id: mdoc.c,v 1.201 2012/07/18 11:11:12 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> - * Copyright (c) 2010 Ingo Schwarze <schwarze@openbsd.org> + * Copyright (c) 2010, 2012 Ingo Schwarze <schwarze@openbsd.org> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -648,6 +648,14 @@ mdoc_node_delete(struct mdoc *m, struct mdoc_node *p) mdoc_node_free(p); } +int +mdoc_node_relink(struct mdoc *m, struct mdoc_node *p) +{ + + mdoc_node_unlink(m, p); + return(node_append(m, p)); +} + #if 0 /* * Pre-treat a text line. |