Lines Matching refs:roff
110 struct roff { struct
152 #define ROFF_ARGS struct roff *r, /* parse ctx */ \ argument
180 static int roffnode_cleanscope(struct roff *);
181 static int roffnode_pop(struct roff *);
182 static void roffnode_push(struct roff *, enum roff_tok,
192 static int roff_ccond(struct roff *, int, int);
201 static int roff_eqndelim(struct roff *, struct buf *, int);
202 static int roff_evalcond(struct roff *, int, char *, int *);
203 static int roff_evalnum(struct roff *, int,
205 static int roff_evalpar(struct roff *, int,
208 static int roff_expand(struct roff *, struct buf *,
210 static void roff_free1(struct roff *);
213 static size_t roff_getname(struct roff *, char **, int, int);
216 static int roff_getregn(struct roff *,
218 static int roff_getregro(const struct roff *,
220 static const char *roff_getstrn(struct roff *,
222 static int roff_hasregn(const struct roff *,
234 static enum roff_tok roff_parse(struct roff *, char *, int *,
236 static int roff_parsetext(struct roff *, struct buf *,
243 static void roff_setregn(struct roff *, const char *,
245 static void roff_setstr(struct roff *,
698 roffnode_pop(struct roff *r) in roffnode_pop()
717 roffnode_push(struct roff *r, enum roff_tok tok, const char *name, in roffnode_push()
737 roff_free1(struct roff *r) in roff_free1()
774 roff_reset(struct roff *r) in roff_reset()
788 roff_free(struct roff *r) in roff_free()
800 struct roff *
803 struct roff *r; in roff_alloc()
805 r = mandoc_calloc(1, sizeof(struct roff)); in roff_alloc()
840 roff_setreg(man->roff, "nS", 0, '='); in roff_state_reset()
868 roff_man_alloc(struct roff *roff, const char *os_s, int quick) in roff_man_alloc() argument
873 man->roff = roff; in roff_man_alloc()
877 roff->man = man; in roff_man_alloc()
971 n->string = roff_strdup(man->roff, word); in roff_word_alloc()
984 addstr = roff_strdup(man->roff, word); in roff_word_append()
1237 roff_expand(struct roff *r, struct buf *buf, int ln, int pos, char newesc) in roff_expand()
1654 roff_getarg(struct roff *r, char **cpp, int ln, int *pos) in roff_getarg()
1760 roff_parsetext(struct roff *r, struct buf *buf, int pos, int *offs) in roff_parsetext()
1826 roff_parseln(struct roff *r, int ln, struct buf *buf, int *offs, size_t len) in roff_parseln()
1967 roff_userret(struct roff *r) in roff_userret()
1981 roff_endparse(struct roff *r) in roff_endparse()
2005 roff_parse(struct roff *r, char *buf, int *pos, int ln, int ppos) in roff_parse()
2100 roffnode_cleanscope(struct roff *r) in roffnode_cleanscope()
2119 roff_ccond(struct roff *r, int ln, int ppos) in roff_ccond()
2579 roff_evalcond(struct roff *r, int ln, char *v, int *pos) in roff_evalcond()
2895 roff_evalpar(struct roff *r, int ln, in roff_evalpar()
2925 roff_evalnum(struct roff *r, int ln, const char *v, in roff_evalnum()
3035 roff_setreg(struct roff *r, const char *name, int val, char sign) in roff_setreg()
3041 roff_setregn(struct roff *r, const char *name, size_t len, in roff_setregn()
3081 roff_getregro(const struct roff *r, const char *name) in roff_getregro()
3105 roff_getreg(struct roff *r, const char *name) in roff_getreg()
3111 roff_getregn(struct roff *r, const char *name, size_t len, char sign) in roff_getregn()
3144 roff_hasregn(const struct roff *r, const char *name, size_t len) in roff_hasregn()
3354 roff_eqndelim(struct roff *r, struct buf *buf, int pos) in roff_eqndelim()
4017 roff_getname(struct roff *r, char **cpp, int ln, int pos) in roff_getname()
4065 roff_setstr(struct roff *r, const char *name, const char *string, in roff_setstr()
4149 roff_getstrn(struct roff *r, const char *name, size_t len, in roff_getstrn()
4263 roff_strdup(const struct roff *r, const char *p) in roff_strdup()
4351 roff_getformat(const struct roff *r) in roff_getformat()
4368 roff_getcontrol(const struct roff *r, const char *cp, int *ppos) in roff_getcontrol()