/titanic_41/usr/src/cmd/mandoc/ |
H A D | mdoc.c | 92 static void mdoc_node_unlink(struct mdoc *, 94 static void mdoc_free1(struct mdoc *); 95 static void mdoc_alloc1(struct mdoc *); 96 static struct mdoc_node *node_alloc(struct mdoc *, int, int, 98 static int node_append(struct mdoc *, 101 static int mdoc_preptext(struct mdoc *, int, char *, int); 103 static int mdoc_ptext(struct mdoc *, int, char *, int); 104 static int mdoc_pmacro(struct mdoc *, int, char *, int); 107 mdoc_node(const struct mdoc *mdoc) in mdoc_node() argument 110 assert( ! (MDOC_HALT & mdoc->flags)); in mdoc_node() [all …]
|
H A D | mdoc_validate.c | 43 #define PRE_ARGS struct mdoc *mdoc, struct mdoc_node *n 44 #define POST_ARGS struct mdoc *mdoc 68 static int check_count(struct mdoc *, enum mdoc_type, 71 static void check_text(struct mdoc *, int, int, char *); 72 static void check_argv(struct mdoc *, 74 static void check_args(struct mdoc *, struct mdoc_node *); 354 mdoc_valid_pre(struct mdoc *mdoc, struct mdoc_node *n) in mdoc_valid_pre() argument 365 check_text(mdoc, line, pos, tp); in mdoc_valid_pre() 377 check_args(mdoc, n); in mdoc_valid_pre() 382 if ( ! (*p)(mdoc, n)) in mdoc_valid_pre() [all …]
|
H A D | mdoc_macro.c | 54 static int dword(struct mdoc *, int, int, const char *, 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 *, 225 mdoc_macroend(struct mdoc *mdoc) in mdoc_macroend() argument 231 n = MDOC_VALID & mdoc->last->flags ? in mdoc_macroend() 232 mdoc->last->parent : mdoc->last; in mdoc_macroend() [all …]
|
H A D | libmdoc.h | 26 struct mdoc { struct 49 #define MACRO_PROT_ARGS struct mdoc *mdoc, \ argument 106 #define mdoc_pmsg(mdoc, l, p, t) \ argument 107 mandoc_msg((t), (mdoc)->parse, (l), (p), NULL) 108 #define mdoc_nmsg(mdoc, n, t) \ argument 109 mandoc_msg((t), (mdoc)->parse, (n)->line, (n)->pos, NULL) 111 int mdoc_word_alloc(struct mdoc *, 113 void mdoc_word_append(struct mdoc *, const char *); 114 int mdoc_elem_alloc(struct mdoc *, int, int, 116 int mdoc_block_alloc(struct mdoc *, int, int, [all …]
|
H A D | mdoc_argv.c | 55 static enum margserr args(struct mdoc *, int, int *, 58 static int argv_multi(struct mdoc *, int, 60 static int argv_single(struct mdoc *, int, 278 mdoc_argv(struct mdoc *mdoc, int line, enum mdoct tok, in mdoc_argv() argument 345 if ( ! argv_single(mdoc, line, &tmp, pos, buf)) in mdoc_argv() 349 if ( ! argv_multi(mdoc, line, &tmp, pos, buf)) in mdoc_argv() 410 mdoc_zargs(struct mdoc *mdoc, int line, int *pos, char *buf, char **v) in mdoc_zargs() argument 413 return(args(mdoc, line, pos, buf, ARGSFL_NONE, v)); in mdoc_zargs() 417 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() [all …]
|
H A D | libmandoc.h | 36 struct mdoc; 49 void mdoc_free(struct mdoc *); 50 struct mdoc *mdoc_alloc(struct roff *, struct mparse *, char *); 51 void mdoc_reset(struct mdoc *); 52 int mdoc_parseln(struct mdoc *, int, char *, int); 53 int mdoc_endparse(struct mdoc *); 54 int mdoc_addspan(struct mdoc *, const struct tbl_span *); 55 int mdoc_addeqn(struct mdoc *, const struct eqn *);
|
H A D | main.h | 22 struct mdoc; 37 void html_mdoc(void *, const struct mdoc *); 41 void tree_mdoc(void *, const struct mdoc *); 44 void man_mdoc(void *, const struct mdoc *); 56 void terminal_mdoc(void *, const struct mdoc *);
|
H A D | read.c | 56 struct mdoc *pmdoc; /* persistent mdoc parser */ 58 struct mdoc *mdoc; /* mdoc parser */ member 255 curp->mdoc = curp->pmdoc; in pset() 272 curp->mdoc = curp->pmdoc; in pset() 515 if ( ! (curp->man || curp->mdoc)) in mparse_buf_r() 535 mdoc_addspan(curp->mdoc, span); in mparse_buf_r() 540 rc = curp->mdoc ? in mparse_buf_r() 541 mdoc_addeqn(curp->mdoc, in mparse_buf_r() 545 else if (curp->man || curp->mdoc) in mparse_buf_r() 549 mdoc_parseln(curp->mdoc, in mparse_buf_r() [all …]
|
H A D | main.c | 40 typedef void (*out_mdoc)(void *, const struct mdoc *); 205 struct mdoc *mdoc; in parse() local 296 mparse_result(curp->mp, &mdoc, &man); in parse() 302 if (mdoc && curp->outmdoc) in parse() 303 (*curp->outmdoc)(curp->outdata, mdoc); in parse()
|
H A D | mdoc.h | 388 struct mdoc; 390 const struct mdoc_node *mdoc_node(const struct mdoc *); 391 const struct mdoc_meta *mdoc_meta(const struct mdoc *);
|
H A D | tree.c | 41 tree_mdoc(void *arg, const struct mdoc *mdoc) in tree_mdoc() argument 44 print_mdoc(mdoc_node(mdoc), 0); in tree_mdoc()
|
H A D | mandoc.h | 397 struct mdoc; 425 struct mdoc **, struct man **);
|
H A D | Makefile.common | 20 man_macro.o man_term.o man_validate.o mandoc.o mdoc.o \
|
H A D | predefs.in | 20 * predefined strings from (e.g.) tmac/mdoc/doc-nroff. The left-hand
|
H A D | mdoc_man.c | 536 man_mdoc(void *arg, const struct mdoc *mdoc) in man_mdoc() argument 541 meta = mdoc_meta(mdoc); in man_mdoc() 542 n = mdoc_node(mdoc); in man_mdoc()
|
H A D | mdoc_term.c | 251 terminal_mdoc(void *arg, const struct mdoc *mdoc) in terminal_mdoc() argument 269 n = mdoc_node(mdoc); in terminal_mdoc() 270 meta = mdoc_meta(mdoc); in terminal_mdoc()
|
H A D | mdoc_html.c | 263 html_mdoc(void *arg, const struct mdoc *mdoc) in html_mdoc() argument 266 print_mdoc(mdoc_meta(mdoc), mdoc_node(mdoc), in html_mdoc()
|
/titanic_41/usr/src/man/man5/ |
H A D | Makefile | 71 mdoc.5 \
|
/titanic_41/usr/src/pkg/manifests/ |
H A D | system-man.mf | 42 file path=usr/share/man/man5/mdoc.5
|
/titanic_41/exception_lists/ |
H A D | hdrchk | 33 usr/src/cmd/mandoc/mdoc.h
|
H A D | cstyle | 109 usr/src/cmd/mandoc/mdoc.c 110 usr/src/cmd/mandoc/mdoc.h
|