/illumos-gate/usr/src/cmd/mandoc/ |
H A D | manconf.h | 36 int mdoc; member in struct:manoutput
|
H A D | mdoc_state.c | 24 #include "mdoc.h" 28 #define STATE_ARGS struct roff_man *mdoc, struct roff_node *n 166 mdoc_state(struct roff_man *mdoc, struct roff_node *n) argument 174 mdoc->flags |= MDOC_PBODY; 178 (*handler)(mdoc, n); 182 mdoc_state_reset(struct roff_man *mdoc) argument 185 roff_setreg(mdoc->roff, "nS", 0, '='); 186 mdoc->flags = 0; 205 state_dl(mdoc, n); 233 mdoc [all...] |
H A D | tree.c | 30 #include "mdoc.h" 41 tree_mdoc(void *arg, const struct roff_man *mdoc) argument 44 print_mdoc(mdoc->first->child, 0);
|
H A D | mdoc.c | 1 /* $Id: mdoc.c,v 1.256 2015/10/30 19:04:16 schwarze Exp $ */ 33 #include "mdoc.h" 97 mdoc_parseln(struct roff_man *mdoc, int ln, char *buf, int offs) argument 100 if (mdoc->last->type != ROFFT_EQN || ln > mdoc->last->line) 101 mdoc->flags |= MDOC_NEWLINE; 109 if (roff_getreg(mdoc->roff, "nS")) 110 mdoc->flags |= MDOC_SYNOPSIS; 112 mdoc->flags &= ~MDOC_SYNOPSIS; 114 return roff_getcontrol(mdoc 128 mdoc_tail_alloc(struct roff_man *mdoc, int line, int pos, int tok) argument 138 mdoc_endbody_alloc(struct roff_man *mdoc, int line, int pos, int tok, struct roff_node *body, enum mdoc_endbody end) argument 155 mdoc_block_alloc(struct roff_man *mdoc, int line, int pos, int tok, struct mdoc_arg *args) argument 182 mdoc_elem_alloc(struct roff_man *mdoc, int line, int pos, int tok, struct mdoc_arg *args) argument 204 mdoc_node_relink(struct roff_man *mdoc, struct roff_node *p) argument 217 mdoc_ptext(struct roff_man *mdoc, int line, char *buf, int offs) argument 333 mdoc_pmacro(struct roff_man *mdoc, int ln, char *buf, int offs) argument 483 mdoc_validate(struct roff_man *mdoc) argument [all...] |
H A D | mdoc_argv.c | 30 #include "mdoc.h" 279 mdoc_argv(struct roff_man *mdoc, int line, int tok, argument 349 argv_single(mdoc, line, &tmpv, &ipos, buf); 352 argv_multi(mdoc, line, &tmpv, &ipos, buf); 416 mdoc_args(struct roff_man *mdoc, int line, int *pos, argument 427 return args(mdoc, line, pos, buf, fl, v); 436 for (n = mdoc->last; n; n = n->parent) 443 return args(mdoc, line, pos, buf, fl, v); 447 args(struct roff_man *mdoc, int line, int *pos, argument 454 if (mdoc 642 argv_multi(struct roff_man *mdoc, int line, struct mdoc_argv *v, int *pos, char *buf) argument 664 argv_single(struct roff_man *mdoc, int line, struct mdoc_argv *v, int *pos, char *buf) argument [all...] |
H A D | mdoc_macro.c | 31 #include "mdoc.h" 213 mdoc_endparse(struct roff_man *mdoc) argument 219 n = mdoc->last->flags & MDOC_VALID ? 220 mdoc->last->parent : mdoc->last; 225 mandoc_msg(MANDOCERR_BLK_NOEND, mdoc->parse, 230 rew_last(mdoc, mdoc->first); 231 mdoc_state_reset(mdoc); 239 lookup(struct roff_man *mdoc, in argument 264 rew_last(struct roff_man *mdoc, const struct roff_node *to) argument 284 rew_pending(struct roff_man *mdoc, const struct roff_node *n) argument 367 rew_elem(struct roff_man *mdoc, int tok) argument 385 find_pending(struct roff_man *mdoc, int tok, int line, int ppos, struct roff_node *target) argument 422 dword(struct roff_man *mdoc, int line, int col, const char *p, enum mdelim d, int may_append) argument 456 append_delims(struct roff_man *mdoc, int line, int *pos, char *buf) argument 1417 parse_rest(struct roff_man *mdoc, int tok, int line, int *pos, char *buf) argument [all...] |
H A D | mdoc_html.c | 31 #include "mdoc.h" 321 html_mdoc(void *arg, const struct roff_man *mdoc) argument 334 print_mdoc_head(&mdoc->meta, mdoc->first->child, h); 341 mdoc_root_pre(&mdoc->meta, mdoc->first->child, h); 342 print_mdoc_nodelist(&mdoc->meta, mdoc->first->child, h); 343 mdoc_root_post(&mdoc->meta, mdoc [all...] |
H A D | mdoc_man.c | 28 #include "mdoc.h" 548 man_mdoc(void *arg, const struct roff_man *mdoc) argument 553 mdoc->meta.title, 554 (mdoc->meta.msec == NULL ? "" : mdoc->meta.msec), 555 mdoc->meta.date, mdoc->meta.os, mdoc->meta.vol); 566 for (n = mdoc->first->child; n != NULL; n = n->next) 567 print_node(&mdoc [all...] |
H A D | mdoc_term.c | 34 #include "mdoc.h" 258 terminal_mdoc(void *arg, const struct roff_man *mdoc) argument 268 n = mdoc->first->child; 274 &mdoc->meta, 285 &mdoc->meta); 289 print_mdoc_nodelist(p, NULL, &mdoc->meta, n);
|
H A D | mdoc_validate.c | 37 #include "mdoc.h" 44 #define POST_ARGS struct roff_man *mdoc 281 mdoc_node_validate(struct roff_man *mdoc) argument 286 n = mdoc->last; 287 mdoc->last = mdoc->last->child; 288 while (mdoc->last != NULL) { 289 mdoc_node_validate(mdoc); 290 if (mdoc->last == n) 291 mdoc 335 check_args(struct roff_man *mdoc, struct roff_node *n) argument 348 check_argv(struct roff_man *mdoc, struct roff_node *n, struct mdoc_argv *v) argument 357 check_text(struct roff_man *mdoc, int ln, int pos, char *p) argument [all...] |