diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-03-23 12:33:01 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-03-23 12:33:01 +0000 |
commit | e29490c2a6462d5308d34e9cad6e8b105edbd029 (patch) | |
tree | 7b2e6a190f7ba61bdeddabb454eaaef98a233d21 /man.c | |
parent | 95cb195e612a11db010c2773fc911099889bfe6a (diff) | |
download | mandoc-e29490c2a6462d5308d34e9cad6e8b105edbd029.tar.gz |
Add MAN_TAIL, which will be used by `UE' (forthcoming) and needs to be
used for `RE'.
Diffstat (limited to 'man.c')
-rw-r--r-- | man.c | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -203,6 +203,10 @@ man_node_append(struct man *man, struct man_node *p) assert(MAN_BLOCK == p->parent->type); p->parent->head = p; break; + case (MAN_TAIL): + assert(MAN_BLOCK == p->parent->type); + p->parent->tail = p; + break; case (MAN_BODY): assert(MAN_BLOCK == p->parent->type); p->parent->body = p; @@ -261,6 +265,19 @@ man_elem_alloc(struct man *m, int line, int pos, enum mant tok) int +man_tail_alloc(struct man *m, int line, int pos, enum mant tok) +{ + struct man_node *p; + + p = man_node_alloc(m, line, pos, MAN_TAIL, tok); + if ( ! man_node_append(m, p)) + return(0); + m->next = MAN_NEXT_CHILD; + return(1); +} + + +int man_head_alloc(struct man *m, int line, int pos, enum mant tok) { struct man_node *p; |