version 1.33, 2009/03/01 23:27:14 |
version 1.34, 2009/03/02 12:09:32 |
|
|
|
|
#include "term.h" |
#include "term.h" |
|
|
#define INDENT 6 |
|
|
|
/* |
/* |
* Performs actions on nodes of the abstract syntax tree. Both pre- and |
* Performs actions on nodes of the abstract syntax tree. Both pre- and |
* post-fix operations are defined here. |
* post-fix operations are defined here. |
|
|
termp_ft_pre(DECL_ARGS) |
termp_ft_pre(DECL_ARGS) |
{ |
{ |
|
|
|
if (SEC_SYNOPSIS == node->sec) |
|
if (node->prev && MDOC_Fo == node->prev->tok) |
|
vspace(p); |
TERMPAIR_SETFLAG(p, pair, ttypes[TTYPE_FUNC_TYPE]); |
TERMPAIR_SETFLAG(p, pair, ttypes[TTYPE_FUNC_TYPE]); |
return(1); |
return(1); |
} |
} |
|
|
termp_ft_post(DECL_ARGS) |
termp_ft_post(DECL_ARGS) |
{ |
{ |
|
|
if (node->sec == SEC_SYNOPSIS) |
if (SEC_SYNOPSIS == node->sec) |
newln(p); |
newln(p); |
} |
} |
|
|
|
|
termp_bx_post(DECL_ARGS) |
termp_bx_post(DECL_ARGS) |
{ |
{ |
|
|
p->flags |= TERMP_NOSPACE; |
if (node->child) |
|
p->flags |= TERMP_NOSPACE; |
word(p, "BSD"); |
word(p, "BSD"); |
} |
} |
|
|