aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libmandoc.h
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-07-28 14:17:11 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-07-28 14:17:11 +0000
commit005bcc6b1d086c580bddac2fb6d976b3388902be (patch)
tree67613d40079cd746f01ff372fed13ffefd83cfe4 /libmandoc.h
parent596c0de84c5a8a499213ec024d61c49876b11167 (diff)
downloadmandoc-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.h3
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 *,