Home
last modified time | relevance | path

Searched refs:roff_man (Results 1 – 19 of 19) sorted by relevance

/src/contrib/mandoc/
H A Droff_int.h32 struct roff_man { struct
67 struct roff_node *roff_node_alloc(struct roff_man *, int, int, argument
69 void roff_node_append(struct roff_man *, struct roff_node *);
70 void roff_word_alloc(struct roff_man *, int, int, const char *);
71 void roff_word_append(struct roff_man *, const char *);
72 void roff_elem_alloc(struct roff_man *, int, int, int);
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 *);
[all …]
H A Dlibmdoc.h20 struct roff_man;
23 #define MACRO_PROT_ARGS struct roff_man *mdoc, \
69 void mdoc_elem_alloc(struct roff_man *, int, int,
71 struct roff_node *mdoc_block_alloc(struct roff_man *, int, int,
73 void mdoc_tail_alloc(struct roff_man *, int, int,
75 struct roff_node *mdoc_endbody_alloc(struct roff_man *, int, int,
77 void mdoc_state(struct roff_man *, struct roff_node *);
83 void mdoc_argv(struct roff_man *, int, enum roff_tok,
85 enum margserr mdoc_args(struct roff_man *, int,
H A Dlibmandoc.h52 struct roff_man;
60 int mdoc_parseln(struct roff_man *, int, char *, int);
61 void mdoc_endparse(struct roff_man *);
63 int man_parseln(struct roff_man *, int, char *, int);
64 void man_endparse(struct roff_man *);
73 void roff_man_free(struct roff_man *);
74 struct roff_man *roff_man_alloc(struct roff *, const char *, int);
75 void roff_man_reset(struct roff_man *);
H A Dlibman.h20 struct roff_man;
22 #define MACRO_PROT_ARGS struct roff_man *man, \
41 void man_descope(struct roff_man *, int, int, char *);
42 void man_unscope(struct roff_man *, const struct roff_node *);
H A Dmdoc.c53 static int mdoc_ptext(struct roff_man *, int, char *, int);
54 static int mdoc_pmacro(struct roff_man *, int, char *, int);
62 mdoc_parseln(struct roff_man *mdoc, int ln, char *buf, int offs) in mdoc_parseln()
85 mdoc_tail_alloc(struct roff_man *mdoc, int line, int pos, enum roff_tok tok) in mdoc_tail_alloc()
95 mdoc_endbody_alloc(struct roff_man *mdoc, int line, int pos, in mdoc_endbody_alloc()
112 mdoc_block_alloc(struct roff_man *mdoc, int line, int pos, in mdoc_block_alloc()
139 mdoc_elem_alloc(struct roff_man *mdoc, int line, int pos, in mdoc_elem_alloc()
165 mdoc_ptext(struct roff_man *mdoc, int line, char *buf, int offs) in mdoc_ptext()
307 mdoc_pmacro(struct roff_man *mdoc, int ln, char *buf, int offs) in mdoc_pmacro()
H A Dman.c39 static int man_ptext(struct roff_man *, int, char *, int);
40 static int man_pmacro(struct roff_man *, int, char *, int);
44 man_parseln(struct roff_man *man, int ln, char *buf, int offs) in man_parseln()
77 man_descope(struct roff_man *man, int line, int offs, char *start) in man_descope()
103 man_ptext(struct roff_man *man, int line, char *buf, int offs) in man_ptext()
180 man_pmacro(struct roff_man *man, int ln, char *buf, int offs) in man_pmacro()
285 man_breakscope(struct roff_man *man, int tok) in man_breakscope()
H A Dman.h19 struct roff_man;
21 void man_validate(struct roff_man *);
H A Dmdoc_argv.c56 static enum margserr args(struct roff_man *, int, int *,
59 static void argv_multi(struct roff_man *, int,
61 static void argv_single(struct roff_man *, int,
277 mdoc_argv(struct roff_man *mdoc, int line, enum roff_tok tok, in mdoc_argv()
415 mdoc_args(struct roff_man *mdoc, int line, int *pos, in mdoc_args()
444 args(struct roff_man *mdoc, int line, int *pos, in args()
642 argv_multi(struct roff_man *mdoc, int line, in argv_multi()
666 argv_single(struct roff_man *mdoc, int line, in argv_single()
H A Dmdoc_macro.c49 static void append_delims(struct roff_man *, int, int *, char *);
50 static void dword(struct roff_man *, int, int, const char *,
52 static int find_pending(struct roff_man *, enum roff_tok,
54 static int lookup(struct roff_man *, int, int, int, const char *);
58 static int parse_rest(struct roff_man *, enum roff_tok,
61 static void rew_elem(struct roff_man *, enum roff_tok);
62 static void rew_last(struct roff_man *, const struct roff_node *);
63 static void rew_pending(struct roff_man *,
223 mdoc_endparse(struct roff_man *mdoc) in mdoc_endparse()
248 lookup(struct roff_man *mdoc, int from, int line, int ppos, const char *p) in lookup()
[all …]
H A Dman_macro.c43 static int man_args(struct roff_man *, int,
45 static void rew_scope(struct roff_man *, enum roff_tok);
97 man_unscope(struct roff_man *man, const struct roff_node *to) in man_unscope()
165 rew_scope(struct roff_man *man, enum roff_tok tok) in rew_scope()
461 man_endparse(struct roff_man *man) in man_endparse()
467 man_args(struct roff_man *man, int line, int *pos, char *buf, char **v) in man_args()
H A Dmdoc.h20 struct roff_man;
158 void mdoc_validate(struct roff_man *);
H A Droff_validate.c30 #define ROFF_VALID_ARGS struct roff_man *man, struct roff_node *n
57 roff_validate(struct roff_man *man) in roff_validate()
H A Dtag.c49 static void tag_move_href(struct roff_man *,
309 tag_move_href(struct roff_man *man, struct roff_node *n, const char *tag) in tag_move_href()
343 tag_postprocess(struct roff_man *man, struct roff_node *n) in tag_postprocess()
H A Dmdoc_state.c36 #define STATE_ARGS struct roff_man *mdoc, struct roff_node *n
171 mdoc_state(struct roff_man *mdoc, struct roff_node *n) in mdoc_state()
H A Dtag.h34 void tag_postprocess(struct roff_man *, struct roff_node *);
H A Droff.c103 struct roff_man *man; /* mdoc or man parser */
176 static void roff_addtbl(struct roff_man *, int, struct tbl_node *);
219 static void roff_man_alloc1(struct roff_man *);
220 static void roff_man_free1(struct roff_man *);
812 roff_man_free1(struct roff_man *man) in roff_man_free1()
827 roff_state_reset(struct roff_man *man) in roff_state_reset()
838 roff_man_alloc1(struct roff_man *man) in roff_man_alloc1()
848 roff_man_reset(struct roff_man *man) in roff_man_reset()
855 roff_man_free(struct roff_man *man) in roff_man_free()
862 struct roff_man *
[all …]
H A Dmdoc_validate.c48 #define POST_ARGS struct roff_man *mdoc
58 static int build_list(struct roff_man *, int);
59 static void check_argv(struct roff_man *,
61 static void check_args(struct roff_man *, struct roff_node *);
62 static void check_text(struct roff_man *, int, int, char *);
63 static void check_text_em(struct roff_man *, int, int, char *);
64 static void check_toptext(struct roff_man *, int, int, const char *);
67 static void rewrite_macro2len(struct roff_man *, char **);
302 mdoc_validate(struct roff_man *mdoc) in mdoc_validate()
397 check_args(struct roff_man *mdoc, struct roff_node *n) in check_args()
[all …]
H A Dman_validate.c44 #define CHKARGS struct roff_man *man, struct roff_node *n
111 man_validate(struct roff_man *man) in man_validate()
H A Dread.c56 struct roff_man *man; /* man parser */