version 1.199, 2012/07/16 09:51:54 |
version 1.201, 2012/07/18 11:11:12 |
|
|
/* $Id$ */ |
/* $Id$ */ |
/* |
/* |
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> |
* 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 |
* Permission to use, copy, modify, and distribute this software for any |
* purpose with or without fee is hereby granted, provided that the above |
* purpose with or without fee is hereby granted, provided that the above |
Line 648 mdoc_node_delete(struct mdoc *m, struct mdoc_node *p) |
|
Line 648 mdoc_node_delete(struct mdoc *m, struct mdoc_node *p) |
|
mdoc_node_free(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 |
#if 0 |
/* |
/* |
* Pre-treat a text line. |
* Pre-treat a text line. |
Line 982 mdoc_isdelim(const char *p) |
|
Line 990 mdoc_isdelim(const char *p) |
|
|
|
if (0 == strcmp(p + 1, ".")) |
if (0 == strcmp(p + 1, ".")) |
return(DELIM_CLOSE); |
return(DELIM_CLOSE); |
if (0 == strcmp(p + 1, "*(Ba")) |
if (0 == strcmp(p + 1, "fR|\\fP")) |
return(DELIM_MIDDLE); |
return(DELIM_MIDDLE); |
|
|
return(DELIM_NONE); |
return(DELIM_NONE); |