Home
last modified time | relevance | path

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

/dragonfly/contrib/mdocml/
H A Droff_int.h32 struct roff_man { struct
66 struct roff_node *roff_node_alloc(struct roff_man *, int, int, argument
68 void roff_node_append(struct roff_man *, struct roff_node *);
70 void roff_word_append(struct roff_man *, const char *);
71 void roff_elem_alloc(struct roff_man *, int, int, int);
75 void roff_node_unlink(struct roff_man *, struct roff_node *);
76 void roff_node_relink(struct roff_man *, struct roff_node *);
78 void roff_node_delete(struct roff_man *, struct roff_node *);
84 void roff_state_reset(struct roff_man *);
85 void roff_validate(struct roff_man *);
[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()
74 man_descope(struct roff_man *man, int line, int offs, char *start) in man_descope()
101 man_ptext(struct roff_man *man, int line, char *buf, int offs) in man_ptext()
177 man_pmacro(struct roff_man *man, int ln, char *buf, int offs) in man_pmacro()
278 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.c46 static void append_delims(struct roff_man *, int, int *, char *);
47 static void dword(struct roff_man *, int, int, const char *,
49 static int find_pending(struct roff_man *, enum roff_tok,
55 static int parse_rest(struct roff_man *, enum roff_tok,
58 static void rew_elem(struct roff_man *, enum roff_tok);
60 static void rew_pending(struct roff_man *,
220 mdoc_endparse(struct roff_man *mdoc) in mdoc_endparse()
268 rew_last(struct roff_man *mdoc, const struct roff_node *to) in rew_last()
288 rew_pending(struct roff_man *mdoc, const struct roff_node *n) in rew_pending()
373 rew_elem(struct roff_man *mdoc, enum roff_tok tok) in rew_elem()
[all …]
H A Dman_macro.c40 static int man_args(struct roff_man *, int,
42 static void rew_scope(struct roff_man *, enum roff_tok);
93 man_unscope(struct roff_man *man, const struct roff_node *to) in man_unscope()
160 rew_scope(struct roff_man *man, enum roff_tok tok) in rew_scope()
451 man_endparse(struct roff_man *man) in man_endparse()
457 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 Dtag.c46 static void tag_move_href(struct roff_man *,
263 tag_move_href(struct roff_man *man, struct roff_node *n, const char *tag) in tag_move_href()
297 tag_postprocess(struct roff_man *man, struct roff_node *n) in tag_postprocess()
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 Dmdoc_state.c33 #define STATE_ARGS struct roff_man *mdoc, struct roff_node *n
167 mdoc_state(struct roff_man *mdoc, struct roff_node *n) in mdoc_state()
H A Droff.c111 struct roff_man *man; /* mdoc or man parser */
227 static void roff_man_alloc1(struct roff_man *);
228 static void roff_man_free1(struct roff_man *);
818 roff_man_free1(struct roff_man *man) in roff_man_free1()
833 roff_state_reset(struct roff_man *man) in roff_state_reset()
844 roff_man_alloc1(struct roff_man *man) in roff_man_alloc1()
854 roff_man_reset(struct roff_man *man) in roff_man_reset()
861 roff_man_free(struct roff_man *man) in roff_man_free()
867 struct roff_man *
870 struct roff_man *man; in roff_man_alloc()
[all …]
H A Dtag.h34 void tag_postprocess(struct roff_man *, struct roff_node *);
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 *);
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()
419 check_text(struct roff_man *mdoc, int ln, int pos, char *p) in check_text()
928 build_list(struct roff_man *mdoc, int tok) in build_list()
[all …]
H A Dman_validate.c43 #define CHKARGS struct roff_man *man, struct roff_node *n
109 man_validate(struct roff_man *man) in man_validate()
H A Dread.c56 struct roff_man *man; /* man parser */