]> granicus.if.org Git - graphviz/commit
expr exccopen: only pass SFIO stream to callback
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 5 Aug 2022 01:41:06 +0000 (18:41 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 5 Aug 2022 01:41:06 +0000 (18:41 -0700)
commit3fe831fc7a3d5b89487918d74419c40a5c2e2f70
treec2212a85105d4b0d56e0dee65cb57c4c2514bbfb
parent018d285ad182cb8a77cb1594a3aff865ae20f5bf
expr exccopen: only pass SFIO stream to callback

This function invokes `dtwalk` passing the callback `global` to be called with
a state parameter it supplies. It was supplying `cc`, but the callback only uses
a single member of this struct. So we can simplify this code by just passing the
stream the callback writes to, `cc->ccdisc-text`, or equivalently `disc->text`.
lib/expr/excc.c