diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-07-12 21:32:43 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-07-12 21:32:43 +0000 |
commit | ad65fd82badffccc03d23a670fcca78d0441df6b (patch) | |
tree | 92d5d58aea25095d80479f13c1cc68ceaf7db1a2 /eqn.c | |
parent | bd3c130d880c877042ee0fe8305c8375f61af3f8 (diff) | |
download | mandoc-ad65fd82badffccc03d23a670fcca78d0441df6b.tar.gz |
Have equation be allocated with mparse. Will be needed for logging of
messages.
Diffstat (limited to 'eqn.c')
-rw-r--r-- | eqn.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; |