Home
last modified time | relevance | path

Searched refs:termp (Results 1 – 8 of 8) sorted by relevance

/titanic_44/usr/src/cmd/mandoc/
H A Dterm.h23 struct termp;
47 typedef void (*term_margin)(struct termp *, const void *);
54 struct termp { struct
92 void (*letter)(struct termp *, int); argument
93 void (*begin)(struct termp *); argument
94 void (*end)(struct termp *); argument
95 void (*endline)(struct termp *); argument
96 void (*advance)(struct termp *, size_t); argument
97 size_t (*width)(const struct termp *, int); argument
98 double (*hspan)(const struct termp *, argument
[all …]
H A Dterm_ascii.c51 static struct termp *ascii_init(enum termenc, char *);
52 static double ascii_hspan(const struct termp *,
54 static size_t ascii_width(const struct termp *, int);
55 static void ascii_advance(struct termp *, size_t);
56 static void ascii_begin(struct termp *);
57 static void ascii_end(struct termp *);
58 static void ascii_endline(struct termp *);
59 static void ascii_letter(struct termp *, int);
62 static void locale_advance(struct termp *, size_t);
63 static void locale_endline(struct termp *);
[all …]
H A Dterm_ps.c87 static double ps_hspan(const struct termp *,
89 static size_t ps_width(const struct termp *, int);
90 static void ps_advance(struct termp *, size_t);
91 static void ps_begin(struct termp *);
92 static void ps_closepage(struct termp *);
93 static void ps_end(struct termp *);
94 static void ps_endline(struct termp *);
95 static void ps_fclose(struct termp *);
96 static void ps_growbuf(struct termp *, size_t);
97 static void ps_letter(struct termp *, int);
[all …]
H A Dterm.c36 static size_t cond_width(const struct termp *, int, int *);
37 static void adjbuf(struct termp *p, size_t);
38 static void bufferc(struct termp *, char);
39 static void encode(struct termp *, const char *, size_t);
40 static void encode1(struct termp *, int);
43 term_free(struct termp *p) in term_free()
56 term_begin(struct termp *p, term_margin head, in term_begin()
68 term_end(struct termp *p) in term_end()
105 term_flushln(struct termp *p) in term_flushln()
311 term_newln(struct termp *p) in term_newln()
[all …]
H A Dtbl_term.c33 static void tbl_char(struct termp *, char, size_t);
34 static void tbl_data(struct termp *, const struct tbl_opts *,
37 static size_t tbl_rulewidth(struct termp *, const struct tbl_head *);
38 static void tbl_hframe(struct termp *, const struct tbl_span *, int);
39 static void tbl_literal(struct termp *, const struct tbl_dat *,
41 static void tbl_number(struct termp *, const struct tbl_opts *,
44 static void tbl_hrule(struct termp *, const struct tbl_span *);
45 static void tbl_vrule(struct termp *, const struct tbl_head *);
52 return(term_strlen((const struct termp *)arg, p)); in term_tbl_strlen()
59 return(term_len((const struct termp *)arg, sz)); in term_tbl_len()
[all …]
H A Deqn_term.c38 static void eqn_box(struct termp *, const struct eqn_box *);
41 term_eqn(struct termp *p, const struct eqn *ep) in term_eqn()
51 eqn_box(struct termp *p, const struct eqn_box *bp) in eqn_box()
H A Dman_term.c48 #define DECL_ARGS struct termp *p, \
60 static int a2width(const struct termp *, const char *);
61 static size_t a2height(const struct termp *, const char *);
65 static void print_man_head(struct termp *, const void *);
66 static void print_man_foot(struct termp *, const void *);
67 static void print_bvspace(struct termp *,
143 struct termp *p; in terminal_man()
148 p = (struct termp *)arg; in terminal_man()
180 a2height(const struct termp *p, const char *cp) in a2height()
192 a2width(const struct termp *p, const char *cp) in a2width()
[all …]
H A Dmdoc_term.c43 #define DECL_ARGS struct termp *p, \
53 static size_t a2width(const struct termp *, const char *);
54 static size_t a2height(const struct termp *, const char *);
55 static size_t a2offs(const struct termp *, const char *);
57 static void print_bvspace(struct termp *,
62 static void print_mdoc_head(struct termp *, const void *);
63 static void print_mdoc_foot(struct termp *, const void *);
64 static void synopsis_pre(struct termp *,
255 struct termp *p; in terminal_mdoc()
257 p = (struct termp *)arg; in terminal_mdoc()
[all …]