Home
last modified time | relevance | path

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

/netbsd-src/external/bsd/mdocml/dist/
H A Droff_int.h32 struct roff_man { struct
65 struct roff_node *roff_node_alloc(struct roff_man *, int, int, argument
67 void roff_node_append(struct roff_man *, struct roff_node *);
68 void roff_word_alloc(struct roff_man *, int, int, const char *);
69 void roff_word_append(struct roff_man *, const char *);
70 void roff_elem_alloc(struct roff_man *, int, int, int);
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 *);
[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.h49 struct roff_man;
52 char *mandoc_normdate(struct roff_man *, char *, int, int);
57 int mdoc_parseln(struct roff_man *, int, char *, int);
58 void mdoc_endparse(struct roff_man *);
60 int man_parseln(struct roff_man *, int, char *, int);
61 void man_endparse(struct roff_man *);
70 void roff_man_free(struct roff_man *);
71 struct roff_man *roff_man_alloc(struct roff *, const char *, int);
72 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.c51 static int mdoc_ptext(struct roff_man *, int, char *, int);
52 static int mdoc_pmacro(struct roff_man *, int, char *, int);
60 mdoc_parseln(struct roff_man *mdoc, int ln, char *buf, int offs) in mdoc_parseln()
83 mdoc_tail_alloc(struct roff_man *mdoc, int line, int pos, enum roff_tok tok) in mdoc_tail_alloc()
93 mdoc_endbody_alloc(struct roff_man *mdoc, int line, int pos, in mdoc_endbody_alloc()
110 mdoc_block_alloc(struct roff_man *mdoc, int line, int pos, in mdoc_block_alloc()
137 mdoc_elem_alloc(struct roff_man *mdoc, int line, int pos, in mdoc_elem_alloc()
163 mdoc_ptext(struct roff_man *mdoc, int line, char *buf, int offs) in mdoc_ptext()
305 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 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()
641 argv_multi(struct roff_man *mdoc, int line, in argv_multi()
665 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,
51 static int lookup(struct roff_man *, int, int, int, const char *);
55 static int parse_rest(struct roff_man *, enum roff_tok,
58 static void rew_elem(struct roff_man *, enum roff_tok);
59 static void rew_last(struct roff_man *, const struct roff_node *);
60 static void rew_pending(struct roff_man *,
219 mdoc_endparse(struct roff_man *mdoc) in mdoc_endparse()
244 lookup(struct roff_man *mdoc, int from, int line, int ppos, const char *p) in lookup()
[all …]
H A Dman.h19 struct roff_man;
21 void man_validate(struct roff_man *);
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()
158 rew_scope(struct roff_man *man, enum roff_tok tok) in rew_scope()
449 man_endparse(struct roff_man *man) in man_endparse()
455 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.c28 #define ROFF_VALID_ARGS struct roff_man *man, struct roff_node *n
55 roff_validate(struct roff_man *man) in roff_validate()
H A Droff.c109 struct roff_man *man; /* mdoc or man parser */
179 static void roff_addtbl(struct roff_man *, int, struct tbl_node *);
220 static void roff_man_alloc1(struct roff_man *);
221 static void roff_man_free1(struct roff_man *);
810 roff_man_free1(struct roff_man *man) in roff_man_free1()
825 roff_state_reset(struct roff_man *man) in roff_state_reset()
836 roff_man_alloc1(struct roff_man *man) in roff_man_alloc1()
846 roff_man_reset(struct roff_man *man) in roff_man_reset()
853 roff_man_free(struct roff_man *man) in roff_man_free()
859 struct roff_man *
[all …]
H A Dmdoc_state.c31 #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()
H A Dmdoc_validate.c45 #define POST_ARGS struct roff_man *mdoc
55 static int build_list(struct roff_man *, int);
56 static void check_argv(struct roff_man *,
58 static void check_args(struct roff_man *, struct roff_node *);
59 static void check_text(struct roff_man *, int, int, char *);
60 static void check_text_em(struct roff_man *, int, int, char *);
61 static void check_toptext(struct roff_man *, int, int, const char *);
64 static void rewrite_macro2len(struct roff_man *, char **);
291 mdoc_validate(struct roff_man *mdoc) in mdoc_validate()
386 check_args(struct roff_man *mdoc, struct roff_node *n) in check_args()
[all …]
H A Dman_validate.c40 #define CHKARGS struct roff_man *man, struct roff_node *n
104 man_validate(struct roff_man *man) in man_validate()
H A Dmandoc.c537 mandoc_normdate(struct roff_man *man, char *in, int ln, int pos) in mandoc_normdate()
H A Dread.c49 struct roff_man *man; /* man parser */