Lines Matching refs:roff
102 struct roff { struct
144 #define ROFF_ARGS struct roff *r, /* parse ctx */ \ argument
172 static int roffnode_cleanscope(struct roff *);
173 static int roffnode_pop(struct roff *);
174 static void roffnode_push(struct roff *, enum roff_tok,
184 static int roff_ccond(struct roff *, int, int);
193 static int roff_eqndelim(struct roff *, struct buf *, int);
194 static int roff_evalcond(struct roff *, int, char *, int *);
198 static int roff_expand(struct roff *, struct buf *,
202 static void roff_free1(struct roff *);
208 static int roff_getregn(struct roff *,
210 static int roff_getregro(const struct roff *,
212 static const char *roff_getstrn(struct roff *,
214 static int roff_hasregn(const struct roff *,
227 static enum roff_tok roff_parse(struct roff *, char *, int *,
229 static int roff_parse_comment(struct roff *, struct buf *,
231 static int roff_parsetext(struct roff *, struct buf *,
239 static void roff_setregn(struct roff *, const char *,
241 static void roff_setstr(struct roff *,
692 roffnode_pop(struct roff *r) in roffnode_pop()
711 roffnode_push(struct roff *r, enum roff_tok tok, const char *name, in roffnode_push()
731 roff_free1(struct roff *r) in roff_free1()
768 roff_reset(struct roff *r) in roff_reset()
782 roff_free(struct roff *r) in roff_free()
794 struct roff *
797 struct roff *r; in roff_alloc()
799 r = mandoc_calloc(1, sizeof(struct roff)); in roff_alloc()
834 roff_setreg(man->roff, "nS", 0, '='); in roff_state_reset()
863 roff_man_alloc(struct roff *roff, const char *os_s, int quick) in roff_man_alloc() argument
868 man->roff = roff; in roff_man_alloc()
872 roff->man = man; in roff_man_alloc()
966 n->string = roff_strdup(man->roff, word); in roff_word_alloc()
979 addstr = roff_strdup(man->roff, word); in roff_word_append()
1234 roff_parse_comment(struct roff *r, struct buf *buf, int ln, int pos, char ec) in roff_parse_comment()
1354 roff_expand(struct roff *r, struct buf *buf, int ln, int pos, char ec) in roff_expand()
1621 roff_getarg(struct roff *r, char **cpp, int ln, int *pos) in roff_getarg()
1727 roff_parsetext(struct roff *r, struct buf *buf, int pos, int *offs) in roff_parsetext()
1793 roff_parseln(struct roff *r, int ln, struct buf *buf, int *offs, size_t len) in roff_parseln()
1946 roff_userret(struct roff *r) in roff_userret()
1960 roff_endparse(struct roff *r) in roff_endparse()
1986 roff_parse(struct roff *r, char *buf, int *pos, int ln, int ppos) in roff_parse()
2081 roffnode_cleanscope(struct roff *r) in roffnode_cleanscope()
2100 roff_ccond(struct roff *r, int ln, int ppos) in roff_ccond()
2551 roff_evalcond(struct roff *r, int ln, char *v, int *pos) in roff_evalcond()
3007 roff_setreg(struct roff *r, const char *name, int val, char sign) in roff_setreg()
3013 roff_setregn(struct roff *r, const char *name, size_t len, in roff_setregn()
3053 roff_getregro(const struct roff *r, const char *name) in roff_getregro()
3079 roff_getreg(struct roff *r, const char *name) in roff_getreg()
3085 roff_getregn(struct roff *r, const char *name, size_t len, char sign) in roff_getregn()
3118 roff_hasregn(const struct roff *r, const char *name, size_t len) in roff_hasregn()
3328 roff_eqndelim(struct roff *r, struct buf *buf, int pos) in roff_eqndelim()
4103 roff_setstr(struct roff *r, const char *name, const char *string, in roff_setstr()
4187 roff_getstrn(struct roff *r, const char *name, size_t len, in roff_getstrn()
4301 roff_strdup(const struct roff *r, const char *p) in roff_strdup()
4389 roff_getformat(const struct roff *r) in roff_getformat()
4406 roff_getcontrol(const struct roff *r, const char *cp, int *ppos) in roff_getcontrol()