diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2020-04-08 11:54:15 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2020-04-08 11:54:15 +0000 |
commit | fc4e9b059d59b8a1fe2a3baa695decc0d9b4ae1c (patch) | |
tree | 03c559b2cfaf7e643f5f01d5c437e1f4982d0c88 /usr.bin/mandoc/roff.c | |
parent | 7550cf17393e57f5067d5d3cfb941a810022d0f1 (diff) |
Use a separate node->tag attribute rather than abusing the node->string
attribute for the purpose. No functional change intended.
The purpose is to make it possible to later attach tags to text nodes.
Diffstat (limited to 'usr.bin/mandoc/roff.c')
-rw-r--r-- | usr.bin/mandoc/roff.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/mandoc/roff.c b/usr.bin/mandoc/roff.c index 035f53ac62f..5d456b103fd 100644 --- a/usr.bin/mandoc/roff.c +++ b/usr.bin/mandoc/roff.c @@ -1,4 +1,4 @@ -/* $OpenBSD: roff.c,v 1.245 2020/04/06 09:55:49 schwarze Exp $ */ +/* $OpenBSD: roff.c,v 1.246 2020/04/08 11:54:14 schwarze Exp $ */ /* * Copyright (c) 2010-2015, 2017-2020 Ingo Schwarze <schwarze@openbsd.org> * Copyright (c) 2008-2012, 2014 Kristaps Dzonsons <kristaps@bsd.lv> @@ -1101,6 +1101,7 @@ roff_node_free(struct roff_node *n) free(n->norm); eqn_box_free(n->eqn); free(n->string); + free(n->tag); free(n); } |