Home
last modified time | relevance | path

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

/illumos-gate/usr/src/cmd/mandoc/
H A Dmdoc_macro.c220 mdoc_endparse(struct roff_man *mdoc) in mdoc_endparse() argument
226 n = mdoc->last->flags & NODE_VALID ? in mdoc_endparse()
227 mdoc->last->parent : mdoc->last; in mdoc_endparse()
237 rew_last(mdoc, mdoc->meta.first); in mdoc_endparse()
245 lookup(struct roff_man *mdoc, int from, int line, int ppos, const char *p) in lookup() argument
249 if (mdoc->flags & MDOC_PHRASEQF) { in lookup()
250 mdoc->flags &= ~MDOC_PHRASEQF; in lookup()
254 res = roffhash_find(mdoc->mdocmac, p, 0); in lookup()
268 rew_last(struct roff_man *mdoc, const struct roff_node *to) in rew_last() argument
274 while (mdoc->last != to) { in rew_last()
[all …]
H A Dmdoc_validate.c48 #define POST_ARGS struct roff_man *mdoc
302 mdoc_validate(struct roff_man *mdoc) in mdoc_validate() argument
313 n = mdoc->last; in mdoc_validate()
319 post_obsolete(mdoc); in mdoc_validate()
331 mdoc->last = mdoc->last->child; in mdoc_validate()
332 while (mdoc->last != NULL) { in mdoc_validate()
333 mdoc_validate(mdoc); in mdoc_validate()
334 if (mdoc->last == n) in mdoc_validate()
335 mdoc->last = mdoc->last->child; in mdoc_validate()
337 mdoc->last = mdoc->last->next; in mdoc_validate()
[all …]
H A Dmdoc.c62 mdoc_parseln(struct roff_man *mdoc, int ln, char *buf, int offs) in mdoc_parseln() argument
65 if (mdoc->last->type != ROFFT_EQN || ln > mdoc->last->line) in mdoc_parseln()
66 mdoc->flags |= MDOC_NEWLINE; in mdoc_parseln()
74 if (roff_getreg(mdoc->roff, "nS")) in mdoc_parseln()
75 mdoc->flags |= MDOC_SYNOPSIS; in mdoc_parseln()
77 mdoc->flags &= ~MDOC_SYNOPSIS; in mdoc_parseln()
79 return roff_getcontrol(mdoc->roff, buf, &offs) ? in mdoc_parseln()
80 mdoc_pmacro(mdoc, ln, buf, offs) : in mdoc_parseln()
81 mdoc_ptext(mdoc, ln, buf, offs); in mdoc_parseln()
85 mdoc_tail_alloc(struct roff_man *mdoc, int line, int pos, enum roff_tok tok) in mdoc_tail_alloc() argument
[all …]
H A Dmdoc_argv.c277 mdoc_argv(struct roff_man *mdoc, int line, enum roff_tok 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 roff_man *mdoc, int line, int *pos, in mdoc_args() argument
431 for (n = mdoc->last; n != NULL; n = n->parent) { in mdoc_args()
440 return args(mdoc, line, pos, buf, fl, v); in mdoc_args()
444 args(struct roff_man *mdoc, int line, int *pos, in args() argument
452 if (mdoc->flags & MDOC_PHRASELIT && in args()
453 ! (mdoc->flags & MDOC_PHRASE)) { in args()
455 mdoc->flags &= ~MDOC_PHRASELIT; in args()
[all …]
H A Dmdoc_state.c33 #define STATE_ARGS struct roff_man *mdoc, struct roff_node *n
167 mdoc_state(struct roff_man *mdoc, struct roff_node *n) in mdoc_state() argument
176 mdoc->flags |= MDOC_PBODY; in mdoc_state()
180 (*handler)(mdoc, n); in mdoc_state()
237 if ((mdoc->lastsec = n->sec) == SEC_SYNOPSIS) { in state_sh()
238 roff_setreg(mdoc->roff, "nS", 1, '='); in state_sh()
239 mdoc->flags |= MDOC_SYNOPSIS; in state_sh()
241 roff_setreg(mdoc->roff, "nS", 0, '='); in state_sh()
242 mdoc->flags &= ~MDOC_SYNOPSIS; in state_sh()
251 mdoc->flags ^= MDOC_SMOFF; in state_sm()
[all …]
H A Dmdoc_markdown.c269 markdown_mdoc(void *arg, const struct roff_meta *mdoc) in markdown_mdoc() argument
272 md_word(mdoc->title); in markdown_mdoc()
273 if (mdoc->msec != NULL) { in markdown_mdoc()
276 md_word(mdoc->msec); in markdown_mdoc()
280 md_word(mdoc->vol); in markdown_mdoc()
281 if (mdoc->arch != NULL) { in markdown_mdoc()
283 md_word(mdoc->arch); in markdown_mdoc()
288 md_nodelist(mdoc->first->child); in markdown_mdoc()
291 md_word(mdoc->os); in markdown_mdoc()
293 md_word(mdoc->date); in markdown_mdoc()
H A Dmanconf.h42 int mdoc; member
H A Dmdoc_man.c609 man_mdoc(void *arg, const struct roff_meta *mdoc) in man_mdoc() argument
615 for (n = mdoc->first->child; n != NULL; n = n->next) { in man_mdoc()
622 mdoc->title, (mdoc->msec == NULL ? "" : mdoc->msec), in man_mdoc()
623 mdoc->date, mdoc->os, mdoc->vol); in man_mdoc()
635 print_node(mdoc, n); in man_mdoc()
H A Dtree.c49 tree_mdoc(void *arg, const struct roff_meta *mdoc) in tree_mdoc() argument
51 print_meta(mdoc); in tree_mdoc()
53 print_mdoc(mdoc->first->child, 0); in tree_mdoc()
H A Dlibmdoc.h23 #define MACRO_PROT_ARGS struct roff_man *mdoc, \
H A DMakefile.common48 mdoc.o \
H A Dmdoc_html.c283 html_mdoc(void *arg, const struct roff_meta *mdoc) in html_mdoc() argument
290 n = mdoc->first->child; in html_mdoc()
298 print_mdoc_head(mdoc, h); in html_mdoc()
303 mdoc_root_pre(mdoc, h); in html_mdoc()
305 print_mdoc_nodelist(mdoc, n, h); in html_mdoc()
307 mdoc_root_post(mdoc, h); in html_mdoc()
H A Dpredefs.in20 * predefined strings from (e.g.) tmac/mdoc/doc-nroff. The left-hand
H A Dmdoc_term.c249 terminal_mdoc(void *arg, const struct roff_meta *mdoc) in terminal_mdoc() argument
261 n = mdoc->first->child; in terminal_mdoc()
275 print_mdoc_nodelist(p, NULL, mdoc, n); in terminal_mdoc()
281 term_begin(p, print_mdoc_head, print_mdoc_foot, mdoc); in terminal_mdoc()
289 print_mdoc_nodelist(p, NULL, mdoc, n); in terminal_mdoc()
H A Dterm_ascii.c125 if (outopts->mdoc) { in ascii_init()
H A Dmanpath.c342 conf->mdoc = 1; in manconf_output()
/illumos-gate/usr/src/man/man7/
H A DMakefile79 mdoc.7 \
/illumos-gate/usr/src/pkg/manifests/
H A Dsystem-man.p5m51 file path=usr/share/man/man7/mdoc.7