From 91ab27befd54e154790aa66b308e8be09659b580 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Sun, 6 Feb 2011 20:36:36 +0000 Subject: Add initial EQN support to mandoc. This parses, then throws away, data between EQ and EN roff blocks. EQN is different from TBL in that data after .EQ is unilaterally considered an equation until an .EN. Thus, there's no need to jump through hoops in having table spans and so on. This is ONLY the parse code framework in libroff. EQN is not yet passed into the backends. --- mandoc.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'mandoc.h') diff --git a/mandoc.h b/mandoc.h index acef6815..746b20d6 100644 --- a/mandoc.h +++ b/mandoc.h @@ -1,4 +1,4 @@ -/* $Id: mandoc.h,v 1.54 2011/02/02 21:40:45 kristaps Exp $ */ +/* $Id: mandoc.h,v 1.55 2011/02/06 20:36:36 kristaps Exp $ */ /* * Copyright (c) 2010, 2011 Kristaps Dzonsons * @@ -267,6 +267,11 @@ struct tbl_span { struct tbl_span *next; }; +struct eqn { + size_t sz; + char *data; +}; + /* * Available registers (set in libroff, accessed elsewhere). */ -- cgit v1.2.3