]> granicus.if.org Git - graphviz/commit
cgraph: inline 'bitarray_new' into 'bitarray_new_or_exit' and rename
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 5 Dec 2022 02:28:29 +0000 (18:28 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 5 Dec 2022 02:28:29 +0000 (18:28 -0800)
commitfd852f96c49c834f953694df143eb7ca531b7188
treee4f1a1d4fd88547b5a3a733aa83541842cc760aa
parente02fd406538f3ff2b9ee24fccec67c05cf1b8c56
cgraph: inline 'bitarray_new' into 'bitarray_new_or_exit' and rename

All clients of this functionality were calling `bitarray_new_or_exit`. That is,
none of them could cope with failure. In the intervening time since this API was
added, several other exit-on-failure functions have sprung up. For example,
`gv_alloc`. It seems reasonable to now abbreviate this, leading to lesser code
to maintain, with the “or exit” now implicit.
lib/cgraph/bitarray.h
lib/cgraph/test_bitarray.c
lib/dotgen/aspect.c
lib/neatogen/dijkstra.c
lib/neatogen/neatoinit.c
lib/neatogen/sgd.c
lib/ortho/partition.c
lib/sfdpgen/spring_electrical.c