| /titanic_53/usr/src/cmd/mandoc/ |
| H A D | libmdoc.h | 40 struct mdoc_node *last; /* the last node parsed */ 41 struct mdoc_node *first; /* the first node parsed */ 42 struct mdoc_node *last_es; /* the most recent Es node */ 104 struct mdoc_node *mdoc_block_alloc(struct mdoc *, int, int, 106 struct mdoc_node *mdoc_head_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, 110 struct mdoc_node *, enum mdoc_endbody); 111 void mdoc_node_delete(struct mdoc *, struct mdoc_node *); 112 void mdoc_node_relink(struct mdoc *, struct mdoc_node *); [all …]
|
| H A D | mdoc.h | 340 struct mdoc_node *Es; 347 struct mdoc_node { struct 348 struct mdoc_node *parent; /* parent AST node */ argument 349 struct mdoc_node *child; /* first child AST node */ argument 350 struct mdoc_node *last; /* last child AST node */ argument 351 struct mdoc_node *next; /* sibling AST node */ argument 352 struct mdoc_node *prev; /* prior sibling AST node */ argument 372 struct mdoc_node *head; /* BLOCK */ argument 373 struct mdoc_node *body; /* BLOCK/ENDBODY */ argument 374 struct mdoc_node *tail; /* BLOCK */ argument [all …]
|
| H A D | mdoc.c | 85 static void mdoc_node_free(struct mdoc_node *); 87 struct mdoc_node *); 90 static struct mdoc_node *node_alloc(struct mdoc *, int, int, 92 static void node_append(struct mdoc *, struct mdoc_node *); 97 const struct mdoc_node * 98 mdoc_node(const struct mdoc *mdoc) in mdoc_node() function 139 mdoc->last = mandoc_calloc(1, sizeof(struct mdoc_node)); in mdoc_alloc1() 203 struct mdoc_node *n; in mdoc_addeqn() 216 struct mdoc_node *n; in mdoc_addspan() 279 node_append(struct mdoc *mdoc, struct mdoc_node *p) in node_append() [all …]
|
| H A D | mdoc_validate.c | 42 #define PRE_ARGS struct mdoc *mdoc, struct mdoc_node *n 61 struct mdoc_node *, struct mdoc_argv *); 62 static void check_args(struct mdoc *, struct mdoc_node *); 63 static int child_an(const struct mdoc_node *); 295 mdoc_valid_pre(struct mdoc *mdoc, struct mdoc_node *n) in mdoc_valid_pre() 323 struct mdoc_node *n; in mdoc_valid_post() 364 check_args(struct mdoc *mdoc, struct mdoc_node *n) in check_args() 377 check_argv(struct mdoc *mdoc, struct mdoc_node *n, struct mdoc_argv *v) in check_argv() 401 struct mdoc_node *node; in pre_display() 771 struct mdoc_node *np, *nch; in post_bf() [all …]
|
| H A D | mdoc_macro.c | 54 static void rew_last(struct mdoc *, const struct mdoc_node *); 55 static void rew_pending(struct mdoc *, const struct mdoc_node *); 212 struct mdoc_node *n; in mdoc_macroend() 256 rew_last(struct mdoc *mdoc, const struct mdoc_node *to) in rew_last() 258 struct mdoc_node *n, *np; in rew_last() 283 rew_pending(struct mdoc *mdoc, const struct mdoc_node *n) in rew_pending() 366 struct mdoc_node *n; in rew_elem() 484 struct mdoc_node *body; /* Our own body. */ in blk_exp_close() 485 struct mdoc_node *endbody; /* Our own end marker. */ in blk_exp_close() 486 struct mdoc_node *itblk; /* An It block starting later. */ in blk_exp_close() [all …]
|
| H A D | tree.c | 35 static void print_mdoc(const struct mdoc_node *, int); 43 print_mdoc(mdoc_node(mdoc)->child, 0); in tree_mdoc() 54 print_mdoc(const struct mdoc_node *n, int indent) in print_mdoc()
|
| H A D | mdoc_man.c | 32 #define DECL_ARGS const struct mdoc_meta *meta, struct mdoc_node *n 110 static void pre_syn(const struct mdoc_node *); 119 const struct mdoc_node *); 470 print_width(const struct mdoc_bl *bl, const struct mdoc_node *child) in print_width() 550 struct mdoc_node *n; in man_mdoc() 553 n = mdoc_node(mdoc)->child; in man_mdoc() 580 struct mdoc_node *sub; in print_node() 810 pre_syn(const struct mdoc_node *n) in pre_syn() 1368 const struct mdoc_node *bln; in pre_it() 1465 const struct mdoc_node *bln; in post_it() [all …]
|
| H A D | mdoc_term.c | 46 struct mdoc_node *n 56 const struct mdoc_node *, 57 const struct mdoc_node *); 63 const struct mdoc_node *); 256 struct mdoc_node *n; in terminal_mdoc() 265 n = mdoc_node(mdoc)->child; in terminal_mdoc() 551 const struct mdoc_node *bl, in print_bvspace() 552 const struct mdoc_node *n) in print_bvspace() 554 const struct mdoc_node *nn; in print_bvspace() 612 const struct mdoc_node *bl, *nn; in termp_it_pre() [all …]
|
| H A D | mdoc_html.c | 38 struct mdoc_node *n, \ 55 const struct mdoc_node *); 270 print_mdoc(mdoc_meta(mdoc), mdoc_node(mdoc)->child, in html_mdoc() 295 synopsis_pre(struct html *h, const struct mdoc_node *n) in synopsis_pre() 824 const struct mdoc_node *bl; in mdoc_it_pre() 1128 struct mdoc_node *nn; in mdoc_bd_pre() 1314 const struct mdoc_node *nn; in mdoc_fa_pre()
|
| H A D | mdoc_argv.c | 418 struct mdoc_node *n; in mdoc_args()
|