/netbsd-src/external/bsd/mdocml/dist/ |
H A D | mdoc_markdown.c | 32 int (*cond)(struct roff_node *n); 33 int (*pre)(struct roff_node *n); 34 void (*post)(struct roff_node *n); 39 static void md_nodelist(struct roff_node *); 40 static void md_node(struct roff_node *); 49 static int md_cond_head(struct roff_node *); 50 static int md_cond_body(struct roff_node *); 52 static int md_pre_abort(struct roff_node *); 53 static int md_pre_raw(struct roff_node *); 54 static int md_pre_word(struct roff_node *); [all …]
|
H A D | roff_int.h | 22 struct roff_node; 38 struct roff_node *last; /* The last node parsed. */ 39 struct roff_node *last_es; /* The most recent Es node. */ 65 struct roff_node *roff_node_alloc(struct roff_man *, int, int, 67 void roff_node_append(struct roff_man *, struct roff_node *); 71 struct roff_node *roff_block_alloc(struct roff_man *, int, int, int); 72 struct roff_node *roff_head_alloc(struct roff_man *, int, int, int); 73 struct roff_node *roff_body_alloc(struct roff_man *, int, int, int); 74 void roff_node_unlink(struct roff_man *, struct roff_node *); 75 void roff_node_relink(struct roff_man *, struct roff_node *); [all …]
|
H A D | roff.h | 496 struct roff_node { struct 497 struct roff_node *parent; /* Parent AST node. */ argument 498 struct roff_node *child; /* First child AST node. */ argument 499 struct roff_node *last; /* Last child AST node. */ argument 500 struct roff_node *next; /* Sibling AST node. */ argument 501 struct roff_node *prev; /* Prior sibling AST node. */ argument 502 struct roff_node *head; /* BLOCK */ argument 503 struct roff_node *body; /* BLOCK/ENDBODY */ argument 504 struct roff_node *tail; /* BLOCK */ argument 533 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 | mdoc_validate.c | 57 struct roff_node *, struct mdoc_argv *); 58 static void check_args(struct roff_man *, struct roff_node *); 62 static int child_an(const struct roff_node *); 293 struct roff_node *n, *np; in mdoc_validate() 386 check_args(struct roff_man *mdoc, struct roff_node *n) in check_args() 399 check_argv(struct roff_man *mdoc, struct roff_node *n, struct mdoc_argv *v) in check_argv() 422 const struct roff_node *np, *nn; in check_text_em() 509 const struct roff_node *nch; in post_delim() 536 const struct roff_node *nch; in post_delim_nb() 629 struct roff_node *n; in post_bl_norm() [all …]
|
H A D | mdoc_macro.c | 50 int, int, struct roff_node *); 53 static void break_intermediate(struct roff_node *, 54 struct roff_node *); 59 static void rew_last(struct roff_man *, const struct roff_node *); 61 const struct roff_node *); 221 struct roff_node *n; in mdoc_endparse() 267 rew_last(struct roff_man *mdoc, const struct roff_node *to) in rew_last() 287 rew_pending(struct roff_man *mdoc, const struct roff_node *n) in rew_pending() 374 struct roff_node *n; in rew_elem() 385 break_intermediate(struct roff_node *n, struct roff_node *breaker) in break_intermediate() [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 | mandocdb.c | 110 const struct roff_node *); 139 const struct roff_node *); 141 const struct roff_node *); 143 const struct roff_node *); 145 const struct roff_node *); 147 const struct roff_node *); 148 static void parse_mdoc_fname(struct mpage *, const struct roff_node *); 150 const struct roff_node *); 152 const struct roff_node *); 154 const struct roff_node *); [all …]
|
H A D | html.h | 122 struct roff_node; 126 void roff_html_pre(struct html *, const struct roff_node *); 128 void print_gen_comment(struct html *, struct roff_node *); 143 char *html_make_id(const struct roff_node *, int);
|
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 | demandoc.c | 35 static void pman(const struct roff_node *, int *, int *, int); 37 static void pmdoc(const struct roff_node *, int *, int *, int); 235 pmdoc(const struct roff_node *p, int *line, int *col, int list) in pmdoc() 249 pman(const struct roff_node *p, int *line, int *col, int list) in pman()
|
H A D | man_macro.c | 93 man_unscope(struct roff_man *man, const struct roff_node *to) in man_unscope() 95 struct roff_node *n; in man_unscope() 160 struct roff_node *n; in rew_scope() 202 const struct roff_node *nn; in blk_close() 296 struct roff_node *head; in blk_exp() 341 struct roff_node *n; in blk_imp() 384 struct roff_node *n; in in_line_eoln()
|
H A D | man_html.c | 37 const struct roff_node *n, \ 49 static char list_continues(const struct roff_node *, 50 const struct roff_node *); 115 struct roff_node *n; in html_man() 345 const struct roff_node *nn; in man_alt_pre() 419 list_continues(const struct roff_node *n1, const struct roff_node *n2) in list_continues() 448 const struct roff_node *nn; in man_IP_pre()
|
H A D | libman.h | 19 struct roff_node; 42 void man_unscope(struct roff_man *, const struct roff_node *);
|
H A D | eqn_parse.h | 22 struct roff_node; 27 struct roff_node *node; /* Syntax tree of this equation. */
|
H A D | mdoc_state.c | 31 #define STATE_ARGS struct roff_man *mdoc, struct roff_node *n 164 mdoc_state(struct roff_man *mdoc, struct roff_node *n) in mdoc_state() 207 struct roff_node *nch; in state_sh()
|
H A D | tree.c | 37 static void print_man(const struct roff_node *, int); 39 static void print_mdoc(const struct roff_node *, int); 81 print_mdoc(const struct roff_node *n, int indent) in print_mdoc() 222 print_man(const struct roff_node *n, int indent) in print_man()
|
H A D | mdoc.h | 19 struct roff_node; 151 struct roff_node *Es;
|
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()
|
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 | man_validate.c | 40 #define CHKARGS struct roff_man *man, struct roff_node *n 106 struct roff_node *n; in man_validate() 249 struct roff_node *nc; in post_SH() 355 struct roff_node *nb; in post_TH() 496 struct roff_node *nn; in post_AT()
|
H A D | term.h | 41 struct roff_node; 129 void roff_term_pre(struct termp *, const struct roff_node *);
|
H A D | man_term.c | 48 struct roff_node *n, \ 65 const struct roff_node *, int); 149 struct roff_node *n; in terminal_man() 199 print_bvspace(struct termp *p, const struct roff_node *n, int pardist) in print_bvspace() 277 struct roff_node *nn; in pre_alternate() 403 const struct roff_node *nn; in pre_HP() 497 const struct roff_node *nn; in pre_IP() 570 struct roff_node *nn; in pre_TP() 814 const struct roff_node *nn; in pre_SY()
|
H A D | mdoc_term.c | 47 struct roff_node *n 57 const struct roff_node *, 58 const struct roff_node *); 64 const struct roff_node *); 256 struct roff_node *n; in terminal_mdoc() 579 const struct roff_node *bl, in print_bvspace() 580 const struct roff_node *n) in print_bvspace() 582 const struct roff_node *nn; in print_bvspace() 637 const struct roff_node *bl, *nn; in termp_it_pre() 1177 synopsis_pre(struct termp *p, const struct roff_node *n) in synopsis_pre() [all …]
|
/netbsd-src/usr.sbin/makemandb/ |
H A D | makemandb.c | 95 typedef void (*proff_nf)(const struct roff_node *n, mandb_rec *); 106 static void proff_node(const struct roff_node *, mandb_rec *, 108 static void pmdoc_Nm(const struct roff_node *, mandb_rec *); 109 static void pmdoc_Nd(const struct roff_node *, mandb_rec *); 110 static void pmdoc_Sh(const struct roff_node *, mandb_rec *); 111 static void mdoc_parse_Sh(const struct roff_node *, mandb_rec *); 112 static void pmdoc_Xr(const struct roff_node *, mandb_rec *); 113 static void pmdoc_Pp(const struct roff_node *, mandb_rec *); 114 static void pmdoc_macro_handler(const struct roff_node *, mandb_rec *, int); 115 static void pman_parse_node(const struct roff_node *, secbuff *); [all …]
|