diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-07-25 15:37:00 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-07-25 15:37:00 +0000 |
commit | 499b7cc2df175e8f1cd3a0a7db00455e691d03de (patch) | |
tree | 356638e94fe0111d12f3ef9b7f7b8f40bbc92cdb /libmandoc.h | |
parent | a36c339dbe615061842578e7f9191193481618c1 (diff) | |
download | mandoc-499b7cc2df175e8f1cd3a0a7db00455e691d03de.tar.gz mandoc-499b7cc2df175e8f1cd3a0a7db00455e691d03de.tar.zst mandoc-499b7cc2df175e8f1cd3a0a7db00455e691d03de.zip |
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.
Diffstat (limited to 'libmandoc.h')
-rw-r--r-- | libmandoc.h | 6 |
1 files changed, 5 insertions, 1 deletions
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 <kristaps@bsd.lv> * @@ -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 *); |