From 499b7cc2df175e8f1cd3a0a7db00455e691d03de Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Mon, 25 Jul 2011 15:37:00 +0000 Subject: Implement the first steps of equation parsing from within libmdoc. This consists of a shim around the text parser that calls out to libroff if equation components exist on the line. Right now this will do nothing, as the equation delimiter always returns nil. --- libmandoc.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'libmandoc.h') diff --git a/libmandoc.h b/libmandoc.h index ad3ed254..1515633a 100644 --- a/libmandoc.h +++ b/libmandoc.h @@ -1,4 +1,4 @@ -/* $Id: libmandoc.h,v 1.24 2011/07/21 15:21:13 kristaps Exp $ */ +/* $Id: libmandoc.h,v 1.25 2011/07/25 15:37:00 kristaps Exp $ */ /* * Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons * @@ -76,6 +76,10 @@ 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_eqndelim(const struct roff *); +void roff_openeqn(struct roff *, const char *, + int, int, const char *); +int roff_closeeqn(struct roff *); const struct tbl_span *roff_span(const struct roff *); const struct eqn *roff_eqn(const struct roff *); -- cgit v1.2.3-56-ge451