From 005bcc6b1d086c580bddac2fb6d976b3388902be Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Thu, 28 Jul 2011 14:17:11 +0000 Subject: 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. --- libmandoc.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libmandoc.h') 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 * @@ -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 *, -- cgit v1.2.3