=================================================================== RCS file: /cvs/mandoc/eqn.c,v retrieving revision 1.3 retrieving revision 1.5 diff -u -p -r1.3 -r1.5 --- mandoc/eqn.c 2011/03/15 16:23:51 1.3 +++ mandoc/eqn.c 2011/07/12 21:32:43 1.5 @@ -1,4 +1,4 @@ -/* $Id: eqn.c,v 1.3 2011/03/15 16:23:51 kristaps Exp $ */ +/* $Id: eqn.c,v 1.5 2011/07/12 21:32:43 kristaps Exp $ */ /* * Copyright (c) 2011 Kristaps Dzonsons * @@ -25,7 +25,6 @@ #include #include "mandoc.h" -#include "roff.h" #include "libmandoc.h" #include "libroff.h" @@ -54,11 +53,13 @@ eqn_read(struct eqn_node **epp, int ln, const char *p, } 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;