From ad65fd82badffccc03d23a670fcca78d0441df6b Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Tue, 12 Jul 2011 21:32:43 +0000 Subject: Have equation be allocated with mparse. Will be needed for logging of messages. --- eqn.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'eqn.c') diff --git a/eqn.c b/eqn.c index 897b45e9..2df45969 100644 --- a/eqn.c +++ b/eqn.c @@ -53,11 +53,13 @@ eqn_read(struct eqn_node **epp, int ln, const char *p, int offs) } struct eqn_node * -eqn_alloc(int pos, int line) +eqn_alloc(int pos, int line, struct mparse *parse) { struct eqn_node *p; p = mandoc_calloc(1, sizeof(struct eqn_node)); + p->parse = parse; + p->eqn.line = line; p->eqn.pos = pos; -- cgit