]> git.ipfire.org Git - thirdparty/libarchive.git/commit
archive_match: Set red/black tree operations once
authorTobias Stoeckmann <tobias@stoeckmann.org>
Sat, 24 May 2025 10:07:04 +0000 (12:07 +0200)
committerTobias Stoeckmann <tobias@stoeckmann.org>
Sat, 24 May 2025 10:10:49 +0000 (12:10 +0200)
commit4223b4c54821875b4ccd6349e65ea0911b77cdf1
tree5d9868733367c29b71c8eb1f165e129f5a51f8cb
parent0ed4435209b9b694cc190d937e4709a0609580e6
archive_match: Set red/black tree operations once

The operations for key and node comparison depend on the platform
libarchive is compiled for. Since these values do not change
during runtime, set them only once during initialisation.

Further simplify the code by declaring only one "rb_ops" with
required functions based on platform.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
libarchive/archive_match.c