Home
last modified time | relevance | path

Searched refs:mdoc (Results 1 – 21 of 21) sorted by relevance

/titanic_50/usr/src/cmd/mandoc/
H A Dmdoc.c86 static void mdoc_node_unlink(struct mdoc *,
88 static void mdoc_free1(struct mdoc *);
89 static void mdoc_alloc1(struct mdoc *);
90 static struct mdoc_node *node_alloc(struct mdoc *, int, int,
92 static void node_append(struct mdoc *, struct mdoc_node *);
93 static int mdoc_ptext(struct mdoc *, int, char *, int);
94 static int mdoc_pmacro(struct mdoc *, int, char *, int);
98 mdoc_node(const struct mdoc *mdoc) in mdoc_node() argument
101 return(mdoc->first); in mdoc_node()
105 mdoc_meta(const struct mdoc *mdoc) in mdoc_meta() argument
[all …]
H A Dmdoc_macro.c44 static void dword(struct mdoc *, int, int, const char *,
46 static void append_delims(struct mdoc *, int, int *, char *);
47 static enum mdoct lookup(struct mdoc *, enum mdoct,
50 static int parse_rest(struct mdoc *, enum mdoct,
53 static void rew_elem(struct mdoc *, enum mdoct);
54 static void rew_last(struct mdoc *, const struct mdoc_node *);
55 static void rew_pending(struct mdoc *, const struct mdoc_node *);
210 mdoc_macroend(struct mdoc *mdoc) in mdoc_macroend() argument
216 n = mdoc->last->flags & MDOC_VALID ? in mdoc_macroend()
217 mdoc->last->parent : mdoc->last; in mdoc_macroend()
[all …]
H A Dmdoc_validate.c42 #define PRE_ARGS struct mdoc *mdoc, struct mdoc_node *n
43 #define POST_ARGS struct mdoc *mdoc
59 static void check_text(struct mdoc *, int, int, char *);
60 static void check_argv(struct mdoc *,
62 static void check_args(struct mdoc *, struct mdoc_node *);
295 mdoc_valid_pre(struct mdoc *mdoc, struct mdoc_node *n) in mdoc_valid_pre() argument
302 check_text(mdoc, n->line, n->pos, n->string); in mdoc_valid_pre()
314 check_args(mdoc, n); in mdoc_valid_pre()
317 (*p)(mdoc, n); in mdoc_valid_pre()
321 mdoc_valid_post(struct mdoc *mdoc) in mdoc_valid_post() argument
[all …]
H A Dlibmdoc.h24 struct mdoc { struct
49 #define MACRO_PROT_ARGS struct mdoc *mdoc, \ argument
100 void mdoc_word_alloc(struct mdoc *, int, int, const char *);
101 void mdoc_word_append(struct mdoc *, const char *);
102 void mdoc_elem_alloc(struct mdoc *, int, int,
104 struct mdoc_node *mdoc_block_alloc(struct mdoc *, int, int,
106 struct mdoc_node *mdoc_head_alloc(struct mdoc *, int, int, enum mdoct);
107 void mdoc_tail_alloc(struct mdoc *, int, int, enum mdoct);
108 struct mdoc_node *mdoc_body_alloc(struct mdoc *, int, int, enum mdoct);
109 struct mdoc_node *mdoc_endbody_alloc(struct mdoc *, int, int, enum mdoct,
[all …]
H A Dmdoc_argv.c54 static enum margserr args(struct mdoc *, int, int *,
57 static void argv_multi(struct mdoc *, int,
59 static void argv_single(struct mdoc *, int,
278 mdoc_argv(struct mdoc *mdoc, int line, enum mdoct tok, in mdoc_argv() argument
348 argv_single(mdoc, line, &tmpv, &ipos, buf); in mdoc_argv()
351 argv_multi(mdoc, line, &tmpv, &ipos, buf); in mdoc_argv()
415 mdoc_args(struct mdoc *mdoc, int line, int *pos, in mdoc_args() argument
426 return(args(mdoc, line, pos, buf, fl, v)); in mdoc_args()
435 for (n = mdoc->last; n; n = n->parent) in mdoc_args()
442 return(args(mdoc, line, pos, buf, fl, v)); in mdoc_args()
[all …]
H A Dlibmandoc.h42 struct mdoc;
58 void mdoc_free(struct mdoc *);
59 struct mdoc *mdoc_alloc(struct roff *, struct mparse *,
61 void mdoc_reset(struct mdoc *);
62 int mdoc_parseln(struct mdoc *, int, char *, int);
63 void mdoc_endparse(struct mdoc *);
64 void mdoc_addspan(struct mdoc *, const struct tbl_span *);
65 void mdoc_addeqn(struct mdoc *, const struct eqn *);
H A Dmain.h24 struct mdoc;
35 void html_mdoc(void *, const struct mdoc *);
39 void tree_mdoc(void *, const struct mdoc *);
42 void man_mdoc(void *, const struct mdoc *);
55 void terminal_mdoc(void *, const struct mdoc *);
H A Dread.c49 struct mdoc *pmdoc; /* persistent mdoc parser */
51 struct mdoc *mdoc; /* mdoc parser */ member
299 curp->mdoc = curp->pmdoc; in choose_parser()
576 if ( ! (curp->man || curp->mdoc)) in mparse_buf_r()
591 mdoc_addspan(curp->mdoc, span); in mparse_buf_r()
596 mdoc_addeqn(curp->mdoc, roff_eqn(curp->roff)); in mparse_buf_r()
600 mdoc_parseln(curp->mdoc, curp->line, ln.buf, of) : in mparse_buf_r()
690 if (curp->mdoc == NULL && in mparse_end()
694 curp->mdoc = curp->pmdoc; in mparse_end()
703 if (curp->mdoc) in mparse_end()
[all …]
H A Dmdoc.h389 struct mdoc;
391 const struct mdoc_node *mdoc_node(const struct mdoc *);
392 const struct mdoc_meta *mdoc_meta(const struct mdoc *);
H A Dtree.c40 tree_mdoc(void *arg, const struct mdoc *mdoc) in tree_mdoc() argument
43 print_mdoc(mdoc_node(mdoc)->child, 0); in tree_mdoc()
H A Dmain.c59 typedef void (*out_mdoc)(void *, const struct mdoc *);
636 struct mdoc *mdoc; in parse() local
722 mparse_result(curp->mp, &mdoc, &man, NULL); in parse()
728 if (mdoc && curp->outmdoc) in parse()
729 (*curp->outmdoc)(curp->outdata, mdoc); in parse()
H A Dmandoc.h415 struct mdoc;
438 struct mdoc **, struct man **, char **);
H A DMakefile.common36 mdoc.o \
H A Dpredefs.in20 * predefined strings from (e.g.) tmac/mdoc/doc-nroff. The left-hand
H A Dmdoc_man.c547 man_mdoc(void *arg, const struct mdoc *mdoc) in man_mdoc() argument
552 meta = mdoc_meta(mdoc); in man_mdoc()
553 n = mdoc_node(mdoc)->child; in man_mdoc()
H A Dmdoc_term.c253 terminal_mdoc(void *arg, const struct mdoc *mdoc) in terminal_mdoc() argument
265 n = mdoc_node(mdoc)->child; in terminal_mdoc()
266 meta = mdoc_meta(mdoc); in terminal_mdoc()
H A Dmdoc_html.c267 html_mdoc(void *arg, const struct mdoc *mdoc) in html_mdoc() argument
270 print_mdoc(mdoc_meta(mdoc), mdoc_node(mdoc)->child, in html_mdoc()
/titanic_50/usr/src/man/man5/
H A DMakefile75 mdoc.5 \
/titanic_50/usr/src/pkg/manifests/
H A Dsystem-man.mf40 file path=usr/share/man/man5/mdoc.5
/titanic_50/exception_lists/
H A Dhdrchk50 usr/src/cmd/mandoc/mdoc.h
H A Dcstyle130 usr/src/cmd/mandoc/mdoc.c
131 usr/src/cmd/mandoc/mdoc.h