diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-03-23 15:41:09 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-03-23 15:41:09 +0000 |
commit | b657e31a9ec6631499c82ab01201bfb7db357ba3 (patch) | |
tree | b4d902aaa9d17e0684c61f1912c194589fb05bc1 /mdoc.c | |
parent | 858ffa5feefe929dcf0dabf5d771106577f1d9e7 (diff) | |
download | mandoc-b657e31a9ec6631499c82ab01201bfb7db357ba3.tar.gz |
-man linked to mandoc in documentation.
Diffstat (limited to 'mdoc.c')
-rw-r--r-- | mdoc.c | 15 |
1 files changed, 5 insertions, 10 deletions
@@ -204,20 +204,15 @@ mdoc_alloc(void *data, int pflags, const struct mdoc_cb *cb) * through to macro_end in macro.c. */ int -mdoc_endparse(struct mdoc *mdoc) +mdoc_endparse(struct mdoc *m) { - if (MDOC_HALT & mdoc->flags) + if (MDOC_HALT & m->flags) return(0); - if (NULL == mdoc->first) + else if (mdoc_macroend(m)) return(1); - - assert(mdoc->last); - if ( ! macro_end(mdoc)) { - mdoc->flags |= MDOC_HALT; - return(0); - } - return(1); + m->flags |= MDOC_HALT; + return(0); } |