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 | 512ce49526822961cde1cef8b80236afa5ddb4dc (patch) | |
tree | e2a635960dc9d24cf482ad4de15972ec33abfff4 /eqn.c | |
parent | f23f76a0eac229ba8c7c6bdbd9e0f474b32251d2 (diff) | |
download | mandoc-512ce49526822961cde1cef8b80236afa5ddb4dc.tar.gz mandoc-512ce49526822961cde1cef8b80236afa5ddb4dc.tar.zst mandoc-512ce49526822961cde1cef8b80236afa5ddb4dc.zip |
Have equation be allocated with mparse. Will be needed for logging of
messages.
Diffstat (limited to 'eqn.c')
-rw-r--r-- | eqn.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: eqn.c,v 1.4 2011/03/22 09:48:13 kristaps Exp $ */ +/* $Id: eqn.c,v 1.5 2011/07/12 21:32:43 kristaps Exp $ */ /* * Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -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; |