]> granicus.if.org Git - graphviz/commit
gvconfig.c: realign alternative for 'glob' with POSIX
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 3 Nov 2021 03:27:11 +0000 (20:27 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 9 Nov 2021 15:10:10 +0000 (07:10 -0800)
commit09d20cd35824a3d1d3c44388fbc5200fc19f002a
tree327a277b8f0e703abb649a2c8575b204d3712b97
parent27fd9d836c2fdfa2d88cdf53ba27596e676027bd
gvconfig.c: realign alternative for 'glob' with POSIX

If the `glob` system function¹ is available, it is used in this code. If not (on
Windows), an alternative static function is provided. The POSIX spec mandates
only three members of the `glob_t` struct, `gl_pathc`, `gl_pathv`, and
`gl_offs`. This commit realigns the members with their types in the POSIX spec.
This squashes some -Wsign-compare warnings on POSIX platforms.

¹ https://pubs.opengroup.org/onlinepubs/007908799/xsh/glob.html
lib/gvc/gvconfig.c