]> granicus.if.org Git - graphviz/commit
restructure "%.*s" handling to avoid sfio dynamic allocation in expr’s printf
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 8 Aug 2021 22:36:27 +0000 (15:36 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 12 Aug 2021 14:53:09 +0000 (07:53 -0700)
commit717ad61e7d48918b0ab009163355ac54003be812
tree1b422848d53c3a6b81775ab58da089ecccebef0a
parent1e0c4d70d1e72aafffaa05339ba21280f3c463f0
restructure "%.*s" handling to avoid sfio dynamic allocation in expr’s printf

Rather than using the temporary sfio buffer in this code, fmt->tmp, we can just
use the original string as-is as it does not need to be modified. Apart from
slightly accelerating this code, this makes yet more progress towards removing
fmt->tmp and sfio. Related to #1998.
lib/expr/exeval.c