]> granicus.if.org Git - graphviz/commit
ortho: track number of trapezoids along with its array
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 24 Nov 2022 16:48:48 +0000 (08:48 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 30 Nov 2022 04:04:18 +0000 (20:04 -0800)
commit224b5ff242a9c3b2396e15a2689b3ee1ccc94a56
tree10fa457bc05529a363e5dbe9fb1163bde89648f4
parentc48ba5fdd9bfd996fcb9cd7befd21c1d6467ff2d
ortho: track number of trapezoids along with its array

This is an alternative to passing around `ntraps` or relying on the `TRSIZE`
computation. It is a step towards fixing an issue where the allocated number of
trapezoids is exceeded.

The diff looks large but most of this change is mechanical, migrating `tr` uses
to be aware of the new structure.

This introduces some new warnings, but the intention is to remove these in
upcoming commits as we switch to on-demand allocation.

Gitlab: #56
lib/ortho/partition.c
lib/ortho/trap.h
lib/ortho/trapezoid.c