aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/eqn.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-02-09 09:05:52 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-02-09 09:05:52 +0000
commit7e1515051811beb532cd49dfdf82f778dde90e81 (patch)
tree167361db4dfd08c4d04082b1b45294ae5c0146b3 /eqn.c
parentc4585f51e1879dba09462098517aec738f246342 (diff)
downloadmandoc-7e1515051811beb532cd49dfdf82f778dde90e81.tar.gz
mandoc-7e1515051811beb532cd49dfdf82f778dde90e81.tar.zst
mandoc-7e1515051811beb532cd49dfdf82f778dde90e81.zip
Allow EQN data to be pushed down into libmdoc via mdoc_addeqn(). Only
the adding itself is implemented; equation data is not yet shown.
Diffstat (limited to 'eqn.c')
-rw-r--r--eqn.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/eqn.c b/eqn.c
index 64511a8b..3e668563 100644
--- a/eqn.c
+++ b/eqn.c
@@ -1,4 +1,4 @@
-/* $Id: eqn.c,v 1.1 2011/02/06 20:36:36 kristaps Exp $ */
+/* $Id: eqn.c,v 1.2 2011/02/09 09:05:52 kristaps Exp $ */
/*
* Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -59,8 +59,8 @@ eqn_alloc(int pos, int line)
struct eqn_node *p;
p = mandoc_calloc(1, sizeof(struct eqn_node));
- p->line = line;
- p->pos = pos;
+ p->eqn.line = line;
+ p->eqn.pos = pos;
return(p);
}