]> granicus.if.org Git - graphviz/commit
cgraph: rewrite agxbuf macros as functions
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 15 May 2022 01:45:31 +0000 (18:45 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 21 May 2022 01:22:29 +0000 (18:22 -0700)
commitbdc3e23beb675c3728feec523879f34551fcca84
tree8a645dba78c256c88f750599501fa94a6e2d3575
parent804ccb8e1d17f392a150e38fdfd82580ec30536e
cgraph: rewrite agxbuf macros as functions

This provides stronger type safety with no loss of performance. Note that this
also alters the implied type signature of `agxbuflen` to have a more appropriate
return type. This allows dropping one cast at a call site squashing another
warning.
cmd/tools/gxl2gv.c
lib/cgraph/agxbuf.h