| /openbsd-src/usr.bin/mandoc/ |
| H A D | mdoc_markdown.c | 34 int (*cond)(struct roff_node *); 35 int (*pre)(struct roff_node *); 36 void (*post)(struct roff_node *); 41 static void md_nodelist(struct roff_node *); 42 static void md_node(struct roff_node *); 51 static int md_cond_head(struct roff_node *); 52 static int md_cond_body(struct roff_node *); 54 static int md_pre_abort(struct roff_node *); 55 static int md_pre_raw(struct roff_node *); 56 static int md_pre_word(struct roff_node *); [all...] |
| H A D | roff_int.h | 22 struct roff_node; 39 struct roff_node *last; /* The last node parsed. */ 40 struct roff_node *last_es; /* The most recent Es node. */ 67 struct roff_node *roff_node_alloc(struct roff_man *, int, int, 69 void roff_node_append(struct roff_man *, struct roff_node *); 73 struct roff_node *roff_block_alloc(struct roff_man *, int, int, int); 74 struct roff_node *roff_head_alloc(struct roff_man *, int, int, int); 75 struct roff_node *roff_body_alloc(struct roff_man *, int, int, int); 76 void roff_node_unlink(struct roff_man *, struct roff_node *); 77 void roff_node_relink(struct roff_man *, struct roff_node *); [all …]
|
| H A D | roff.h | 498 struct roff_node { struct 499 struct roff_node *parent; /* Parent AST node. */ argument 500 struct roff_node *child; /* First child AST node. */ argument 501 struct roff_node *last; /* Last child AST node. */ argument 502 struct roff_node *next; /* Sibling AST node. */ argument 503 struct roff_node *prev; /* Prior sibling AST node. */ argument 504 struct roff_node *head; /* BLOCK */ argument 505 struct roff_node *body; /* BLOCK/ENDBODY */ argument 506 struct roff_node *tail; /* BLOCK */ argument 538 struct roff_node *first; /* The first node parsed. */ argument [all …]
|
| H A D | libmdoc.h | 19 struct roff_node; 71 struct roff_node *mdoc_block_alloc(struct roff_man *, int, int, 75 struct roff_node *mdoc_endbody_alloc(struct roff_man *, int, int, 76 enum roff_tok, struct roff_node *); 77 void mdoc_state(struct roff_man *, struct roff_node *);
|
| H A D | html.h | 119 struct roff_node; 123 void roff_html_pre(struct html *, const struct roff_node *); 125 void print_gen_comment(struct html *, struct roff_node *); 130 struct roff_node *); 134 struct roff_node *); 143 char *html_make_id(const struct roff_node *, int);
|
| H A D | tag.c | 40 struct roff_node **nodes; 48 struct roff_node *, const char *); 49 static void tag_move_id(struct roff_node *); 87 tag_put(const char *s, int prio, struct roff_node *n) in tag_put() 90 struct roff_node *nold; in tag_put() 245 tag_move_id(struct roff_node *n) in tag_move_id() 247 struct roff_node *np; in tag_move_id() 307 tag_move_href(struct roff_man *man, struct roff_node *n, const char *tag) in tag_move_href() 341 tag_postprocess(struct roff_man *man, struct roff_node *n) in tag_postprocess()
|
| H A D | mdoc_validate.c | 58 struct roff_node *, struct mdoc_argv *); 59 static void check_args(struct roff_man *, struct roff_node *); 63 static int child_an(const struct roff_node *); 302 struct roff_node *n, *np; in mdoc_validate() 395 check_args(struct roff_man *mdoc, struct roff_node *n) in check_args() 408 check_argv(struct roff_man *mdoc, struct roff_node *n, struct mdoc_argv *v) in check_argv() 431 const struct roff_node *np, *nn; in check_text_em() 518 const struct roff_node *nch; in post_delim() 545 const struct roff_node *nch; in post_delim_nb() 638 struct roff_node * in post_bl_norm() [all...] |
| H A D | mdoc.c | 85 struct roff_node *p; in mdoc_tail_alloc() 92 struct roff_node * 94 enum roff_tok tok, struct roff_node *body) in mdoc_endbody_alloc() 96 struct roff_node *p; in mdoc_endbody_alloc() 109 struct roff_node * 113 struct roff_node *p; in mdoc_block_alloc() 140 struct roff_node *p; in mdoc_elem_alloc() 165 struct roff_node *n; in mdoc_ptext() 307 struct roff_node *n; in mdoc_pmacro()
|
| H A D | mdoc_macro.c | 48 int, int, struct roff_node *); 51 static void break_intermediate(struct roff_node *, 52 struct roff_node *); 57 static void rew_last(struct roff_man *, const struct roff_node *); 59 const struct roff_node *); 220 struct roff_node *n; in mdoc_endparse() 266 rew_last(struct roff_man *mdoc, const struct roff_node *to) in rew_last() 286 rew_pending(struct roff_man *mdoc, const struct roff_node *n) in rew_pending() 373 struct roff_node *n; in rew_elem() 384 break_intermediate(struct roff_node *n, struct roff_node *breaker) in break_intermediate() [all …]
|
| H A D | mdoc_state.c | 31 #define STATE_ARGS struct roff_man *mdoc, struct roff_node *n 35 static void setsec(struct roff_node *, enum roff_sec); 166 mdoc_state(struct roff_man *mdoc, struct roff_node *n) in mdoc_state() 207 setsec(struct roff_node *n, enum roff_sec sec) in setsec() 209 struct roff_node *nch; in setsec()
|
| H A D | libmandoc.h | 53 struct roff_node; 55 char *mandoc_normdate(struct roff_node *, struct roff_node *);
|
| H A D | roff_validate.c | 28 #define ROFF_VALID_ARGS struct roff_man *man, struct roff_node *n 57 struct roff_node *n; in roff_validate() 68 struct roff_node *np; in roff_valid_br() 130 struct roff_node *np; in roff_valid_sp()
|
| H A D | man_validate.c | 42 #define CHKARGS struct roff_man *man, struct roff_node *n 49 static void check_tag(struct roff_node *, struct roff_node *); 111 struct roff_node *n; in man_validate() 195 check_tag(struct roff_node *n, struct roff_node *nt) in check_tag() 295 struct roff_node *nc; in post_SH() 430 struct roff_node *nt; in post_TP() 457 struct roff_node *nb; in post_TH() 553 struct roff_node *nch; in post_MR() 623 struct roff_node *nn; in post_AT()
|
| H A D | mandocdb.c | 100 const struct roff_node *); 125 const struct roff_node *); 127 const struct roff_node *); 129 const struct roff_node *); 131 const struct roff_node *); 133 const struct roff_node *); 134 static void parse_mdoc_fname(struct mpage *, const struct roff_node *); 136 const struct roff_node *); 138 const struct roff_node *); 140 const struct roff_node *); [all …]
|
| H A D | tag.h | 33 void tag_put(const char *, int, struct roff_node *); 34 void tag_postprocess(struct roff_man *, struct roff_node *);
|
| H A D | libman.h | 19 struct roff_node; 42 void man_unscope(struct roff_man *, const struct roff_node *);
|
| H A D | man_macro.c | 92 man_unscope(struct roff_man *man, const struct roff_node *to) in man_unscope() 94 struct roff_node *n; in man_unscope() 162 struct roff_node *n; in rew_scope() 204 const struct roff_node *nn; in blk_close() 298 struct roff_node *head; in blk_exp() 343 struct roff_node *n; in blk_imp() 386 struct roff_node *n; in in_line_eoln()
|
| H A D | eqn_parse.h | 22 struct roff_node; 27 struct roff_node *node; /* Syntax tree of this equation. */
|
| H A D | man_html.c | 37 struct roff_node *n, \ 49 static char list_continues(const struct roff_node *, 50 const struct roff_node *); 116 struct roff_node *n; in html_man() 343 const struct roff_node *nn; in man_alt_pre() 417 list_continues(const struct roff_node *n1, const struct roff_node *n2) in list_continues() 448 struct roff_node *nn; in man_IP_pre()
|
| H A D | tree.c | 37 static void print_attr(const struct roff_node *); 40 static void print_man(const struct roff_node *, int); 42 static void print_mdoc(const struct roff_node *, int); 84 print_mdoc(const struct roff_node *n, int indent) in print_mdoc() 205 print_man(const struct roff_node *n, int indent) in print_man() 288 print_attr(const struct roff_node *n) in print_attr()
|
| H A D | mdoc.h | 19 struct roff_node; 151 struct roff_node *Es;
|
| H A D | roff_html.c | 29 #define ROFF_HTML_ARGS struct html *h, const struct roff_node *n 57 roff_html_pre(struct html *h, const struct roff_node *n) in roff_html_pre()
|
| H A D | mdoc_term.c | 48 struct roff_node *n 58 struct roff_node *, struct roff_node *); 63 static void synopsis_pre(struct termp *, struct roff_node *); 249 struct roff_node *n, *nn; in terminal_mdoc() 577 print_bvspace(struct termp *p, struct roff_node *bl, struct roff_node *n) in print_bvspace() 579 struct roff_node *nn; in print_bvspace() 623 const struct roff_node *bl, *nn; in termp_it_pre() 1034 struct roff_node *nn; in termp_fl_pre() 1051 struct roff_node *nn; in termp__a_pre() 1176 synopsis_pre(struct termp *p, struct roff_node *n) in synopsis_pre() [all …]
|
| H A D | mdoc_man.c | 32 #define DECL_ARGS const struct roff_meta *meta, struct roff_node *n 114 static void pre_syn(struct roff_node *); 123 const struct roff_node *); 540 print_width(const struct mdoc_bl *bl, const struct roff_node *child) in print_width() 609 struct roff_node *n; in man_mdoc() 641 struct roff_node *sub; in print_node() 792 struct roff_node *np, *nn, *nnn; in post_percent() 876 pre_syn(struct roff_node *n) in pre_syn() 878 struct roff_node *np; in pre_syn() 1259 struct roff_node *n in post_fa() [all...] |
| H A D | roff_term.c | 28 #define ROFF_TERM_ARGS struct termp *p, const struct roff_node *n 59 roff_term_pre(struct termp *p, const struct roff_node *n) in roff_term_pre() 81 const struct roff_node *nc1, *nc2; in roff_term_pre_ce()
|