Lines Matching refs:mdoc
29 #include "mdoc.h"
54 static int dword(struct mdoc *, int, int,
56 static int append_delims(struct mdoc *,
61 struct mdoc *, int, int);
62 static int phrase(struct mdoc *, int, int, char *);
66 static int rew_elem(struct mdoc *, enum mdoct);
67 static int rew_last(struct mdoc *,
69 static int rew_sub(enum mdoc_type, struct mdoc *,
206 mdoc_macroend(struct mdoc *m)
255 rew_last(struct mdoc *mdoc, const struct mdoc_node *to)
260 mdoc->next = MDOC_NEXT_SIBLING;
263 while (mdoc->last != to) {
270 np = mdoc->last->parent;
271 if ( ! mdoc_valid_post(mdoc))
273 n = mdoc->last;
274 mdoc->last = np;
275 assert(mdoc->last);
276 mdoc->last->last = n;
279 return(mdoc_valid_post(mdoc));
441 rew_elem(struct mdoc *mdoc, enum mdoct tok)
445 n = mdoc->last;
451 return(rew_last(mdoc, n));
463 struct mdoc *m, int line, int ppos)
533 rew_sub(enum mdoc_type t, struct mdoc *m,
590 dword(struct mdoc *m, int line,
621 append_delims(struct mdoc *m, int line, int *pos, char *buf)
1711 phrase(struct mdoc *m, int line, int ppos, char *buf)