]> granicus.if.org Git - graphviz/commit
assign Cgraph IDs linearly
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 1 Aug 2020 19:33:46 +0000 (12:33 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 8 Aug 2020 01:49:22 +0000 (18:49 -0700)
commit14be5169ef49faad0f30cd9d36cdd438e1739f77
tree3b0dea689e0d4ce58d4c00b08409031896618336
parent2a9449a99b2a2146fce01fa1d9713e999ad3dd4e
assign Cgraph IDs linearly

Previously Cgraph only assigned odd IDs from the internal counter, because even
IDs were reserved for pointers derived from agstrdup. Now that we no longer use
pointers as IDs there is nothing special about an ID being even or odd.
lib/cgraph/id.c