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 | 32c0933851c645dfc5d1af1bda32e80c9f237254 (patch) | |
tree | fab2cd59317b0b0eabad302f92f03d5eadc60c25 /roff.c | |
parent | 41c83570cd0b176c663b583e5990f9869f214754 (diff) | |
download | mandoc-32c0933851c645dfc5d1af1bda32e80c9f237254.tar.gz mandoc-32c0933851c645dfc5d1af1bda32e80c9f237254.tar.zst mandoc-32c0933851c645dfc5d1af1bda32e80c9f237254.zip |
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 | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $Id: roff.c,v 1.347 2018/12/13 03:40:13 schwarze Exp $ */ +/* $Id: roff.c,v 1.348 2018/12/13 05:23:38 schwarze Exp $ */ /* * Copyright (c) 2008-2012, 2014 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010-2015, 2017, 2018 Ingo Schwarze <schwarze@openbsd.org> @@ -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; |