version 1.71, 2010/06/19 20:46:28 |
version 1.73, 2010/07/01 22:35:54 |
|
|
#include "libmdoc.h" |
#include "libmdoc.h" |
#include "libmandoc.h" |
#include "libmandoc.h" |
|
|
|
/* |
|
* FIXME: this file is deprecated. All future "actions" should be |
|
* pushed into mdoc_validate.c. |
|
*/ |
|
|
#define POST_ARGS struct mdoc *m, struct mdoc_node *n |
#define POST_ARGS struct mdoc *m, struct mdoc_node *n |
#define PRE_ARGS struct mdoc *m, struct mdoc_node *n |
#define PRE_ARGS struct mdoc *m, struct mdoc_node *n |
|
|
Line 451 post_sh(POST_ARGS) |
|
Line 456 post_sh(POST_ARGS) |
|
*/ |
*/ |
if (SEC_NONE == m->lastnamed || SEC_CUSTOM != sec) |
if (SEC_NONE == m->lastnamed || SEC_CUSTOM != sec) |
m->lastnamed = sec; |
m->lastnamed = sec; |
|
|
|
/* |
|
* Switch the parser's SYNOPSIS mode, to be copied |
|
* into individual nodes when creating them. |
|
* Note that this mode can also be set and unset |
|
* using the roff nS register. |
|
*/ |
|
if (SEC_SYNOPSIS == sec) |
|
m->flags |= MDOC_SYNOPSIS; |
|
else |
|
m->flags &= ~MDOC_SYNOPSIS; |
|
|
/* Some sections only live in certain manual sections. */ |
/* Some sections only live in certain manual sections. */ |
|
|