diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-07-28 14:17:11 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-07-28 14:17:11 +0000 |
commit | 15696d5c38136940b4cfd2a42f1cc5a6760472cb (patch) | |
tree | 92c15c2969443a6e8a3f4864cc0916a5f5f66a24 /libmandoc.h | |
parent | 03a134b6041e592a5b647372a29677cbeb0a86fc (diff) | |
download | mandoc-15696d5c38136940b4cfd2a42f1cc5a6760472cb.tar.gz |
An implementation of `tr'. This routes allocations of TEXT nodes
through libroff, which does the appropriate translations of `tr'. This
is SLOW: it uses the backend of `ds' and `de', which is a simple linear
list. However, unlike `ds' and `de', it iterates over EACH CHARACTER of
the entire file looking for replacements.
Diffstat (limited to 'libmandoc.h')
-rw-r--r-- | libmandoc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libmandoc.h b/libmandoc.h index a3da4afb..7a123f0e 100644 --- a/libmandoc.h +++ b/libmandoc.h @@ -75,6 +75,7 @@ void roff_endparse(struct roff *); int roff_regisset(const struct roff *, enum regs); unsigned int roff_regget(const struct roff *, enum regs); void roff_regunset(struct roff *, enum regs); +char *roff_strdup(const struct roff *, const char *); #if 0 char roff_eqndelim(const struct roff *); void roff_openeqn(struct roff *, const char *, |