diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2018-12-13 05:23:37 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2018-12-13 05:23:37 +0000 |
commit | 5d4d2785b08ebc101f0eb519b9a0480a9c6f4b08 (patch) | |
tree | 15f9648cba61edda780139b44de9745a3fa812fa /roff.c | |
parent | b705aa5d322006a519c498654b59f3b1ba185233 (diff) | |
download | mandoc-5d4d2785b08ebc101f0eb519b9a0480a9c6f4b08.tar.gz |
Cleanup, no functional change:
No need to expose the eqn(7) syntax tree data structures everywhere.
Move them to their own include file, "eqn.h".
While here, delete the unused enum eqn_pilet.
Diffstat (limited to 'roff.c')
-rw-r--r-- | roff.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -3153,8 +3153,7 @@ roff_EQ(ROFF_ARGS) n = roff_node_alloc(r->man, ln, ppos, ROFFT_EQN, TOKEN_NONE); if (ln > r->man->last->line) n->flags |= NODE_LINE; - n->eqn = mandoc_calloc(1, sizeof(*n->eqn)); - n->eqn->expectargs = UINT_MAX; + n->eqn = eqn_box_new(); roff_node_append(r->man, n); r->man->next = ROFF_NEXT_SIBLING; |