version 1.197, 2012/05/27 17:48:57 |
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 302 mdoc_parseln(struct mdoc *m, int ln, char *buf, int of |
|
Line 302 mdoc_parseln(struct mdoc *m, int ln, char *buf, int of |
|
m->flags &= ~MDOC_SYNOPSIS; |
m->flags &= ~MDOC_SYNOPSIS; |
} |
} |
|
|
return(mandoc_getcontrol(buf, &offs) ? |
return(roff_getcontrol(m->roff, buf, &offs) ? |
mdoc_pmacro(m, ln, buf, offs) : |
mdoc_pmacro(m, ln, buf, offs) : |
mdoc_ptext(m, ln, buf, offs)); |
mdoc_ptext(m, ln, buf, offs)); |
} |
} |
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 801 mdoc_ptext(struct mdoc *m, int line, char *buf, int of |
|
Line 809 mdoc_ptext(struct mdoc *m, int line, char *buf, int of |
|
return(0); |
return(0); |
|
|
m->next = MDOC_NEXT_SIBLING; |
m->next = MDOC_NEXT_SIBLING; |
return(1); |
|
|
return(mdoc_valid_post(m)); |
} |
} |
|
|
if ( ! mdoc_word_alloc(m, line, offs, buf+offs)) |
if ( ! mdoc_word_alloc(m, line, offs, buf+offs)) |
Line 981 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); |