version 1.124, 2010/05/15 16:24:38 |
version 1.125, 2010/05/17 22:11:42 |
|
|
#include <stdlib.h> |
#include <stdlib.h> |
#include <string.h> |
#include <string.h> |
|
|
|
#include "mandoc.h" |
#include "out.h" |
#include "out.h" |
#include "term.h" |
#include "term.h" |
#include "mdoc.h" |
#include "mdoc.h" |
|
|
termp_nm_pre(DECL_ARGS) |
termp_nm_pre(DECL_ARGS) |
{ |
{ |
|
|
|
if (NULL == n->child && NULL == m->name) |
|
|
if (SEC_SYNOPSIS == n->sec && MDOC_LINE & n->flags) |
if (SEC_SYNOPSIS == n->sec && MDOC_LINE & n->flags) |
term_newln(p); |
term_newln(p); |
|
|
Line 1092 termp_nm_pre(DECL_ARGS) |
|
Line 1095 termp_nm_pre(DECL_ARGS) |
|
|
|
if (NULL == n->child) |
if (NULL == n->child) |
term_word(p, m->name); |
term_word(p, m->name); |
|
|
return(1); |
return(1); |
} |
} |
|
|
Line 1216 termp_rv_pre(DECL_ARGS) |
|
Line 1220 termp_rv_pre(DECL_ARGS) |
|
term_word(p, "()"); |
term_word(p, "()"); |
} |
} |
|
|
if (n->child->next) |
if (n->child && n->child->next) |
term_word(p, "functions return"); |
term_word(p, "functions return"); |
else |
else |
term_word(p, "function returns"); |
term_word(p, "function returns"); |
Line 1255 termp_ex_pre(DECL_ARGS) |
|
Line 1259 termp_ex_pre(DECL_ARGS) |
|
p->flags &= ~TERMP_NOSPACE; |
p->flags &= ~TERMP_NOSPACE; |
} |
} |
|
|
if (n->child->next) |
if (n->child && n->child->next) |
term_word(p, "utilities exit"); |
term_word(p, "utilities exit"); |
else |
else |
term_word(p, "utility exits"); |
term_word(p, "utility exits"); |