From a6350ffc4df7591ae5b3aa44a9d9933ceab23414 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Thu, 9 Oct 2014 15:21:47 +0000 Subject: parse simultaneous sub- and superscripts and make the eqn_box list doubly linked; written by kristaps@ during EuroBSDCon --- usr.bin/mandoc/mandoc.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'usr.bin/mandoc/mandoc.h') diff --git a/usr.bin/mandoc/mandoc.h b/usr.bin/mandoc/mandoc.h index 9a139ffe36f..c1c873dfba3 100644 --- a/usr.bin/mandoc/mandoc.h +++ b/usr.bin/mandoc/mandoc.h @@ -1,4 +1,4 @@ -/* $OpenBSD: mandoc.h,v 1.100 2014/09/12 00:53:21 schwarze Exp $ */ +/* $OpenBSD: mandoc.h,v 1.101 2014/10/09 15:21:46 schwarze Exp $ */ /* * Copyright (c) 2010, 2011 Kristaps Dzonsons * Copyright (c) 2010-2014 Ingo Schwarze @@ -336,6 +336,7 @@ enum eqn_post { EQNPOS_NONE = 0, EQNPOS_OVER, EQNPOS_SUP, + EQNPOS_SUBSUP, EQNPOS_SUB, EQNPOS_TO, EQNPOS_FROM, @@ -366,6 +367,7 @@ struct eqn_box { struct eqn_box *first; /* first child node */ struct eqn_box *last; /* last child node */ struct eqn_box *next; /* node sibling */ + struct eqn_box *prev; /* node sibling */ struct eqn_box *parent; /* node sibling */ char *text; /* text (or NULL) */ char *left; -- cgit v1.2.3