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 | 005bcc6b1d086c580bddac2fb6d976b3388902be (patch) | |
tree | 67613d40079cd746f01ff372fed13ffefd83cfe4 /libmandoc.h | |
parent | 596c0de84c5a8a499213ec024d61c49876b11167 (diff) | |
download | mandoc-005bcc6b1d086c580bddac2fb6d976b3388902be.tar.gz mandoc-005bcc6b1d086c580bddac2fb6d976b3388902be.tar.zst mandoc-005bcc6b1d086c580bddac2fb6d976b3388902be.zip |
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 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libmandoc.h b/libmandoc.h index 8ade3a15..bedf0497 100644 --- a/libmandoc.h +++ b/libmandoc.h @@ -1,4 +1,4 @@ -/* $Id: libmandoc.h,v 1.27 2011/07/27 12:41:02 kristaps Exp $ */ +/* $Id: libmandoc.h,v 1.28 2011/07/28 14:17:11 kristaps Exp $ */ /* * Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -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 *, |