summaryrefslogtreecommitdiffstats
path: root/usr.bin/mandoc/roff.c
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2018-12-13 05:13:15 +0000
committerschwarze <schwarze@openbsd.org>2018-12-13 05:13:15 +0000
commitd4c8d4a3a244e6ae484d3f895fbed58523e58cfa (patch)
treef1fd624001841da9223424ef9c9848e1cd11c1d7 /usr.bin/mandoc/roff.c
parentCleanup, no functional change: (diff)
downloadwireguard-openbsd-d4c8d4a3a244e6ae484d3f895fbed58523e58cfa.tar.xz
wireguard-openbsd-d4c8d4a3a244e6ae484d3f895fbed58523e58cfa.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 'usr.bin/mandoc/roff.c')
-rw-r--r--usr.bin/mandoc/roff.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/mandoc/roff.c b/usr.bin/mandoc/roff.c
index a1767789ecc..037cf99192b 100644
--- a/usr.bin/mandoc/roff.c
+++ b/usr.bin/mandoc/roff.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: roff.c,v 1.219 2018/12/13 03:40:09 schwarze Exp $ */
+/* $OpenBSD: roff.c,v 1.220 2018/12/13 05:13:15 schwarze Exp $ */
/*
* Copyright (c) 2008-2012, 2014 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010-2015, 2017, 2018 Ingo Schwarze <schwarze@openbsd.org>
@@ -3151,8 +3151,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;