From f6438ea9e726a1c13ce8d90ac78cc272346ab0f8 Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Mon, 28 Mar 2022 15:19:11 +0200 Subject: Document tagfile-keys.h as internal to apt The previous regime of the file was to sort it on insert, but that changes the values in the generated enum, which is fine as long as we only use it in libapt itself, but breaks on other users. The header was always intended to be private to apt itself, so we just document this here now and lay the ground work to have the file in the future only appended to, so that it remains sufficiently ABI stable that we can use it outside the library in our apt tools. We also remove some fields apt is unlikely to need or only uses in certain cases outside of any (speed) critical path to have enough room to add more fields soon as currently we are limited to 128 fields max and it would be sad if we use up that allowance entirely already. --- apt-pkg/cachefilter-patterns.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'apt-pkg/cachefilter-patterns.h') diff --git a/apt-pkg/cachefilter-patterns.h b/apt-pkg/cachefilter-patterns.h index e6ea16c68..284fcc1cf 100644 --- a/apt-pkg/cachefilter-patterns.h +++ b/apt-pkg/cachefilter-patterns.h @@ -11,6 +11,7 @@ #include #include #include +#include #include #include #include @@ -20,10 +21,6 @@ #include #include -#ifndef APT_COMPILING_APT -#error Internal header -#endif - namespace APT { -- cgit v1.2.3-70-g09d2