From c46f94aa48a9707668c46118b3eec77ff318b78c Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Wed, 12 Jul 2017 13:42:18 +0200 Subject: Drop cacheiterators.h include Including cacheiterators.h before pkgcache.h fails because pkgcache.h depends on cacheiterators.h. --- apt-inst/extract.cc | 1 - apt-inst/extract.h | 1 - apt-pkg/acquire-item.cc | 1 - apt-pkg/acquire-item.h | 1 - apt-pkg/algorithms.cc | 1 - apt-pkg/algorithms.h | 1 - apt-pkg/cachefile.h | 1 - apt-pkg/cachefilter.cc | 1 - apt-pkg/cachefilter.h | 1 - apt-pkg/cacheset.cc | 1 - apt-pkg/cacheset.h | 1 - apt-pkg/clean.cc | 1 - apt-pkg/deb/debindexfile.cc | 1 - apt-pkg/deb/debindexfile.h | 1 - apt-pkg/deb/deblistparser.cc | 1 - apt-pkg/deb/debrecords.cc | 1 - apt-pkg/deb/debsystem.cc | 1 - apt-pkg/deb/debsystem.h | 1 - apt-pkg/deb/dpkgpm.cc | 1 - apt-pkg/depcache.cc | 1 - apt-pkg/depcache.h | 1 - apt-pkg/edsp.cc | 1 - apt-pkg/edsp.h | 1 - apt-pkg/edsp/edsplistparser.cc | 1 - apt-pkg/edsp/edspsystem.cc | 1 - apt-pkg/edsp/edspsystem.h | 1 - apt-pkg/indexfile.cc | 1 - apt-pkg/indexfile.h | 1 - apt-pkg/orderlist.cc | 1 - apt-pkg/orderlist.h | 1 - apt-pkg/packagemanager.cc | 1 - apt-pkg/pkgcachegen.cc | 1 - apt-pkg/pkgcachegen.h | 1 - apt-pkg/pkgrecords.cc | 1 - apt-pkg/pkgsystem.h | 1 - apt-pkg/policy.cc | 1 - apt-pkg/policy.h | 1 - apt-pkg/sourcelist.cc | 1 - apt-pkg/sourcelist.h | 1 - apt-pkg/upgrade.cc | 1 - apt-pkg/versionmatch.cc | 1 - apt-pkg/versionmatch.h | 1 - apt-private/private-cacheset.cc | 1 - apt-private/private-depends.cc | 1 - apt-private/private-install.cc | 1 - apt-private/private-install.h | 1 - apt-private/private-list.cc | 1 - apt-private/private-output.cc | 1 - apt-private/private-search.cc | 1 - apt-private/private-show.cc | 1 - apt-private/private-source.cc | 1 - cmdline/apt-cache.cc | 1 - cmdline/apt-extracttemplates.cc | 1 - cmdline/apt-get.cc | 1 - cmdline/apt-internal-planner.cc | 1 - cmdline/apt-internal-solver.cc | 1 - cmdline/apt-mark.cc | 1 - 57 files changed, 57 deletions(-) diff --git a/apt-inst/extract.cc b/apt-inst/extract.cc index f50c23e46..6b68d8f9c 100644 --- a/apt-inst/extract.cc +++ b/apt-inst/extract.cc @@ -54,7 +54,6 @@ #include #include #include -#include #include #include diff --git a/apt-inst/extract.h b/apt-inst/extract.h index a62ff51bd..d2e355474 100644 --- a/apt-inst/extract.h +++ b/apt-inst/extract.h @@ -20,7 +20,6 @@ #include #include #include -#include #include diff --git a/apt-pkg/acquire-item.cc b/apt-pkg/acquire-item.cc index f807178e6..f8162a3bd 100644 --- a/apt-pkg/acquire-item.cc +++ b/apt-pkg/acquire-item.cc @@ -28,7 +28,6 @@ #include #include #include -#include #include #include diff --git a/apt-pkg/acquire-item.h b/apt-pkg/acquire-item.h index 343144122..5ce85a5d6 100644 --- a/apt-pkg/acquire-item.h +++ b/apt-pkg/acquire-item.h @@ -24,7 +24,6 @@ #include #include #include -#include #include #include diff --git a/apt-pkg/algorithms.cc b/apt-pkg/algorithms.cc index 2c0cd1104..2b4cf9eb7 100644 --- a/apt-pkg/algorithms.cc +++ b/apt-pkg/algorithms.cc @@ -23,7 +23,6 @@ #include #include #include -#include #include #include diff --git a/apt-pkg/algorithms.h b/apt-pkg/algorithms.h index 5148ff19d..64ffef8a0 100644 --- a/apt-pkg/algorithms.h +++ b/apt-pkg/algorithms.h @@ -33,7 +33,6 @@ #include #include #include -#include #include #include diff --git a/apt-pkg/cachefile.h b/apt-pkg/cachefile.h index e23f37675..097876b3a 100644 --- a/apt-pkg/cachefile.h +++ b/apt-pkg/cachefile.h @@ -21,7 +21,6 @@ #include #include #include -#include #ifndef APT_8_CLEANER_HEADERS #include diff --git a/apt-pkg/cachefilter.cc b/apt-pkg/cachefilter.cc index cc4cdf73c..8861d5354 100644 --- a/apt-pkg/cachefilter.cc +++ b/apt-pkg/cachefilter.cc @@ -10,7 +10,6 @@ #include #include #include -#include #include #include diff --git a/apt-pkg/cachefilter.h b/apt-pkg/cachefilter.h index 30a3368e5..8a6c01341 100644 --- a/apt-pkg/cachefilter.h +++ b/apt-pkg/cachefilter.h @@ -7,7 +7,6 @@ #define APT_CACHEFILTER_H // Include Files /*{{{*/ #include -#include #include #include diff --git a/apt-pkg/cacheset.cc b/apt-pkg/cacheset.cc index f8ab7acb9..4591f39b9 100644 --- a/apt-pkg/cacheset.cc +++ b/apt-pkg/cacheset.cc @@ -19,7 +19,6 @@ #include #include #include -#include #include #include #include diff --git a/apt-pkg/cacheset.h b/apt-pkg/cacheset.h index 1ac61af59..07b1f1f9d 100644 --- a/apt-pkg/cacheset.h +++ b/apt-pkg/cacheset.h @@ -28,7 +28,6 @@ #include #include -#include #include #ifndef APT_8_CLEANER_HEADERS diff --git a/apt-pkg/clean.cc b/apt-pkg/clean.cc index 9f408e46e..9fa0fb4e8 100644 --- a/apt-pkg/clean.cc +++ b/apt-pkg/clean.cc @@ -17,7 +17,6 @@ #include #include #include -#include #include #include diff --git a/apt-pkg/deb/debindexfile.cc b/apt-pkg/deb/debindexfile.cc index 799144ecb..96a55d4da 100644 --- a/apt-pkg/deb/debindexfile.cc +++ b/apt-pkg/deb/debindexfile.cc @@ -20,7 +20,6 @@ #include #include #include -#include #include #include diff --git a/apt-pkg/deb/debindexfile.h b/apt-pkg/deb/debindexfile.h index 3652f631c..40a9e4bbc 100644 --- a/apt-pkg/deb/debindexfile.h +++ b/apt-pkg/deb/debindexfile.h @@ -16,7 +16,6 @@ #define PKGLIB_DEBINDEXFILE_H #include -#include #include #include diff --git a/apt-pkg/deb/deblistparser.cc b/apt-pkg/deb/deblistparser.cc index 3a26b40c4..c35fbe416 100644 --- a/apt-pkg/deb/deblistparser.cc +++ b/apt-pkg/deb/deblistparser.cc @@ -21,7 +21,6 @@ #include #include #include -#include #include #include #include diff --git a/apt-pkg/deb/debrecords.cc b/apt-pkg/deb/debrecords.cc index a132f34a6..54e09e74d 100644 --- a/apt-pkg/deb/debrecords.cc +++ b/apt-pkg/deb/debrecords.cc @@ -15,7 +15,6 @@ #include #include #include -#include #include #include #include diff --git a/apt-pkg/deb/debsystem.cc b/apt-pkg/deb/debsystem.cc index 899f7328b..d2b530cff 100644 --- a/apt-pkg/deb/debsystem.cc +++ b/apt-pkg/deb/debsystem.cc @@ -20,7 +20,6 @@ #include #include #include -#include #include diff --git a/apt-pkg/deb/debsystem.h b/apt-pkg/deb/debsystem.h index 5185c92d8..1a3701046 100644 --- a/apt-pkg/deb/debsystem.h +++ b/apt-pkg/deb/debsystem.h @@ -12,7 +12,6 @@ #include #include -#include #include class Configuration; diff --git a/apt-pkg/deb/dpkgpm.cc b/apt-pkg/deb/dpkgpm.cc index 80bee03dd..b55cd951f 100644 --- a/apt-pkg/deb/dpkgpm.cc +++ b/apt-pkg/deb/dpkgpm.cc @@ -20,7 +20,6 @@ #include #include #include -#include #include #include #include diff --git a/apt-pkg/depcache.cc b/apt-pkg/depcache.cc index 05b788e45..71026f816 100644 --- a/apt-pkg/depcache.cc +++ b/apt-pkg/depcache.cc @@ -22,7 +22,6 @@ #include #include #include -#include #include #include #include diff --git a/apt-pkg/depcache.h b/apt-pkg/depcache.h index 1ab86644d..58422f61b 100644 --- a/apt-pkg/depcache.h +++ b/apt-pkg/depcache.h @@ -39,7 +39,6 @@ #include #include -#include #include #include diff --git a/apt-pkg/edsp.cc b/apt-pkg/edsp.cc index fb23c1c55..f0c3fc42c 100644 --- a/apt-pkg/edsp.cc +++ b/apt-pkg/edsp.cc @@ -12,7 +12,6 @@ #include #include #include -#include #include #include #include diff --git a/apt-pkg/edsp.h b/apt-pkg/edsp.h index 2c9082ed3..b3a1d29ea 100644 --- a/apt-pkg/edsp.h +++ b/apt-pkg/edsp.h @@ -11,7 +11,6 @@ #include #include -#include #include #include diff --git a/apt-pkg/edsp/edsplistparser.cc b/apt-pkg/edsp/edsplistparser.cc index 4119639a6..2afa7538b 100644 --- a/apt-pkg/edsp/edsplistparser.cc +++ b/apt-pkg/edsp/edsplistparser.cc @@ -16,7 +16,6 @@ #include #include #include -#include #include #include #include diff --git a/apt-pkg/edsp/edspsystem.cc b/apt-pkg/edsp/edspsystem.cc index 1ceb21a17..d921f0126 100644 --- a/apt-pkg/edsp/edspsystem.cc +++ b/apt-pkg/edsp/edspsystem.cc @@ -16,7 +16,6 @@ #include #include #include -#include #include #include diff --git a/apt-pkg/edsp/edspsystem.h b/apt-pkg/edsp/edspsystem.h index c0c9526b5..5ea7a45f3 100644 --- a/apt-pkg/edsp/edspsystem.h +++ b/apt-pkg/edsp/edspsystem.h @@ -11,7 +11,6 @@ #define PKGLIB_EDSPSYSTEM_H #include -#include #include #include diff --git a/apt-pkg/indexfile.cc b/apt-pkg/indexfile.cc index b860e2335..2b3554d2c 100644 --- a/apt-pkg/indexfile.cc +++ b/apt-pkg/indexfile.cc @@ -17,7 +17,6 @@ #include #include #include -#include #include #include #include diff --git a/apt-pkg/indexfile.h b/apt-pkg/indexfile.h index 046216ab2..52ec5cb88 100644 --- a/apt-pkg/indexfile.h +++ b/apt-pkg/indexfile.h @@ -24,7 +24,6 @@ #include #include #include -#include #include #include diff --git a/apt-pkg/orderlist.cc b/apt-pkg/orderlist.cc index 98793e6a9..c7aae6450 100644 --- a/apt-pkg/orderlist.cc +++ b/apt-pkg/orderlist.cc @@ -69,7 +69,6 @@ #include #include #include -#include #include #include diff --git a/apt-pkg/orderlist.h b/apt-pkg/orderlist.h index 9171c45d6..19a7d5436 100644 --- a/apt-pkg/orderlist.h +++ b/apt-pkg/orderlist.h @@ -16,7 +16,6 @@ #define PKGLIB_ORDERLIST_H #include -#include #include #include diff --git a/apt-pkg/packagemanager.cc b/apt-pkg/packagemanager.cc index 85ac5f9da..579c31901 100644 --- a/apt-pkg/packagemanager.cc +++ b/apt-pkg/packagemanager.cc @@ -26,7 +26,6 @@ #include #include #include -#include #include #include #include diff --git a/apt-pkg/pkgcachegen.cc b/apt-pkg/pkgcachegen.cc index e52667fbc..cd50d8511 100644 --- a/apt-pkg/pkgcachegen.cc +++ b/apt-pkg/pkgcachegen.cc @@ -27,7 +27,6 @@ #include #include #include -#include #include #include diff --git a/apt-pkg/pkgcachegen.h b/apt-pkg/pkgcachegen.h index cb51c113a..f36fadbdc 100644 --- a/apt-pkg/pkgcachegen.h +++ b/apt-pkg/pkgcachegen.h @@ -21,7 +21,6 @@ #include #include #include -#include #include #include diff --git a/apt-pkg/pkgrecords.cc b/apt-pkg/pkgrecords.cc index ef4c17cd2..1ec753aac 100644 --- a/apt-pkg/pkgrecords.cc +++ b/apt-pkg/pkgrecords.cc @@ -15,7 +15,6 @@ #include #include #include -#include #include #include diff --git a/apt-pkg/pkgsystem.h b/apt-pkg/pkgsystem.h index affaa5c9a..4b13072e2 100644 --- a/apt-pkg/pkgsystem.h +++ b/apt-pkg/pkgsystem.h @@ -37,7 +37,6 @@ #define PKGLIB_PKGSYSTEM_H #include -#include #include diff --git a/apt-pkg/policy.cc b/apt-pkg/policy.cc index e87ba3ee2..639f90991 100644 --- a/apt-pkg/policy.cc +++ b/apt-pkg/policy.cc @@ -22,7 +22,6 @@ #include #include #include -#include #include #include #include diff --git a/apt-pkg/policy.h b/apt-pkg/policy.h index 943332bbb..77287fe87 100644 --- a/apt-pkg/policy.h +++ b/apt-pkg/policy.h @@ -34,7 +34,6 @@ #include #include -#include #include #include diff --git a/apt-pkg/sourcelist.cc b/apt-pkg/sourcelist.cc index df2e0b46d..39e8a57a0 100644 --- a/apt-pkg/sourcelist.cc +++ b/apt-pkg/sourcelist.cc @@ -20,7 +20,6 @@ #include #include #include -#include #include #include diff --git a/apt-pkg/sourcelist.h b/apt-pkg/sourcelist.h index 65f9c2b89..3971ce4d0 100644 --- a/apt-pkg/sourcelist.h +++ b/apt-pkg/sourcelist.h @@ -23,7 +23,6 @@ #define PKGLIB_SOURCELIST_H #include -#include #include #include diff --git a/apt-pkg/upgrade.cc b/apt-pkg/upgrade.cc index a61789c11..1f3caa7e8 100644 --- a/apt-pkg/upgrade.cc +++ b/apt-pkg/upgrade.cc @@ -9,7 +9,6 @@ #include #include #include -#include #include diff --git a/apt-pkg/versionmatch.cc b/apt-pkg/versionmatch.cc index 2376ca8fd..a8ed052a5 100644 --- a/apt-pkg/versionmatch.cc +++ b/apt-pkg/versionmatch.cc @@ -17,7 +17,6 @@ #include #include #include -#include #include #include diff --git a/apt-pkg/versionmatch.h b/apt-pkg/versionmatch.h index 156ad61cb..ce8f95de5 100644 --- a/apt-pkg/versionmatch.h +++ b/apt-pkg/versionmatch.h @@ -36,7 +36,6 @@ #define PKGLIB_VERSIONMATCH_H #include -#include #include diff --git a/apt-private/private-cacheset.cc b/apt-private/private-cacheset.cc index 52cd22d2a..5b15925b2 100644 --- a/apt-private/private-cacheset.cc +++ b/apt-private/private-cacheset.cc @@ -3,7 +3,6 @@ #include #include #include -#include #include #include #include diff --git a/apt-private/private-depends.cc b/apt-private/private-depends.cc index 3a3a2737a..2934abc0b 100644 --- a/apt-private/private-depends.cc +++ b/apt-private/private-depends.cc @@ -3,7 +3,6 @@ #include #include -#include #include #include #include diff --git a/apt-private/private-install.cc b/apt-private/private-install.cc index e37ff5390..340f4fdbd 100644 --- a/apt-private/private-install.cc +++ b/apt-private/private-install.cc @@ -14,7 +14,6 @@ #include #include #include -#include #include #include #include diff --git a/apt-private/private-install.h b/apt-private/private-install.h index d2a9bed3f..6e571f173 100644 --- a/apt-private/private-install.h +++ b/apt-private/private-install.h @@ -4,7 +4,6 @@ #include #include #include -#include #include #include diff --git a/apt-private/private-list.cc b/apt-private/private-list.cc index 32c8eeaa2..f85e116e5 100644 --- a/apt-private/private-list.cc +++ b/apt-private/private-list.cc @@ -11,7 +11,6 @@ #include #include #include -#include #include #include diff --git a/apt-private/private-output.cc b/apt-private/private-output.cc index 3b8832c21..43f8162a5 100644 --- a/apt-private/private-output.cc +++ b/apt-private/private-output.cc @@ -9,7 +9,6 @@ #include #include #include -#include #include #include diff --git a/apt-private/private-search.cc b/apt-private/private-search.cc index bae04173d..831b5246c 100644 --- a/apt-private/private-search.cc +++ b/apt-private/private-search.cc @@ -7,7 +7,6 @@ #include #include #include -#include #include #include #include diff --git a/apt-private/private-show.cc b/apt-private/private-show.cc index 27338a08c..9dbb90b16 100644 --- a/apt-private/private-show.cc +++ b/apt-private/private-show.cc @@ -12,7 +12,6 @@ #include #include #include -#include #include #include #include diff --git a/apt-private/private-source.cc b/apt-private/private-source.cc index e9ec7c6cf..cec56c4c3 100644 --- a/apt-private/private-source.cc +++ b/apt-private/private-source.cc @@ -6,7 +6,6 @@ #include #include #include -#include #include #include #include diff --git a/cmdline/apt-cache.cc b/cmdline/apt-cache.cc index 2fe2e7649..ccec1b1f9 100644 --- a/cmdline/apt-cache.cc +++ b/cmdline/apt-cache.cc @@ -34,7 +34,6 @@ #include #include #include -#include #include #include #include diff --git a/cmdline/apt-extracttemplates.cc b/cmdline/apt-extracttemplates.cc index a4468b989..5a61a0f53 100644 --- a/cmdline/apt-extracttemplates.cc +++ b/cmdline/apt-extracttemplates.cc @@ -18,7 +18,6 @@ #include #include #include -#include #include #include #include diff --git a/cmdline/apt-get.cc b/cmdline/apt-get.cc index 95d88e2ad..ba9d784ec 100644 --- a/cmdline/apt-get.cc +++ b/cmdline/apt-get.cc @@ -53,7 +53,6 @@ #include #include #include -#include #include #include diff --git a/cmdline/apt-internal-planner.cc b/cmdline/apt-internal-planner.cc index 1f74aa78f..1e9de2e53 100644 --- a/cmdline/apt-internal-planner.cc +++ b/cmdline/apt-internal-planner.cc @@ -23,7 +23,6 @@ #include #include #include -#include #include #include diff --git a/cmdline/apt-internal-solver.cc b/cmdline/apt-internal-solver.cc index aecb0eaba..7b8fe952a 100644 --- a/cmdline/apt-internal-solver.cc +++ b/cmdline/apt-internal-solver.cc @@ -23,7 +23,6 @@ #include #include #include -#include #include #include diff --git a/cmdline/apt-mark.cc b/cmdline/apt-mark.cc index 0cba31e70..d808f4b9b 100644 --- a/cmdline/apt-mark.cc +++ b/cmdline/apt-mark.cc @@ -16,7 +16,6 @@ #include #include #include -#include #include #include #include -- cgit v1.2.3 From 78fcdd9629022c0c37742614351f5b02fed97607 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Wed, 12 Jul 2017 13:50:31 +0200 Subject: methods/aptmethod.h: Add missing fileutl.h include --- methods/aptmethod.h | 1 + 1 file changed, 1 insertion(+) diff --git a/methods/aptmethod.h b/methods/aptmethod.h index 04c4fa99b..30ef134c8 100644 --- a/methods/aptmethod.h +++ b/methods/aptmethod.h @@ -4,6 +4,7 @@ #include #include #include +#include #include #include -- cgit v1.2.3 From 87274d0f22e1dfd99b2e5200e2fe75c1b804eac3 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Wed, 12 Jul 2017 13:40:41 +0200 Subject: Reformat and sort all includes with clang-format This makes it easier to see which headers includes what. The changes were done by running git grep -l '#\s*include' \ | grep -E '.(cc|h)$' \ | xargs sed -i -E 's/(^\s*)#(\s*)include/\1#\2 include/' To modify all include lines by adding a space, and then running ./git-clang-format.sh. --- .clang-format | 16 +++++++++- apt-inst/contrib/arfile.cc | 8 ++--- apt-inst/contrib/arfile.h | 3 +- apt-inst/contrib/extracttar.cc | 16 +++++----- apt-inst/deb/debfile.cc | 10 +++---- apt-inst/deb/debfile.h | 3 +- apt-inst/dirstream.cc | 4 +-- apt-inst/extract.cc | 18 +++++------ apt-inst/filelist.cc | 6 ++-- apt-pkg/acquire-item.cc | 32 ++++++++++---------- apt-pkg/acquire-item.h | 8 ++--- apt-pkg/acquire-method.cc | 12 ++++---- apt-pkg/acquire-worker.cc | 18 +++++------ apt-pkg/acquire-worker.h | 2 +- apt-pkg/acquire.cc | 26 ++++++++-------- apt-pkg/acquire.h | 4 +-- apt-pkg/algorithms.cc | 10 +++---- apt-pkg/algorithms.h | 5 ++-- apt-pkg/aptconfiguration.cc | 12 ++++---- apt-pkg/aptconfiguration.h | 2 +- apt-pkg/cachefile.cc | 22 +++++++------- apt-pkg/cachefilter.cc | 6 ++-- apt-pkg/cacheiterators.h | 8 ++--- apt-pkg/cacheset.cc | 18 +++++------ apt-pkg/cacheset.h | 12 ++++---- apt-pkg/cdrom.cc | 27 ++++++++--------- apt-pkg/cdrom.h | 4 +-- apt-pkg/clean.cc | 14 ++++----- apt-pkg/contrib/cdromutl.cc | 14 ++++----- apt-pkg/contrib/cmndline.cc | 6 ++-- apt-pkg/contrib/configuration.cc | 10 +++---- apt-pkg/contrib/configuration.h | 2 +- apt-pkg/contrib/error.cc | 35 +++++++++++----------- apt-pkg/contrib/error.h | 2 +- apt-pkg/contrib/fileutl.cc | 48 +++++++++++++++--------------- apt-pkg/contrib/fileutl.h | 4 +-- apt-pkg/contrib/gpgv.cc | 18 +++++------ apt-pkg/contrib/hashes.cc | 12 ++++---- apt-pkg/contrib/hashes.h | 3 +- apt-pkg/contrib/hashsum.cc | 2 +- apt-pkg/contrib/hashsum_template.h | 3 +- apt-pkg/contrib/md5.h | 4 +-- apt-pkg/contrib/mmap.cc | 8 ++--- apt-pkg/contrib/mmap.h | 1 - apt-pkg/contrib/netrc.cc | 4 +-- apt-pkg/contrib/progress.cc | 10 +++---- apt-pkg/contrib/progress.h | 3 +- apt-pkg/contrib/proxy.cc | 14 ++++----- apt-pkg/contrib/sha1.h | 4 +-- apt-pkg/contrib/sha2.h | 4 +-- apt-pkg/contrib/sha2_internal.cc | 6 ++-- apt-pkg/contrib/sha2_internal.h | 2 +- apt-pkg/contrib/srvrec.cc | 4 +-- apt-pkg/contrib/srvrec.h | 4 +-- apt-pkg/contrib/string_view.h | 4 +-- apt-pkg/contrib/strutl.cc | 22 +++++++------- apt-pkg/contrib/strutl.h | 7 ++--- apt-pkg/deb/debindexfile.cc | 8 ++--- apt-pkg/deb/deblistparser.cc | 18 +++++------ apt-pkg/deb/deblistparser.h | 6 ++-- apt-pkg/deb/debmetaindex.cc | 24 +++++++-------- apt-pkg/deb/debmetaindex.h | 2 +- apt-pkg/deb/debrecords.cc | 10 +++---- apt-pkg/deb/debrecords.h | 4 +-- apt-pkg/deb/debsrcrecords.cc | 14 ++++----- apt-pkg/deb/debsrcrecords.h | 4 +-- apt-pkg/deb/debsystem.cc | 16 +++++----- apt-pkg/deb/debsystem.h | 2 +- apt-pkg/deb/debversion.cc | 4 +-- apt-pkg/deb/dpkgpm.cc | 18 +++++------ apt-pkg/deb/dpkgpm.h | 6 ++-- apt-pkg/depcache.cc | 32 ++++++++++---------- apt-pkg/depcache.h | 6 ++-- apt-pkg/edsp.cc | 18 +++++------ apt-pkg/edsp.h | 2 +- apt-pkg/edsp/edspindexfile.cc | 4 +-- apt-pkg/edsp/edsplistparser.cc | 6 ++-- apt-pkg/edsp/edsplistparser.h | 4 +-- apt-pkg/edsp/edspsystem.cc | 2 +- apt-pkg/edsp/edspsystem.h | 2 +- apt-pkg/indexcopy.cc | 24 +++++++-------- apt-pkg/indexfile.cc | 16 +++++----- apt-pkg/indexfile.h | 6 ++-- apt-pkg/init.cc | 12 ++++---- apt-pkg/install-progress.cc | 14 ++++----- apt-pkg/install-progress.h | 4 +-- apt-pkg/metaindex.cc | 4 +-- apt-pkg/metaindex.h | 2 +- apt-pkg/orderlist.cc | 10 +++---- apt-pkg/orderlist.h | 2 +- apt-pkg/packagemanager.cc | 20 ++++++------- apt-pkg/packagemanager.h | 6 ++-- apt-pkg/pkgcache.cc | 24 +++++++-------- apt-pkg/pkgcache.h | 15 ++++++---- apt-pkg/pkgcachegen.cc | 24 +++++++-------- apt-pkg/pkgcachegen.h | 4 +-- apt-pkg/pkgrecords.cc | 8 ++--- apt-pkg/pkgrecords.h | 2 +- apt-pkg/pkgsystem.cc | 6 ++-- apt-pkg/policy.cc | 22 +++++++------- apt-pkg/policy.h | 2 +- apt-pkg/prettyprinters.h | 2 +- apt-pkg/sourcelist.cc | 26 ++++++++-------- apt-pkg/sourcelist.h | 4 +-- apt-pkg/srcrecords.cc | 10 +++---- apt-pkg/srcrecords.h | 2 +- apt-pkg/statechanges.cc | 4 +-- apt-pkg/statechanges.h | 2 +- apt-pkg/tagfile-compat.cc | 2 +- apt-pkg/tagfile.cc | 10 +++---- apt-pkg/tagfile.h | 4 +-- apt-pkg/update.cc | 2 +- apt-pkg/upgrade.cc | 4 +-- apt-pkg/upgrade.h | 2 +- apt-pkg/version.cc | 4 +-- apt-pkg/versionmatch.cc | 14 ++++----- apt-private/acqprogress.cc | 12 ++++---- apt-private/acqprogress.h | 2 +- apt-private/private-cachefile.cc | 14 ++++----- apt-private/private-cachefile.h | 6 ++-- apt-private/private-cacheset.cc | 8 ++--- apt-private/private-cacheset.h | 2 +- apt-private/private-cmndline.cc | 8 ++--- apt-private/private-depends.cc | 4 +-- apt-private/private-download.cc | 16 +++++----- apt-private/private-install.cc | 22 +++++++------- apt-private/private-install.h | 4 +-- apt-private/private-list.cc | 8 ++--- apt-private/private-main.cc | 3 +- apt-private/private-moo.cc | 10 +++---- apt-private/private-output.cc | 22 +++++++------- apt-private/private-output.h | 6 ++-- apt-private/private-search.cc | 10 +++---- apt-private/private-search.h | 2 +- apt-private/private-show.cc | 14 ++++----- apt-private/private-show.h | 2 +- apt-private/private-source.cc | 4 +-- apt-private/private-sources.cc | 18 +++++------ apt-private/private-unmet.cc | 2 +- apt-private/private-update.cc | 6 ++-- apt-private/private-upgrade.cc | 6 ++-- cmdline/apt-cache.cc | 26 ++++++++-------- cmdline/apt-cdrom.cc | 16 +++++----- cmdline/apt-config.cc | 10 +++---- cmdline/apt-extracttemplates.cc | 22 +++++++------- cmdline/apt-extracttemplates.h | 2 +- cmdline/apt-get.cc | 22 +++++++------- cmdline/apt-helper.cc | 18 +++++------ cmdline/apt-internal-planner.cc | 26 ++++++++-------- cmdline/apt-internal-solver.cc | 26 ++++++++-------- cmdline/apt-mark.cc | 22 +++++++------- cmdline/apt-sortpkgs.cc | 18 +++++------ cmdline/apt.cc | 26 ++++++++-------- ftparchive/apt-ftparchive.cc | 24 +++++++-------- ftparchive/apt-ftparchive.h | 1 - ftparchive/byhash.cc | 8 ++--- ftparchive/cachedb.cc | 14 ++++----- ftparchive/cachedb.h | 6 ++-- ftparchive/contents.h | 2 +- ftparchive/multicompress.cc | 10 +++---- ftparchive/multicompress.h | 2 +- ftparchive/override.cc | 6 ++-- ftparchive/override.h | 2 -- ftparchive/sources.cc | 2 +- ftparchive/writer.cc | 22 +++++++------- ftparchive/writer.h | 10 +++---- methods/aptmethod.h | 2 +- methods/basehttp.cc | 10 +++---- methods/basehttp.h | 8 ++--- methods/cdrom.cc | 4 +-- methods/connect.cc | 20 ++++++------- methods/connect.h | 2 +- methods/copy.cc | 8 ++--- methods/curl.cc | 15 +++++----- methods/curl.h | 6 ++-- methods/file.cc | 4 +-- methods/ftp.cc | 20 ++++++------- methods/ftp.h | 2 +- methods/gpgv.cc | 10 +++---- methods/http.cc | 16 +++++----- methods/http_main.cc | 2 +- methods/mirror.cc | 20 ++++++------- methods/rfc2553emu.cc | 6 ++-- methods/rfc2553emu.h | 2 +- methods/rred.cc | 14 ++++----- methods/rsh.cc | 12 ++++---- methods/store.cc | 8 ++--- test/interactive-helper/aptwebserver.cc | 4 +-- test/interactive-helper/extract-control.cc | 2 +- test/interactive-helper/rpmver.cc | 6 ++-- test/interactive-helper/teestream.h | 2 +- test/interactive-helper/test_fileutl.cc | 8 ++--- test/interactive-helper/test_udevcdrom.cc | 6 ++-- test/interactive-helper/testdeb.cc | 4 +-- test/libapt/acqprogress_test.cc | 8 ++--- test/libapt/cdrom_test.cc | 4 +-- test/libapt/cdromfindpackages_test.cc | 2 +- test/libapt/compareversion_test.cc | 4 +-- test/libapt/extracttar_test.cc | 2 +- test/libapt/file-helpers.cc | 4 +-- test/libapt/fileutl_test.cc | 4 +-- test/libapt/getlanguages_test.cc | 4 +-- test/libapt/getlistoffilesindir_test.cc | 4 +-- test/libapt/globalerror_test.cc | 2 +- test/libapt/gtest_runner.cc | 2 +- test/libapt/hashsums_test.cc | 6 ++-- test/libapt/indexcopytosourcelist_test.cc | 2 +- test/libapt/parsedepends_test.cc | 4 +-- test/libapt/priority_test.cc | 2 +- test/libapt/sourcelist_test.cc | 2 +- test/libapt/strutil_test.cc | 2 +- test/libapt/tagfile_test.cc | 2 +- test/libapt/tagsection_test.cc | 2 +- test/libapt/teestream_test.cc | 6 ++-- test/libapt/uri_test.cc | 2 +- 215 files changed, 983 insertions(+), 981 deletions(-) diff --git a/.clang-format b/.clang-format index 3f5e0c127..654100364 100644 --- a/.clang-format +++ b/.clang-format @@ -7,4 +7,18 @@ IndentWidth: 3 ColumnLimit: 0 BreakBeforeBraces: Allman AccessModifierOffset: 0 -SortIncludes: false +IncludeCategories: + - Regex: 'apti18n.h' + Priority: 9999 + - Regex: 'apt-[^/]*/' + Priority: 20 + - Regex: '^"' + Priority: 10 + - Regex: 'config.h' + Priority: 0 + - Regex: '(zlib|bzlib|lzma|lz4frame|gtest/gtest|db|gnutls/.*)\.h' + Priority: 30 + - Regex: '\.h' + Priority: 100 + - Regex: '.*' + Priority: 99 diff --git a/apt-inst/contrib/arfile.cc b/apt-inst/contrib/arfile.cc index 905110781..26c85d066 100644 --- a/apt-inst/contrib/arfile.cc +++ b/apt-inst/contrib/arfile.cc @@ -14,16 +14,16 @@ ##################################################################### */ /*}}}*/ // Include Files /*{{{*/ -#include +#include #include -#include -#include #include +#include +#include +#include #include #include -#include #include /*}}}*/ diff --git a/apt-inst/contrib/arfile.h b/apt-inst/contrib/arfile.h index 297303a9d..47624c72a 100644 --- a/apt-inst/contrib/arfile.h +++ b/apt-inst/contrib/arfile.h @@ -15,9 +15,8 @@ #ifndef PKGLIB_ARFILE_H #define PKGLIB_ARFILE_H - -#include #include +#include #ifndef APT_8_CLEANER_HEADERS #include #endif diff --git a/apt-inst/contrib/extracttar.cc b/apt-inst/contrib/extracttar.cc index 60360053e..69e43d6a1 100644 --- a/apt-inst/contrib/extracttar.cc +++ b/apt-inst/contrib/extracttar.cc @@ -16,22 +16,22 @@ ##################################################################### */ /*}}}*/ // Include Files /*{{{*/ -#include +#include +#include #include -#include #include -#include -#include +#include #include +#include -#include #include +#include #include -#include -#include #include -#include +#include +#include +#include #include /*}}}*/ diff --git a/apt-inst/deb/debfile.cc b/apt-inst/deb/debfile.cc index 474fb1cbe..8eef446bb 100644 --- a/apt-inst/deb/debfile.cc +++ b/apt-inst/deb/debfile.cc @@ -16,20 +16,20 @@ ##################################################################### */ /*}}}*/ // Include Files /*{{{*/ -#include +#include -#include -#include -#include #include #include +#include #include +#include +#include #include #include -#include #include #include +#include #include #include diff --git a/apt-inst/deb/debfile.h b/apt-inst/deb/debfile.h index 02ebaae2e..0bc3254d6 100644 --- a/apt-inst/deb/debfile.h +++ b/apt-inst/deb/debfile.h @@ -23,11 +23,10 @@ #ifndef PKGLIB_DEBFILE_H #define PKGLIB_DEBFILE_H - #include #include -#include #include +#include #include diff --git a/apt-inst/dirstream.cc b/apt-inst/dirstream.cc index 888020bfb..f43e9953b 100644 --- a/apt-inst/dirstream.cc +++ b/apt-inst/dirstream.cc @@ -11,15 +11,15 @@ ##################################################################### */ /*}}}*/ // Include Files /*{{{*/ -#include +#include #include #include +#include #include #include #include -#include #include #include /*}}}*/ diff --git a/apt-inst/extract.cc b/apt-inst/extract.cc index 6b68d8f9c..667524c9e 100644 --- a/apt-inst/extract.cc +++ b/apt-inst/extract.cc @@ -44,24 +44,24 @@ ##################################################################### */ /*}}}*/ // Include Files /*{{{*/ -#include +#include -#include -#include #include -#include #include +#include +#include #include +#include #include #include -#include +#include #include -#include -#include -#include #include -#include +#include +#include +#include +#include #include /*}}}*/ diff --git a/apt-inst/filelist.cc b/apt-inst/filelist.cc index 6251b79b5..8a16574ea 100644 --- a/apt-inst/filelist.cc +++ b/apt-inst/filelist.cc @@ -32,15 +32,15 @@ ##################################################################### */ /*}}}*/ // Include Files /*{{{*/ -#include +#include +#include #include #include -#include #include -#include #include +#include #include /*}}}*/ diff --git a/apt-pkg/acquire-item.cc b/apt-pkg/acquire-item.cc index f8162a3bd..668b68ed4 100644 --- a/apt-pkg/acquire-item.cc +++ b/apt-pkg/acquire-item.cc @@ -16,36 +16,36 @@ #include #include -#include +#include #include -#include +#include #include -#include #include -#include -#include -#include +#include #include #include +#include #include #include -#include +#include +#include +#include #include +#include +#include +#include +#include +#include +#include +#include +#include #include +#include #include #include -#include -#include #include #include -#include -#include -#include -#include -#include -#include -#include #include /*}}}*/ diff --git a/apt-pkg/acquire-item.h b/apt-pkg/acquire-item.h index 5ce85a5d6..a5c7d848a 100644 --- a/apt-pkg/acquire-item.h +++ b/apt-pkg/acquire-item.h @@ -20,18 +20,18 @@ #define PKGLIB_ACQUIRE_ITEM_H #include -#include #include -#include +#include #include +#include +#include #include #include -#include #ifndef APT_8_CLEANER_HEADERS -#include #include +#include #endif /** \addtogroup acquire diff --git a/apt-pkg/acquire-method.cc b/apt-pkg/acquire-method.cc index ab0908014..058ec7945 100644 --- a/apt-pkg/acquire-method.cc +++ b/apt-pkg/acquire-method.cc @@ -18,23 +18,23 @@ #include #include -#include #include -#include +#include #include #include #include #include #include +#include +#include +#include +#include #include +#include #include #include #include -#include -#include -#include -#include /*}}}*/ using namespace std; diff --git a/apt-pkg/acquire-worker.cc b/apt-pkg/acquire-worker.cc index c15e7ab4c..4aa55a743 100644 --- a/apt-pkg/acquire-worker.cc +++ b/apt-pkg/acquire-worker.cc @@ -14,27 +14,27 @@ // Include Files /*{{{*/ #include -#include -#include #include +#include +#include #include #include #include -#include #include +#include #include +#include #include #include -#include -#include -#include -#include +#include +#include #include #include -#include -#include +#include +#include +#include #include /*}}}*/ diff --git a/apt-pkg/acquire-worker.h b/apt-pkg/acquire-worker.h index 42762abe0..8fc686880 100644 --- a/apt-pkg/acquire-worker.h +++ b/apt-pkg/acquire-worker.h @@ -21,9 +21,9 @@ #include #include -#include #include #include +#include /** \brief A fetch subprocess. * diff --git a/apt-pkg/acquire.cc b/apt-pkg/acquire.cc index f1dbff9f1..05f22f243 100644 --- a/apt-pkg/acquire.cc +++ b/apt-pkg/acquire.cc @@ -15,35 +15,35 @@ // Include Files /*{{{*/ #include -#include #include #include +#include #include #include -#include #include +#include #include +#include +#include +#include #include +#include #include #include -#include -#include -#include -#include +#include +#include +#include +#include +#include #include #include #include -#include -#include -#include -#include -#include -#include #include -#include #include +#include +#include #include /*}}}*/ diff --git a/apt-pkg/acquire.h b/apt-pkg/acquire.h index 8331c56e9..e58aeef65 100644 --- a/apt-pkg/acquire.h +++ b/apt-pkg/acquire.h @@ -65,16 +65,16 @@ #ifndef PKGLIB_ACQUIRE_H #define PKGLIB_ACQUIRE_H +#include #include #include -#include #include #include #include -#include #include +#include #ifndef APT_10_CLEANER_HEADERS #include diff --git a/apt-pkg/algorithms.cc b/apt-pkg/algorithms.cc index 2b4cf9eb7..643ff8afd 100644 --- a/apt-pkg/algorithms.cc +++ b/apt-pkg/algorithms.cc @@ -17,20 +17,20 @@ #include #include -#include #include -#include #include +#include +#include +#include #include #include #include -#include -#include -#include #include #include +#include #include +#include #include /*}}}*/ diff --git a/apt-pkg/algorithms.h b/apt-pkg/algorithms.h index 64ffef8a0..c5c9f4c69 100644 --- a/apt-pkg/algorithms.h +++ b/apt-pkg/algorithms.h @@ -29,9 +29,8 @@ #ifndef PKGLIB_ALGORITHMS_H #define PKGLIB_ALGORITHMS_H - -#include #include +#include #include #include @@ -46,8 +45,8 @@ using std::ostream; #ifndef APT_9_CLEANER_HEADERS // include pkg{DistUpgrade,AllUpgrade,MiniizeUpgrade} here for compatibility -#include #include +#include #endif diff --git a/apt-pkg/aptconfiguration.cc b/apt-pkg/aptconfiguration.cc index 0035f70df..405472a72 100644 --- a/apt-pkg/aptconfiguration.cc +++ b/apt-pkg/aptconfiguration.cc @@ -15,20 +15,20 @@ #include #include #include -#include #include +#include +#include +#include +#include +#include #include -#include #include -#include #include +#include #include #include #include -#include -#include -#include /*}}}*/ namespace APT { diff --git a/apt-pkg/aptconfiguration.h b/apt-pkg/aptconfiguration.h index fbd9b02e6..6776f96ef 100644 --- a/apt-pkg/aptconfiguration.h +++ b/apt-pkg/aptconfiguration.h @@ -11,9 +11,9 @@ #ifndef APT_CONFIGURATION_H #define APT_CONFIGURATION_H // Include Files /*{{{*/ +#include #include #include -#include /*}}}*/ namespace APT { namespace Configuration { /*{{{*/ diff --git a/apt-pkg/cachefile.cc b/apt-pkg/cachefile.cc index b5f32fc29..0116308e5 100644 --- a/apt-pkg/cachefile.cc +++ b/apt-pkg/cachefile.cc @@ -15,24 +15,24 @@ #include #include -#include -#include -#include #include -#include -#include -#include -#include #include +#include +#include +#include #include #include -#include +#include +#include +#include +#include +#include -#include -#include +#include #include #include -#include +#include +#include #include /*}}}*/ diff --git a/apt-pkg/cachefilter.cc b/apt-pkg/cachefilter.cc index 8861d5354..4cbe162e9 100644 --- a/apt-pkg/cachefilter.cc +++ b/apt-pkg/cachefilter.cc @@ -9,16 +9,16 @@ #include #include #include +#include #include #include -#include #include #include #include -#include -#include #include +#include +#include #include /*}}}*/ diff --git a/apt-pkg/cacheiterators.h b/apt-pkg/cacheiterators.h index 62d0ab59c..fdc7fbc07 100644 --- a/apt-pkg/cacheiterators.h +++ b/apt-pkg/cacheiterators.h @@ -29,17 +29,17 @@ /*}}}*/ #ifndef PKGLIB_CACHEITERATORS_H #define PKGLIB_CACHEITERATORS_H -#include -#include +#include +#include -#include #include +#include #include #ifdef APT_PKG_EXPOSE_STRING_VIEW #include #endif -#include +#include // abstract Iterator template /*{{{*/ /* This template provides the very basic iterator methods we diff --git a/apt-pkg/cacheset.cc b/apt-pkg/cacheset.cc index 4591f39b9..92f707cba 100644 --- a/apt-pkg/cacheset.cc +++ b/apt-pkg/cacheset.cc @@ -15,23 +15,23 @@ #include #include #include -#include -#include -#include -#include #include #include +#include +#include #include #include -#include +#include +#include +#include -#include -#include -#include -#include #include #include #include +#include +#include +#include +#include #include /*}}}*/ diff --git a/apt-pkg/cacheset.h b/apt-pkg/cacheset.h index 07b1f1f9d..157f6139e 100644 --- a/apt-pkg/cacheset.h +++ b/apt-pkg/cacheset.h @@ -13,22 +13,22 @@ #include #include #if __cplusplus >= 201103L -#include #include #include +#include #endif -#include +#include #include -#include -#include #include -#include +#include +#include +#include #include #include -#include #include +#include #ifndef APT_8_CLEANER_HEADERS #include diff --git a/apt-pkg/cdrom.cc b/apt-pkg/cdrom.cc index a3248fc17..2dccc6d12 100644 --- a/apt-pkg/cdrom.cc +++ b/apt-pkg/cdrom.cc @@ -2,31 +2,30 @@ */ #include -#include -#include -#include -#include #include +#include +#include #include +#include #include #include +#include - -#include +#include +#include +#include #include +#include #include #include -#include #include -#include -#include -#include #include -#include -#include -#include +#include +#include +#include +#include -#include +#include using namespace std; diff --git a/apt-pkg/cdrom.h b/apt-pkg/cdrom.h index ab1e046bf..7425c09c1 100644 --- a/apt-pkg/cdrom.h +++ b/apt-pkg/cdrom.h @@ -3,8 +3,8 @@ #include -#include -#include +#include +#include #include diff --git a/apt-pkg/clean.cc b/apt-pkg/clean.cc index 9fa0fb4e8..e9bf73b6c 100644 --- a/apt-pkg/clean.cc +++ b/apt-pkg/clean.cc @@ -8,23 +8,23 @@ ##################################################################### */ /*}}}*/ // Includes /*{{{*/ -#include +#include +#include #include -#include -#include #include -#include +#include #include #include +#include #include -#include #include -#include +#include +#include #include +#include #include -#include #include /*}}}*/ diff --git a/apt-pkg/contrib/cdromutl.cc b/apt-pkg/contrib/cdromutl.cc index 3628f6173..93bfb9f42 100644 --- a/apt-pkg/contrib/cdromutl.cc +++ b/apt-pkg/contrib/cdromutl.cc @@ -10,26 +10,26 @@ ##################################################################### */ /*}}}*/ // Include Files /*{{{*/ -#include +#include #include +#include #include -#include #include -#include +#include #include -#include -#include #include #include #include -#include #include #include +#include +#include +#include #include +#include #include -#include #include /*}}}*/ diff --git a/apt-pkg/contrib/cmndline.cc b/apt-pkg/contrib/cmndline.cc index 029ec3060..2b8bef2c5 100644 --- a/apt-pkg/contrib/cmndline.cc +++ b/apt-pkg/contrib/cmndline.cc @@ -11,17 +11,17 @@ ##################################################################### */ /*}}}*/ // Include files /*{{{*/ -#include +#include -#include #include +#include #include #include +#include #include #include #include -#include #include /*}}}*/ diff --git a/apt-pkg/contrib/configuration.cc b/apt-pkg/contrib/configuration.cc index 78a98d614..442e31dff 100644 --- a/apt-pkg/contrib/configuration.cc +++ b/apt-pkg/contrib/configuration.cc @@ -19,9 +19,9 @@ #include #include -#include #include #include +#include #include #include @@ -31,13 +31,13 @@ #include #include -#include -#include -#include -#include #include +#include #include +#include +#include #include +#include #include diff --git a/apt-pkg/contrib/configuration.h b/apt-pkg/contrib/configuration.h index 97a01e4cf..8d0835cf5 100644 --- a/apt-pkg/contrib/configuration.h +++ b/apt-pkg/contrib/configuration.h @@ -30,9 +30,9 @@ #include +#include #include #include -#include #include diff --git a/apt-pkg/contrib/error.cc b/apt-pkg/contrib/error.cc index c06ea8364..0233dfd59 100644 --- a/apt-pkg/contrib/error.cc +++ b/apt-pkg/contrib/error.cc @@ -17,17 +17,17 @@ #include -#include -#include -#include +#include +#include #include +#include +#include #include +#include +#include #include #include #include -#include -#include -#include /*}}}*/ @@ -37,20 +37,21 @@ Per-Thread error object is maintained in much the same manner as libc manages errno */ #if defined(_POSIX_THREADS) && defined(HAVE_PTHREAD) - #include +#include - static pthread_key_t ErrorKey; - static void ErrorDestroy(void *Obj) {delete (GlobalError *)Obj;}; - static void KeyAlloc() {pthread_key_create(&ErrorKey,ErrorDestroy);}; +static pthread_key_t ErrorKey; +static void ErrorDestroy(void *Obj) { delete (GlobalError *)Obj; }; +static void KeyAlloc() { pthread_key_create(&ErrorKey, ErrorDestroy); }; - GlobalError *_GetErrorObj() { - static pthread_once_t Once = PTHREAD_ONCE_INIT; - pthread_once(&Once,KeyAlloc); +GlobalError *_GetErrorObj() +{ + static pthread_once_t Once = PTHREAD_ONCE_INIT; + pthread_once(&Once, KeyAlloc); - void *Res = pthread_getspecific(ErrorKey); - if (Res == 0) - pthread_setspecific(ErrorKey,Res = new GlobalError); - return (GlobalError *)Res; + void *Res = pthread_getspecific(ErrorKey); + if (Res == 0) + pthread_setspecific(ErrorKey, Res = new GlobalError); + return (GlobalError *)Res; } #else GlobalError *_GetErrorObj() { diff --git a/apt-pkg/contrib/error.h b/apt-pkg/contrib/error.h index b01a5fc1b..74b5cd5cf 100644 --- a/apt-pkg/contrib/error.h +++ b/apt-pkg/contrib/error.h @@ -46,8 +46,8 @@ #include #include -#include #include +#include class GlobalError /*{{{*/ { diff --git a/apt-pkg/contrib/fileutl.cc b/apt-pkg/contrib/fileutl.cc index e87102cbc..630a98ce4 100644 --- a/apt-pkg/contrib/fileutl.cc +++ b/apt-pkg/contrib/fileutl.cc @@ -19,52 +19,52 @@ // Include Files /*{{{*/ #include -#include -#include -#include -#include #include #include +#include +#include #include +#include +#include -#include -#include -#include -#include -#include -#include -#include +#include #include #include -#include #include -#include -#include -#include -#include -#include +#include +#include +#include #include -#include #include +#include #include -#include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include -#include #include #include +#include #ifdef HAVE_ZLIB - #include +#include #endif #ifdef HAVE_BZ2 - #include +#include #endif #ifdef HAVE_LZMA - #include +#include #endif #ifdef HAVE_LZ4 - #include +#include #endif #include #include diff --git a/apt-pkg/contrib/fileutl.h b/apt-pkg/contrib/fileutl.h index b3804cccc..5e857b5c8 100644 --- a/apt-pkg/contrib/fileutl.h +++ b/apt-pkg/contrib/fileutl.h @@ -21,12 +21,12 @@ #ifndef PKGLIB_FILEUTL_H #define PKGLIB_FILEUTL_H -#include #include +#include +#include #include #include -#include #include #include diff --git a/apt-pkg/contrib/gpgv.cc b/apt-pkg/contrib/gpgv.cc index cdf9481cb..cc1fbc5aa 100644 --- a/apt-pkg/contrib/gpgv.cc +++ b/apt-pkg/contrib/gpgv.cc @@ -1,21 +1,21 @@ // -*- mode: cpp; mode: fold -*- // Include Files /*{{{*/ -#include +#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include #include +#include +#include #include -#include #include -#include +#include #include #include -#include #include #include diff --git a/apt-pkg/contrib/hashes.cc b/apt-pkg/contrib/hashes.cc index 4727d489e..5a1d356f1 100644 --- a/apt-pkg/contrib/hashes.cc +++ b/apt-pkg/contrib/hashes.cc @@ -13,19 +13,19 @@ // Include Files /*{{{*/ #include -#include -#include #include +#include +#include #include #include #include -#include #include -#include -#include -#include #include +#include +#include +#include +#include /*}}}*/ const char * HashString::_SupportedHashes[] = diff --git a/apt-pkg/contrib/hashes.h b/apt-pkg/contrib/hashes.h index 1fe0afc00..1f8f45cb1 100644 --- a/apt-pkg/contrib/hashes.h +++ b/apt-pkg/contrib/hashes.h @@ -13,11 +13,10 @@ #ifndef APTPKG_HASHES_H #define APTPKG_HASHES_H - +#include #include #include #include -#include #include #include diff --git a/apt-pkg/contrib/hashsum.cc b/apt-pkg/contrib/hashsum.cc index 25ccc187d..e8e86e92c 100644 --- a/apt-pkg/contrib/hashsum.cc +++ b/apt-pkg/contrib/hashsum.cc @@ -3,9 +3,9 @@ #include +#include "hashsum_template.h" #include #include -#include "hashsum_template.h" // Summation::AddFD - Add content of file into the checksum /*{{{*/ // --------------------------------------------------------------------- diff --git a/apt-pkg/contrib/hashsum_template.h b/apt-pkg/contrib/hashsum_template.h index e5032d02f..2594f6aeb 100644 --- a/apt-pkg/contrib/hashsum_template.h +++ b/apt-pkg/contrib/hashsum_template.h @@ -10,9 +10,8 @@ #ifndef APTPKG_HASHSUM_TEMPLATE_H #define APTPKG_HASHSUM_TEMPLATE_H - -#include #include +#include #ifdef APT_PKG_EXPOSE_STRING_VIEW #include #endif diff --git a/apt-pkg/contrib/md5.h b/apt-pkg/contrib/md5.h index a286f092a..ad0d31374 100644 --- a/apt-pkg/contrib/md5.h +++ b/apt-pkg/contrib/md5.h @@ -28,9 +28,9 @@ #include "hashsum_template.h" #ifndef APT_10_CLEANER_HEADERS -#include -#include #include +#include +#include #endif #ifndef APT_8_CLEANER_HEADERS using std::string; diff --git a/apt-pkg/contrib/mmap.cc b/apt-pkg/contrib/mmap.cc index cd24a2808..100796cdf 100644 --- a/apt-pkg/contrib/mmap.cc +++ b/apt-pkg/contrib/mmap.cc @@ -19,17 +19,17 @@ #define _DEFAULT_SOURCE #include -#include #include #include #include +#include +#include #include +#include +#include #include #include -#include -#include -#include #include /*}}}*/ diff --git a/apt-pkg/contrib/mmap.h b/apt-pkg/contrib/mmap.h index 62e64b95e..df02b1b85 100644 --- a/apt-pkg/contrib/mmap.h +++ b/apt-pkg/contrib/mmap.h @@ -25,7 +25,6 @@ #ifndef PKGLIB_MMAP_H #define PKGLIB_MMAP_H - #include #ifndef APT_8_CLEANER_HEADERS diff --git a/apt-pkg/contrib/netrc.cc b/apt-pkg/contrib/netrc.cc index 8840de72c..88027c989 100644 --- a/apt-pkg/contrib/netrc.cc +++ b/apt-pkg/contrib/netrc.cc @@ -17,12 +17,12 @@ #include #include +#include +#include #include #include #include #include -#include -#include #include "netrc.h" diff --git a/apt-pkg/contrib/progress.cc b/apt-pkg/contrib/progress.cc index b93018154..7c5b15e6b 100644 --- a/apt-pkg/contrib/progress.cc +++ b/apt-pkg/contrib/progress.cc @@ -10,15 +10,15 @@ // Include Files /*{{{*/ #include -#include -#include #include +#include +#include -#include -#include +#include #include +#include #include -#include +#include #include /*}}}*/ diff --git a/apt-pkg/contrib/progress.h b/apt-pkg/contrib/progress.h index 427b1bd35..43c84da71 100644 --- a/apt-pkg/contrib/progress.h +++ b/apt-pkg/contrib/progress.h @@ -21,10 +21,9 @@ #ifndef PKGLIB_PROGRESS_H #define PKGLIB_PROGRESS_H - +#include #include #include -#include #ifndef APT_8_CLEANER_HEADERS using std::string; diff --git a/apt-pkg/contrib/proxy.cc b/apt-pkg/contrib/proxy.cc index 9af76bdce..86582e1aa 100644 --- a/apt-pkg/contrib/proxy.cc +++ b/apt-pkg/contrib/proxy.cc @@ -7,15 +7,15 @@ ##################################################################### */ /*}}}*/ // Include Files /*{{{*/ -#include -#include -#include -#include +#include +#include +#include +#include #include -#include -#include -#include +#include +#include +#include #include "proxy.h" /*}}}*/ diff --git a/apt-pkg/contrib/sha1.h b/apt-pkg/contrib/sha1.h index 3387c1cfd..967e2eae0 100644 --- a/apt-pkg/contrib/sha1.h +++ b/apt-pkg/contrib/sha1.h @@ -17,9 +17,9 @@ #include "hashsum_template.h" #ifndef APT_10_CLEANER_HEADERS -#include -#include #include +#include +#include #endif #ifndef APT_8_CLEANER_HEADERS using std::string; diff --git a/apt-pkg/contrib/sha2.h b/apt-pkg/contrib/sha2.h index 164840d3b..d8127c66b 100644 --- a/apt-pkg/contrib/sha2.h +++ b/apt-pkg/contrib/sha2.h @@ -16,12 +16,12 @@ #include -#include "sha2_internal.h" #include "hashsum_template.h" +#include "sha2_internal.h" #ifndef APT_10_CLEANER_HEADERS -#include #include +#include #include #endif diff --git a/apt-pkg/contrib/sha2_internal.cc b/apt-pkg/contrib/sha2_internal.cc index 1c9844ca8..419b92aca 100644 --- a/apt-pkg/contrib/sha2_internal.cc +++ b/apt-pkg/contrib/sha2_internal.cc @@ -33,10 +33,10 @@ */ #include -#include -#include /* memcpy()/memset() or bcopy()/bzero() */ -#include /* assert() */ #include "sha2_internal.h" +#include /* assert() */ +#include +#include /* memcpy()/memset() or bcopy()/bzero() */ /* * ASSERT NOTE: diff --git a/apt-pkg/contrib/sha2_internal.h b/apt-pkg/contrib/sha2_internal.h index 1b82d965d..fa4bfc4df 100644 --- a/apt-pkg/contrib/sha2_internal.h +++ b/apt-pkg/contrib/sha2_internal.h @@ -44,8 +44,8 @@ #ifdef SHA2_USE_INTTYPES_H -#include #include +#include #endif /* SHA2_USE_INTTYPES_H */ diff --git a/apt-pkg/contrib/srvrec.cc b/apt-pkg/contrib/srvrec.cc index 327e59937..930989bfc 100644 --- a/apt-pkg/contrib/srvrec.cc +++ b/apt-pkg/contrib/srvrec.cc @@ -10,8 +10,8 @@ #include -#include #include +#include #include #include @@ -22,10 +22,8 @@ #include #include - #include "srvrec.h" - bool SrvRec::operator==(SrvRec const &other) const { return (std::tie(target, priority, weight, port) == diff --git a/apt-pkg/contrib/srvrec.h b/apt-pkg/contrib/srvrec.h index 01b810281..e22b7a1c6 100644 --- a/apt-pkg/contrib/srvrec.h +++ b/apt-pkg/contrib/srvrec.h @@ -9,9 +9,9 @@ #ifndef SRVREC_H #define SRVREC_H -#include -#include #include +#include +#include class SrvRec { diff --git a/apt-pkg/contrib/string_view.h b/apt-pkg/contrib/string_view.h index c504edd27..536744e32 100644 --- a/apt-pkg/contrib/string_view.h +++ b/apt-pkg/contrib/string_view.h @@ -11,9 +11,9 @@ #if !defined(APT_STRINGVIEW_H) && defined(APT_PKG_EXPOSE_STRING_VIEW) #define APT_STRINGVIEW_H -#include -#include #include +#include +#include namespace APT { diff --git a/apt-pkg/contrib/strutl.cc b/apt-pkg/contrib/strutl.cc index 88113f7a4..964f0d6c6 100644 --- a/apt-pkg/contrib/strutl.cc +++ b/apt-pkg/contrib/strutl.cc @@ -17,30 +17,30 @@ // Includes /*{{{*/ #include -#include -#include #include +#include +#include -#include #include +#include #include #include #include -#include #include +#include #include +#include +#include +#include +#include +#include #include +#include #include -#include -#include #include -#include +#include #include -#include -#include -#include -#include #include /*}}}*/ diff --git a/apt-pkg/contrib/strutl.h b/apt-pkg/contrib/strutl.h index 73f27aa6c..cc39521da 100644 --- a/apt-pkg/contrib/strutl.h +++ b/apt-pkg/contrib/strutl.h @@ -16,17 +16,16 @@ #ifndef STRUTL_H #define STRUTL_H - +#include +#include #include #include -#include #include -#include #ifdef APT_PKG_EXPOSE_STRING_VIEW #include #endif -#include #include +#include #include "macros.h" diff --git a/apt-pkg/deb/debindexfile.cc b/apt-pkg/deb/debindexfile.cc index 96a55d4da..6aa3af162 100644 --- a/apt-pkg/deb/debindexfile.cc +++ b/apt-pkg/deb/debindexfile.cc @@ -11,11 +11,11 @@ // Include Files /*{{{*/ #include +#include #include -#include #include #include -#include +#include #include #include #include @@ -23,11 +23,11 @@ #include #include -#include #include #include -#include #include +#include +#include #include #include diff --git a/apt-pkg/deb/deblistparser.cc b/apt-pkg/deb/deblistparser.cc index c35fbe416..378988a1c 100644 --- a/apt-pkg/deb/deblistparser.cc +++ b/apt-pkg/deb/deblistparser.cc @@ -12,25 +12,25 @@ // Include Files /*{{{*/ #include -#include -#include -#include -#include #include -#include +#include +#include #include +#include +#include +#include #include #include -#include +#include #include -#include +#include -#include -#include #include #include #include #include +#include +#include /*}}}*/ using std::string; diff --git a/apt-pkg/deb/deblistparser.h b/apt-pkg/deb/deblistparser.h index 39f42915c..8d7efc746 100644 --- a/apt-pkg/deb/deblistparser.h +++ b/apt-pkg/deb/deblistparser.h @@ -11,11 +11,11 @@ #ifndef PKGLIB_DEBLISTPARSER_H #define PKGLIB_DEBLISTPARSER_H -#include -#include +#include #include #include -#include +#include +#include #include #include diff --git a/apt-pkg/deb/debmetaindex.cc b/apt-pkg/deb/debmetaindex.cc index d7c458e66..a0adf85be 100644 --- a/apt-pkg/deb/debmetaindex.cc +++ b/apt-pkg/deb/debmetaindex.cc @@ -1,30 +1,30 @@ #include -#include -#include -#include -#include -#include #include -#include #include -#include +#include +#include +#include +#include +#include +#include #include +#include #include #include +#include +#include #include -#include -#include +#include #include +#include #include #include #include -#include -#include -#include #include +#include #include diff --git a/apt-pkg/deb/debmetaindex.h b/apt-pkg/deb/debmetaindex.h index 450ca94c9..5a97cfc78 100644 --- a/apt-pkg/deb/debmetaindex.h +++ b/apt-pkg/deb/debmetaindex.h @@ -1,8 +1,8 @@ #ifndef PKGLIB_DEBMETAINDEX_H #define PKGLIB_DEBMETAINDEX_H -#include #include +#include #include #include diff --git a/apt-pkg/deb/debrecords.cc b/apt-pkg/deb/debrecords.cc index 54e09e74d..bc4a378eb 100644 --- a/apt-pkg/deb/debrecords.cc +++ b/apt-pkg/deb/debrecords.cc @@ -10,21 +10,21 @@ // Include Files /*{{{*/ #include -#include -#include -#include #include +#include +#include +#include #include #include +#include #include -#include -#include #include #include #include #include #include +#include #include /*}}}*/ diff --git a/apt-pkg/deb/debrecords.h b/apt-pkg/deb/debrecords.h index ae75a2b78..828c2b93b 100644 --- a/apt-pkg/deb/debrecords.h +++ b/apt-pkg/deb/debrecords.h @@ -14,10 +14,10 @@ #ifndef PKGLIB_DEBRECORDS_H #define PKGLIB_DEBRECORDS_H -#include -#include #include #include +#include +#include #include diff --git a/apt-pkg/deb/debsrcrecords.cc b/apt-pkg/deb/debsrcrecords.cc index d664b609e..0368817c2 100644 --- a/apt-pkg/deb/debsrcrecords.cc +++ b/apt-pkg/deb/debsrcrecords.cc @@ -11,22 +11,22 @@ // Include Files /*{{{*/ #include +#include #include #include #include -#include -#include +#include +#include #include +#include #include -#include -#include -#include -#include -#include #include #include #include +#include +#include +#include /*}}}*/ using std::max; diff --git a/apt-pkg/deb/debsrcrecords.h b/apt-pkg/deb/debsrcrecords.h index 850040cf5..349e66ba2 100644 --- a/apt-pkg/deb/debsrcrecords.h +++ b/apt-pkg/deb/debsrcrecords.h @@ -11,13 +11,13 @@ #ifndef PKGLIB_DEBSRCRECORDS_H #define PKGLIB_DEBSRCRECORDS_H +#include #include #include -#include -#include #include #include +#include class pkgIndexFile; diff --git a/apt-pkg/deb/debsystem.cc b/apt-pkg/deb/debsystem.cc index d2b530cff..3ad25ba05 100644 --- a/apt-pkg/deb/debsystem.cc +++ b/apt-pkg/deb/debsystem.cc @@ -12,29 +12,29 @@ // Include Files /*{{{*/ #include +#include +#include #include #include -#include #include -#include #include #include #include #include -#include -#include -#include #include #include -#include +#include #include #include -#include +#include +#include +#include #include +#include #include -#include +#include #include /*}}}*/ diff --git a/apt-pkg/deb/debsystem.h b/apt-pkg/deb/debsystem.h index 1a3701046..9fdecb42f 100644 --- a/apt-pkg/deb/debsystem.h +++ b/apt-pkg/deb/debsystem.h @@ -10,8 +10,8 @@ #ifndef PKGLIB_DEBSYSTEM_H #define PKGLIB_DEBSYSTEM_H -#include #include +#include #include class Configuration; diff --git a/apt-pkg/deb/debversion.cc b/apt-pkg/deb/debversion.cc index 48462c6a2..9fe2fd6b3 100644 --- a/apt-pkg/deb/debversion.cc +++ b/apt-pkg/deb/debversion.cc @@ -15,9 +15,9 @@ #include #include -#include -#include #include +#include +#include /*}}}*/ debVersioningSystem debVS; diff --git a/apt-pkg/deb/dpkgpm.cc b/apt-pkg/deb/dpkgpm.cc index b55cd951f..58599193e 100644 --- a/apt-pkg/deb/dpkgpm.cc +++ b/apt-pkg/deb/dpkgpm.cc @@ -11,19 +11,20 @@ #include #include +#include #include #include -#include #include #include #include -#include -#include -#include #include +#include #include +#include +#include #include +#include #include #include #include @@ -36,9 +37,8 @@ #include #include #include -#include #include -#include +#include #include #include #include @@ -48,14 +48,14 @@ #include #include #include +#include #include +#include #include #include -#include #include +#include #include -#include -#include #include /*}}}*/ diff --git a/apt-pkg/deb/dpkgpm.h b/apt-pkg/deb/dpkgpm.h index d1c2bcf41..324551387 100644 --- a/apt-pkg/deb/dpkgpm.h +++ b/apt-pkg/deb/dpkgpm.h @@ -10,14 +10,14 @@ #ifndef PKGLIB_DPKGPM_H #define PKGLIB_DPKGPM_H +#include #include #include -#include -#include #include -#include #include +#include +#include #ifndef APT_10_CLEANER_HEADERS #include diff --git a/apt-pkg/depcache.cc b/apt-pkg/depcache.cc index 71026f816..efe26dee3 100644 --- a/apt-pkg/depcache.cc +++ b/apt-pkg/depcache.cc @@ -8,33 +8,33 @@ ##################################################################### */ /*}}}*/ // Include Files /*{{{*/ -#include +#include +#include +#include +#include +#include #include -#include -#include #include #include -#include -#include -#include -#include -#include -#include +#include #include #include -#include -#include +#include +#include +#include +#include +#include -#include -#include +#include +#include #include +#include #include #include #include -#include -#include -#include +#include +#include #include diff --git a/apt-pkg/depcache.h b/apt-pkg/depcache.h index 58422f61b..87b42b7ca 100644 --- a/apt-pkg/depcache.h +++ b/apt-pkg/depcache.h @@ -38,19 +38,19 @@ #define PKGLIB_DEPCACHE_H #include -#include #include +#include #include -#include #include +#include #include #include #ifndef APT_8_CLEANER_HEADERS -#include #include +#include #endif #ifndef APT_10_CLEANER_HEADERS #include diff --git a/apt-pkg/edsp.cc b/apt-pkg/edsp.cc index f0c3fc42c..2e39be377 100644 --- a/apt-pkg/edsp.cc +++ b/apt-pkg/edsp.cc @@ -8,26 +8,26 @@ #include #include -#include #include #include +#include +#include +#include +#include #include +#include #include -#include #include -#include -#include -#include -#include #include -#include +#include +#include -#include #include #include +#include #include +#include #include -#include #include #include diff --git a/apt-pkg/edsp.h b/apt-pkg/edsp.h index b3a1d29ea..2f18d76eb 100644 --- a/apt-pkg/edsp.h +++ b/apt-pkg/edsp.h @@ -10,8 +10,8 @@ #define PKGLIB_EDSP_H #include -#include #include +#include #include diff --git a/apt-pkg/edsp/edspindexfile.cc b/apt-pkg/edsp/edspindexfile.cc index 2d030daaf..1a8af89f0 100644 --- a/apt-pkg/edsp/edspindexfile.cc +++ b/apt-pkg/edsp/edspindexfile.cc @@ -16,10 +16,10 @@ #include #include -#include -#include #include #include +#include +#include /*}}}*/ // EDSP-like Index /*{{{*/ diff --git a/apt-pkg/edsp/edsplistparser.cc b/apt-pkg/edsp/edsplistparser.cc index 2afa7538b..b118e127d 100644 --- a/apt-pkg/edsp/edsplistparser.cc +++ b/apt-pkg/edsp/edsplistparser.cc @@ -12,14 +12,14 @@ #include #include +#include #include +#include #include -#include #include -#include -#include #include #include +#include #include diff --git a/apt-pkg/edsp/edsplistparser.h b/apt-pkg/edsp/edsplistparser.h index 4904b6567..0fcc3f5fd 100644 --- a/apt-pkg/edsp/edsplistparser.h +++ b/apt-pkg/edsp/edsplistparser.h @@ -12,15 +12,15 @@ #define PKGLIB_EDSPLISTPARSER_H #include +#include #include #include -#include #include #ifndef APT_8_CLEANER_HEADERS -#include #include +#include #include #endif diff --git a/apt-pkg/edsp/edspsystem.cc b/apt-pkg/edsp/edspsystem.cc index d921f0126..47f5e06d5 100644 --- a/apt-pkg/edsp/edspsystem.cc +++ b/apt-pkg/edsp/edspsystem.cc @@ -15,8 +15,8 @@ #include #include #include -#include #include +#include #include #include diff --git a/apt-pkg/edsp/edspsystem.h b/apt-pkg/edsp/edspsystem.h index 5ea7a45f3..af8bcf128 100644 --- a/apt-pkg/edsp/edspsystem.h +++ b/apt-pkg/edsp/edspsystem.h @@ -10,8 +10,8 @@ #ifndef PKGLIB_EDSPSYSTEM_H #define PKGLIB_EDSPSYSTEM_H -#include #include +#include #include #include diff --git a/apt-pkg/indexcopy.cc b/apt-pkg/indexcopy.cc index ca5c42cb7..11d2e934e 100644 --- a/apt-pkg/indexcopy.cc +++ b/apt-pkg/indexcopy.cc @@ -10,28 +10,28 @@ ##################################################################### */ /*}}}*/ // Include Files /*{{{*/ -#include +#include -#include -#include -#include -#include #include -#include -#include -#include #include +#include +#include +#include +#include #include #include -#include +#include +#include +#include +#include #include -#include -#include +#include #include #include #include -#include +#include +#include #include "indexcopy.h" #include diff --git a/apt-pkg/indexfile.cc b/apt-pkg/indexfile.cc index 2b3554d2c..492f29c5a 100644 --- a/apt-pkg/indexfile.cc +++ b/apt-pkg/indexfile.cc @@ -8,30 +8,30 @@ ##################################################################### */ /*}}}*/ // Include Files /*{{{*/ -#include +#include +#include #include -#include +#include #include #include -#include +#include +#include #include #include +#include #include #include -#include -#include -#include #include #include -#include -#include #include #include #include +#include +#include /*}}}*/ // Global list of Item supported diff --git a/apt-pkg/indexfile.h b/apt-pkg/indexfile.h index 52ec5cb88..10b15fde4 100644 --- a/apt-pkg/indexfile.h +++ b/apt-pkg/indexfile.h @@ -21,10 +21,10 @@ #ifndef PKGLIB_INDEXFILE_H #define PKGLIB_INDEXFILE_H -#include -#include -#include #include +#include +#include +#include #include #include diff --git a/apt-pkg/init.cc b/apt-pkg/init.cc index 00d991027..af4e6faa0 100644 --- a/apt-pkg/init.cc +++ b/apt-pkg/init.cc @@ -8,23 +8,23 @@ ##################################################################### */ /*}}}*/ // Include files /*{{{*/ -#include +#include -#include -#include +#include #include +#include +#include +#include #include -#include #include -#include -#include #include #include #include #include #include #include +#include #include /*}}}*/ diff --git a/apt-pkg/install-progress.cc b/apt-pkg/install-progress.cc index 6c3e51b2c..913068a66 100644 --- a/apt-pkg/install-progress.cc +++ b/apt-pkg/install-progress.cc @@ -2,19 +2,19 @@ #include #include -#include #include +#include -#include -#include +#include +#include #include +#include #include -#include #include -#include +#include #include -#include -#include +#include +#include #include diff --git a/apt-pkg/install-progress.h b/apt-pkg/install-progress.h index b5c133676..bcc0b615a 100644 --- a/apt-pkg/install-progress.h +++ b/apt-pkg/install-progress.h @@ -4,9 +4,9 @@ #include #include -#include -#include #include +#include +#include namespace APT { namespace Progress { diff --git a/apt-pkg/metaindex.cc b/apt-pkg/metaindex.cc index 695cf8804..bdae6dcc9 100644 --- a/apt-pkg/metaindex.cc +++ b/apt-pkg/metaindex.cc @@ -1,13 +1,13 @@ // Include Files /*{{{*/ -#include #include #include +#include #include #include #include - /*}}}*/ + /*}}}*/ class metaIndexPrivate /*{{{*/ { diff --git a/apt-pkg/metaindex.h b/apt-pkg/metaindex.h index 1951f118f..91cfce59b 100644 --- a/apt-pkg/metaindex.h +++ b/apt-pkg/metaindex.h @@ -15,8 +15,8 @@ class pkgCacheGenerator; class OpProgress; #endif #ifndef APT_8_CLEANER_HEADERS -#include #include +#include using std::string; #endif diff --git a/apt-pkg/orderlist.cc b/apt-pkg/orderlist.cc index c7aae6450..c968845ce 100644 --- a/apt-pkg/orderlist.cc +++ b/apt-pkg/orderlist.cc @@ -63,18 +63,18 @@ ##################################################################### */ /*}}}*/ // Include Files /*{{{*/ -#include +#include -#include +#include #include #include -#include +#include #include -#include -#include #include #include +#include +#include /*}}}*/ using namespace std; diff --git a/apt-pkg/orderlist.h b/apt-pkg/orderlist.h index 19a7d5436..3fa02342b 100644 --- a/apt-pkg/orderlist.h +++ b/apt-pkg/orderlist.h @@ -15,8 +15,8 @@ #ifndef PKGLIB_ORDERLIST_H #define PKGLIB_ORDERLIST_H -#include #include +#include #include diff --git a/apt-pkg/packagemanager.cc b/apt-pkg/packagemanager.cc index 579c31901..d5a8275c3 100644 --- a/apt-pkg/packagemanager.cc +++ b/apt-pkg/packagemanager.cc @@ -15,25 +15,25 @@ // Include Files /*{{{*/ #include -#include -#include -#include -#include -#include -#include #include #include #include +#include +#include +#include +#include #include +#include +#include #include -#include -#include #include +#include +#include -#include +#include #include #include -#include +#include #include /*}}}*/ diff --git a/apt-pkg/packagemanager.h b/apt-pkg/packagemanager.h index e4c7a0a0a..d9443443d 100644 --- a/apt-pkg/packagemanager.h +++ b/apt-pkg/packagemanager.h @@ -22,13 +22,13 @@ #ifndef PKGLIB_PACKAGEMANAGER_H #define PKGLIB_PACKAGEMANAGER_H -#include -#include #include +#include #include +#include -#include #include +#include #ifndef APT_10_CLEANER_HEADERS #include diff --git a/apt-pkg/pkgcache.cc b/apt-pkg/pkgcache.cc index 929c7cb33..ea34db469 100644 --- a/apt-pkg/pkgcache.cc +++ b/apt-pkg/pkgcache.cc @@ -20,26 +20,26 @@ ##################################################################### */ /*}}}*/ // Include Files /*{{{*/ -#include +#include +#include +#include +#include +#include +#include #include #include -#include -#include #include -#include -#include -#include -#include +#include -#include -#include -#include +#include #include -#include +#include #include +#include +#include +#include #include -#include #include /*}}}*/ diff --git a/apt-pkg/pkgcache.h b/apt-pkg/pkgcache.h index 91228f713..acf6cf446 100644 --- a/apt-pkg/pkgcache.h +++ b/apt-pkg/pkgcache.h @@ -74,12 +74,12 @@ #ifndef PKGLIB_PKGCACHE_H #define PKGLIB_PKGCACHE_H -#include #include +#include #include -#include #include +#include #ifdef APT_PKG_EXPOSE_STRING_VIEW #include @@ -783,10 +783,13 @@ inline char const * pkgCache::NativeArch() #include -inline pkgCache::GrpIterator pkgCache::GrpBegin() - {return GrpIterator(*this);} -inline pkgCache::GrpIterator pkgCache::GrpEnd() - {return GrpIterator(*this,GrpP);} + inline pkgCache::GrpIterator pkgCache::GrpBegin() + { + return GrpIterator(*this); + } + inline pkgCache::GrpIterator pkgCache::GrpEnd() + { + return GrpIterator(*this, GrpP);} inline pkgCache::PkgIterator pkgCache::PkgBegin() {return PkgIterator(*this);} inline pkgCache::PkgIterator pkgCache::PkgEnd() diff --git a/apt-pkg/pkgcachegen.cc b/apt-pkg/pkgcachegen.cc index cd50d8511..bde0ea122 100644 --- a/apt-pkg/pkgcachegen.cc +++ b/apt-pkg/pkgcachegen.cc @@ -12,29 +12,29 @@ // Include Files /*{{{*/ #include -#include -#include -#include -#include -#include #include -#include -#include -#include +#include #include #include #include +#include #include +#include #include #include +#include +#include +#include +#include +#include -#include -#include +#include #include +#include #include #include -#include -#include +#include +#include #include #include diff --git a/apt-pkg/pkgcachegen.h b/apt-pkg/pkgcachegen.h index f36fadbdc..e11e97e09 100644 --- a/apt-pkg/pkgcachegen.h +++ b/apt-pkg/pkgcachegen.h @@ -18,13 +18,13 @@ #ifndef PKGLIB_PKGCACHEGEN_H #define PKGLIB_PKGCACHEGEN_H +#include #include #include #include -#include -#include #include +#include #if __cplusplus >= 201103L #include #endif diff --git a/apt-pkg/pkgrecords.cc b/apt-pkg/pkgrecords.cc index 1ec753aac..8a5089d8a 100644 --- a/apt-pkg/pkgrecords.cc +++ b/apt-pkg/pkgrecords.cc @@ -9,15 +9,15 @@ ##################################################################### */ /*}}}*/ // Include Files /*{{{*/ -#include +#include -#include -#include #include +#include #include +#include -#include #include +#include #include /*}}}*/ diff --git a/apt-pkg/pkgrecords.h b/apt-pkg/pkgrecords.h index 7c50c5d41..bdbd31a78 100644 --- a/apt-pkg/pkgrecords.h +++ b/apt-pkg/pkgrecords.h @@ -17,9 +17,9 @@ #ifndef PKGLIB_PKGRECORDS_H #define PKGLIB_PKGRECORDS_H -#include #include #include +#include #include #include diff --git a/apt-pkg/pkgsystem.cc b/apt-pkg/pkgsystem.cc index b1c6cc1ea..aa94418c6 100644 --- a/apt-pkg/pkgsystem.cc +++ b/apt-pkg/pkgsystem.cc @@ -10,15 +10,15 @@ ##################################################################### */ /*}}}*/ // Include Files /*{{{*/ -#include +#include #include -#include #include +#include -#include #include #include +#include /*}}}*/ pkgSystem *_system = 0; diff --git a/apt-pkg/policy.cc b/apt-pkg/policy.cc index 639f90991..008c98ecb 100644 --- a/apt-pkg/policy.cc +++ b/apt-pkg/policy.cc @@ -13,26 +13,26 @@ ##################################################################### */ /*}}}*/ // Include Files /*{{{*/ -#include +#include -#include -#include #include -#include -#include -#include +#include #include +#include #include -#include +#include +#include +#include #include +#include +#include +#include +#include +#include #include #include #include -#include -#include -#include -#include #include /*}}}*/ diff --git a/apt-pkg/policy.h b/apt-pkg/policy.h index 77287fe87..bcd1daf3e 100644 --- a/apt-pkg/policy.h +++ b/apt-pkg/policy.h @@ -36,8 +36,8 @@ #include #include -#include #include +#include #ifndef APT_8_CLEANER_HEADERS using std::vector; diff --git a/apt-pkg/prettyprinters.h b/apt-pkg/prettyprinters.h index 51d9f81a0..40f9d6628 100644 --- a/apt-pkg/prettyprinters.h +++ b/apt-pkg/prettyprinters.h @@ -1,7 +1,7 @@ #ifndef APT_PRETTYPRINTERS_H #define APT_PRETTYPRINTERS_H -#include #include +#include class pkgDepCache; diff --git a/apt-pkg/sourcelist.cc b/apt-pkg/sourcelist.cc index 39e8a57a0..17c5c7a11 100644 --- a/apt-pkg/sourcelist.cc +++ b/apt-pkg/sourcelist.cc @@ -8,30 +8,30 @@ ##################################################################### */ /*}}}*/ // Include Files /*{{{*/ -#include +#include -#include #include +#include +#include +#include #include #include -#include -#include -#include #include -#include +#include #include -#include -#include +#include +#include +#include -#include -#include -#include +#include #include +#include #include #include #include -#include -#include +#include +#include +#include #include /*}}}*/ diff --git a/apt-pkg/sourcelist.h b/apt-pkg/sourcelist.h index 3971ce4d0..fedf90fa6 100644 --- a/apt-pkg/sourcelist.h +++ b/apt-pkg/sourcelist.h @@ -22,14 +22,14 @@ #ifndef PKGLIB_SOURCELIST_H #define PKGLIB_SOURCELIST_H -#include #include +#include #include +#include #include #include -#include #ifndef APT_8_CLEANER_HEADERS #include diff --git a/apt-pkg/srcrecords.cc b/apt-pkg/srcrecords.cc index a76604a8d..0c0c7a9fc 100644 --- a/apt-pkg/srcrecords.cc +++ b/apt-pkg/srcrecords.cc @@ -11,19 +11,19 @@ ##################################################################### */ /*}}}*/ // Include Files /*{{{*/ -#include +#include -#include #include #include -#include -#include #include #include +#include +#include +#include -#include #include #include +#include #include /*}}}*/ diff --git a/apt-pkg/srcrecords.h b/apt-pkg/srcrecords.h index a3c8444de..8c52f5683 100644 --- a/apt-pkg/srcrecords.h +++ b/apt-pkg/srcrecords.h @@ -12,8 +12,8 @@ #ifndef PKGLIB_SRCRECORDS_H #define PKGLIB_SRCRECORDS_H -#include #include +#include #include #include diff --git a/apt-pkg/statechanges.cc b/apt-pkg/statechanges.cc index 35af45538..258c84885 100644 --- a/apt-pkg/statechanges.cc +++ b/apt-pkg/statechanges.cc @@ -1,9 +1,9 @@ -#include #include #include #include -#include +#include #include +#include #include #include diff --git a/apt-pkg/statechanges.h b/apt-pkg/statechanges.h index 1eaf21a3a..2f63d516d 100644 --- a/apt-pkg/statechanges.h +++ b/apt-pkg/statechanges.h @@ -1,6 +1,6 @@ -#include #include #include +#include #include diff --git a/apt-pkg/tagfile-compat.cc b/apt-pkg/tagfile-compat.cc index fe53e2974..e2cab474e 100644 --- a/apt-pkg/tagfile-compat.cc +++ b/apt-pkg/tagfile-compat.cc @@ -13,7 +13,7 @@ ##################################################################### */ /*}}}*/ -#include +#include #define APT_COMPILING_TAGFILE_COMPAT_CC #include diff --git a/apt-pkg/tagfile.cc b/apt-pkg/tagfile.cc index d9519175e..7de5c055b 100644 --- a/apt-pkg/tagfile.cc +++ b/apt-pkg/tagfile.cc @@ -11,20 +11,20 @@ ##################################################################### */ /*}}}*/ // Include Files /*{{{*/ -#include +#include -#include -#include #include -#include #include #include +#include +#include +#include #include #include -#include #include +#include #include #include diff --git a/apt-pkg/tagfile.h b/apt-pkg/tagfile.h index e02e7332e..c4dc50a10 100644 --- a/apt-pkg/tagfile.h +++ b/apt-pkg/tagfile.h @@ -21,12 +21,12 @@ #include -#include #include +#include +#include #include #include -#include #ifdef APT_PKG_EXPOSE_STRING_VIEW #include #endif diff --git a/apt-pkg/update.cc b/apt-pkg/update.cc index f7075c446..4c64eeb5d 100644 --- a/apt-pkg/update.cc +++ b/apt-pkg/update.cc @@ -2,11 +2,11 @@ #include #include +#include #include #include #include #include -#include #include #include diff --git a/apt-pkg/upgrade.cc b/apt-pkg/upgrade.cc index 1f3caa7e8..c9432aa64 100644 --- a/apt-pkg/upgrade.cc +++ b/apt-pkg/upgrade.cc @@ -3,12 +3,12 @@ #include #include +#include #include #include +#include #include #include -#include -#include #include diff --git a/apt-pkg/upgrade.h b/apt-pkg/upgrade.h index 2d9c0fa36..5612acfcb 100644 --- a/apt-pkg/upgrade.h +++ b/apt-pkg/upgrade.h @@ -10,8 +10,8 @@ #ifndef PKGLIB_UPGRADE_H #define PKGLIB_UPGRADE_H -#include #include +#include class pkgDepCache; class OpProgress; diff --git a/apt-pkg/version.cc b/apt-pkg/version.cc index f32d39a69..8db311179 100644 --- a/apt-pkg/version.cc +++ b/apt-pkg/version.cc @@ -8,12 +8,12 @@ ##################################################################### */ /*}}}*/ // Include Files /*{{{*/ -#include +#include #include -#include #include +#include /*}}}*/ static pkgVersioningSystem *VSList[10]; diff --git a/apt-pkg/versionmatch.cc b/apt-pkg/versionmatch.cc index a8ed052a5..8106a150e 100644 --- a/apt-pkg/versionmatch.cc +++ b/apt-pkg/versionmatch.cc @@ -11,21 +11,21 @@ ##################################################################### */ /*}}}*/ // Include Files /*{{{*/ -#include +#include -#include -#include #include #include +#include +#include -#include -#include -#include #include -#include #include #include #include +#include +#include +#include +#include /*}}}*/ using std::string; diff --git a/apt-private/acqprogress.cc b/apt-private/acqprogress.cc index 1f053cb9f..a788ec98b 100644 --- a/apt-private/acqprogress.cc +++ b/apt-private/acqprogress.cc @@ -7,23 +7,23 @@ ##################################################################### */ /*}}}*/ // Include files /*{{{*/ -#include +#include -#include #include #include +#include #include -#include #include +#include #include #include -#include -#include -#include #include #include +#include +#include +#include #include #include diff --git a/apt-private/acqprogress.h b/apt-private/acqprogress.h index 196995ac4..c8c211689 100644 --- a/apt-private/acqprogress.h +++ b/apt-private/acqprogress.h @@ -12,8 +12,8 @@ #include #include -#include #include +#include class APT_PUBLIC AcqTextStatus : public pkgAcquireStatus2 { diff --git a/apt-private/private-cachefile.cc b/apt-private/private-cachefile.cc index 77090f8eb..ab25338ff 100644 --- a/apt-private/private-cachefile.cc +++ b/apt-private/private-cachefile.cc @@ -1,20 +1,20 @@ // Include files /*{{{*/ -#include +#include #include -#include -#include +#include #include #include +#include #include -#include +#include -#include #include +#include -#include -#include #include +#include +#include #include /*}}}*/ diff --git a/apt-private/private-cachefile.h b/apt-private/private-cachefile.h index 77e8b61d9..5086ceaeb 100644 --- a/apt-private/private-cachefile.h +++ b/apt-private/private-cachefile.h @@ -2,12 +2,12 @@ #define APT_PRIVATE_CACHEFILE_H #include -#include +#include #include -#include #include +#include +#include #include -#include // class CacheFile - Cover class for some dependency cache functions /*{{{*/ class APT_PUBLIC CacheFile : public pkgCacheFile diff --git a/apt-private/private-cacheset.cc b/apt-private/private-cacheset.cc index 5b15925b2..3d1a2b91c 100644 --- a/apt-private/private-cacheset.cc +++ b/apt-private/private-cacheset.cc @@ -1,13 +1,13 @@ #include +#include #include -#include -#include #include -#include #include -#include +#include +#include #include +#include #include #include diff --git a/apt-private/private-cacheset.h b/apt-private/private-cacheset.h index 37c921081..7bf486b9e 100644 --- a/apt-private/private-cacheset.h +++ b/apt-private/private-cacheset.h @@ -6,10 +6,10 @@ #include -#include #include #include #include +#include class OpProgress; diff --git a/apt-private/private-cmndline.cc b/apt-private/private-cmndline.cc index 6b84324de..2ecc47ba4 100644 --- a/apt-private/private-cmndline.cc +++ b/apt-private/private-cmndline.cc @@ -3,21 +3,21 @@ #include #include +#include #include -#include #include -#include +#include #include #include #include #include -#include #include +#include -#include #include +#include #include /*}}}*/ diff --git a/apt-private/private-depends.cc b/apt-private/private-depends.cc index 2934abc0b..79d66b72a 100644 --- a/apt-private/private-depends.cc +++ b/apt-private/private-depends.cc @@ -1,11 +1,11 @@ // Include Files /*{{{*/ -#include +#include #include #include #include -#include #include +#include #include #include diff --git a/apt-private/private-download.cc b/apt-private/private-download.cc index c8d1b5a09..25dee318e 100644 --- a/apt-private/private-download.cc +++ b/apt-private/private-download.cc @@ -1,30 +1,30 @@ // Include Files /*{{{*/ #include -#include #include +#include #include -#include #include +#include #include #include #include #include +#include #include #include #include #include -#include #include #include #include -#include -#include -#include #include +#include +#include +#include #ifdef HAVE_VFS_H #include #else @@ -33,9 +33,9 @@ #endif #include #endif -#include -#include #include +#include +#include #include /*}}}*/ diff --git a/apt-private/private-install.cc b/apt-private/private-install.cc index 340f4fdbd..aafe5542d 100644 --- a/apt-private/private-install.cc +++ b/apt-private/private-install.cc @@ -1,40 +1,40 @@ // Include Files /*{{{*/ #include -#include #include +#include #include #include #include #include +#include #include #include #include +#include +#include +#include +#include #include #include +#include #include #include -#include -#include -#include -#include #include -#include -#include -#include -#include #include #include +#include #include #include -#include +#include +#include #include -#include #include #include #include +#include #include #include diff --git a/apt-private/private-install.h b/apt-private/private-install.h index 6e571f173..c8b065331 100644 --- a/apt-private/private-install.h +++ b/apt-private/private-install.h @@ -2,10 +2,10 @@ #define APT_PRIVATE_INSTALL_H #include -#include -#include #include +#include #include +#include #include #include diff --git a/apt-private/private-list.cc b/apt-private/private-list.cc index f85e116e5..2c9b349a3 100644 --- a/apt-private/private-list.cc +++ b/apt-private/private-list.cc @@ -5,20 +5,20 @@ #include #include #include -#include -#include -#include #include #include #include +#include +#include +#include #include #include #include #include -#include #include +#include #include #include #include diff --git a/apt-private/private-main.cc b/apt-private/private-main.cc index 52f35cfdc..47b1a0921 100644 --- a/apt-private/private-main.cc +++ b/apt-private/private-main.cc @@ -10,13 +10,12 @@ #include #include +#include #include #include -#include #include - void InitLocale(APT_CMD const binary) /*{{{*/ { try { diff --git a/apt-private/private-moo.cc b/apt-private/private-moo.cc index b8ed6efbd..ca456ed96 100644 --- a/apt-private/private-moo.cc +++ b/apt-private/private-moo.cc @@ -7,22 +7,22 @@ ##################################################################### */ /*}}}*/ // Include Files /*{{{*/ -#include +#include -#include #include +#include #include #include #include #include -#include -#include -#include #include #include #include +#include +#include +#include #include /*}}}*/ diff --git a/apt-private/private-output.cc b/apt-private/private-output.cc index 43f8162a5..6bc18516d 100644 --- a/apt-private/private-output.cc +++ b/apt-private/private-output.cc @@ -1,28 +1,28 @@ // Include files /*{{{*/ -#include +#include +#include #include -#include +#include #include -#include +#include #include #include -#include -#include +#include -#include #include +#include -#include -#include -#include -#include #include #include #include -#include +#include #include +#include +#include +#include #include +#include #include diff --git a/apt-private/private-output.h b/apt-private/private-output.h index 79da3d130..1ac861328 100644 --- a/apt-private/private-output.h +++ b/apt-private/private-output.h @@ -2,13 +2,13 @@ #define APT_PRIVATE_OUTPUT_H #include -#include #include +#include -#include #include -#include +#include #include +#include // forward declaration class pkgCacheFile; diff --git a/apt-private/private-search.cc b/apt-private/private-search.cc index 831b5246c..b850339f9 100644 --- a/apt-private/private-search.cc +++ b/apt-private/private-search.cc @@ -4,25 +4,25 @@ #include #include #include -#include -#include -#include #include #include #include #include +#include +#include +#include #include #include #include #include -#include #include -#include #include +#include #include #include +#include #include /*}}}*/ diff --git a/apt-private/private-search.h b/apt-private/private-search.h index 8ae1f38f3..518f297ca 100644 --- a/apt-private/private-search.h +++ b/apt-private/private-search.h @@ -1,8 +1,8 @@ #ifndef APT_PRIVATE_SEARCH_H #define APT_PRIVATE_SEARCH_H -#include #include +#include class CommandLine; diff --git a/apt-private/private-show.cc b/apt-private/private-show.cc index 9dbb90b16..3cc6a5b87 100644 --- a/apt-private/private-show.cc +++ b/apt-private/private-show.cc @@ -4,28 +4,28 @@ #include #include #include +#include +#include #include #include #include +#include +#include #include #include +#include #include #include #include -#include -#include -#include -#include -#include #include #include #include -#include -#include #include #include +#include +#include #include /*}}}*/ diff --git a/apt-private/private-show.h b/apt-private/private-show.h index 80871b817..e48979c2c 100644 --- a/apt-private/private-show.h +++ b/apt-private/private-show.h @@ -1,8 +1,8 @@ #ifndef APT_PRIVATE_SHOW_H #define APT_PRIVATE_SHOW_H -#include #include +#include #include diff --git a/apt-private/private-source.cc b/apt-private/private-source.cc index cec56c4c3..47610cd80 100644 --- a/apt-private/private-source.cc +++ b/apt-private/private-source.cc @@ -16,11 +16,11 @@ #include #include #include +#include #include #include #include #include -#include #include #include @@ -38,8 +38,8 @@ #include #include -#include #include +#include #include #include diff --git a/apt-private/private-sources.cc b/apt-private/private-sources.cc index 587571760..1d27d0ff1 100644 --- a/apt-private/private-sources.cc +++ b/apt-private/private-sources.cc @@ -1,24 +1,24 @@ #include -#include -#include -#include -#include +#include #include +#include #include #include -#include +#include +#include +#include #include #include #include -#include -#include -#include -#include #include #include +#include +#include +#include +#include #include diff --git a/apt-private/private-unmet.cc b/apt-private/private-unmet.cc index 51ace3f47..f5161fcc3 100644 --- a/apt-private/private-unmet.cc +++ b/apt-private/private-unmet.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Include Files /*{{{*/ -#include +#include #include #include diff --git a/apt-private/private-update.cc b/apt-private/private-update.cc index a886c830f..8949dab30 100644 --- a/apt-private/private-update.cc +++ b/apt-private/private-update.cc @@ -1,15 +1,15 @@ // Include files /*{{{*/ -#include +#include #include +#include #include #include +#include #include #include #include #include -#include -#include #include #include diff --git a/apt-private/private-upgrade.cc b/apt-private/private-upgrade.cc index 679140bfd..989f6b0c1 100644 --- a/apt-private/private-upgrade.cc +++ b/apt-private/private-upgrade.cc @@ -1,14 +1,14 @@ // Includes /*{{{*/ #include -#include #include #include +#include -#include #include -#include +#include #include +#include #include diff --git a/cmdline/apt-cache.cc b/cmdline/apt-cache.cc index ccec1b1f9..0f120a4b0 100644 --- a/cmdline/apt-cache.cc +++ b/cmdline/apt-cache.cc @@ -13,17 +13,22 @@ ##################################################################### */ /*}}}*/ // Include Files /*{{{*/ -#include +#include #include #include #include #include +#include +#include #include #include #include #include +#include #include +#include +#include #include #include #include @@ -34,25 +39,15 @@ #include #include #include -#include -#include -#include -#include -#include #include #include #include -#include +#include #include +#include #include -#include -#include -#include -#include -#include -#include #include #include #include @@ -62,6 +57,11 @@ #include #include #include +#include +#include +#include +#include +#include #include /*}}}*/ diff --git a/cmdline/apt-cdrom.cc b/cmdline/apt-cdrom.cc index bac808a41..577d072db 100644 --- a/cmdline/apt-cdrom.cc +++ b/cmdline/apt-cdrom.cc @@ -11,28 +11,28 @@ ##################################################################### */ /*}}}*/ // Include Files /*{{{*/ -#include +#include +#include +#include #include +#include #include -#include #include +#include +#include #include -#include #include -#include -#include -#include #include -#include #include +#include #include #include #include -#include #include +#include #include /*}}}*/ diff --git a/cmdline/apt-config.cc b/cmdline/apt-config.cc index adec8dda4..ef1e95de1 100644 --- a/cmdline/apt-config.cc +++ b/cmdline/apt-config.cc @@ -16,20 +16,20 @@ ##################################################################### */ /*}}}*/ // Include Files /*{{{*/ -#include +#include +#include #include +#include #include #include -#include -#include -#include #include +#include #include +#include #include #include -#include #include #include diff --git a/cmdline/apt-extracttemplates.cc b/cmdline/apt-extracttemplates.cc index 5a61a0f53..928fb1882 100644 --- a/cmdline/apt-extracttemplates.cc +++ b/cmdline/apt-extracttemplates.cc @@ -13,33 +13,33 @@ ##################################################################### */ /*}}}*/ // Include Files /*{{{*/ -#include +#include -#include #include -#include #include -#include -#include -#include -#include #include #include +#include #include -#include #include -#include -#include +#include #include +#include +#include +#include +#include +#include +#include +#include #include #include #include #include +#include #include #include -#include #include "apt-extracttemplates.h" diff --git a/cmdline/apt-extracttemplates.h b/cmdline/apt-extracttemplates.h index 91e385e70..66d98570a 100644 --- a/cmdline/apt-extracttemplates.h +++ b/cmdline/apt-extracttemplates.h @@ -10,8 +10,8 @@ #ifndef _APTEXTRACTTEMPLATE_H_ #define _APTEXTRACTTEMPLATE_H_ -#include #include +#include #include diff --git a/cmdline/apt-get.cc b/cmdline/apt-get.cc index ba9d784ec..5cc0a02da 100644 --- a/cmdline/apt-get.cc +++ b/cmdline/apt-get.cc @@ -28,49 +28,51 @@ #include #include +#include #include #include #include #include #include #include +#include #include #include #include #include #include #include +#include #include #include +#include #include #include #include #include +#include #include #include -#include -#include -#include -#include -#include #include -#include +#include #include -#include #include +#include #include #include #include #include #include #include +#include #include #include #include -#include #include +#include +#include #include #include #include @@ -79,14 +81,12 @@ #include #include #include -#include -#include #include #include #include -#include #include +#include #include #include diff --git a/cmdline/apt-helper.cc b/cmdline/apt-helper.cc index a6f88ad06..59b72ec25 100644 --- a/cmdline/apt-helper.cc +++ b/cmdline/apt-helper.cc @@ -7,30 +7,30 @@ // Include Files /*{{{*/ #include -#include +#include +#include #include +#include #include +#include #include -#include #include -#include -#include -#include #include +#include +#include #include -#include -#include #include +#include #include -#include +#include #include #include #include -#include #include +#include #include /*}}}*/ diff --git a/cmdline/apt-internal-planner.cc b/cmdline/apt-internal-planner.cc index 1e9de2e53..be9de4ef4 100644 --- a/cmdline/apt-internal-planner.cc +++ b/cmdline/apt-internal-planner.cc @@ -9,33 +9,33 @@ // Include Files /*{{{*/ #include -#include -#include -#include #include #include -#include +#include +#include +#include #include +#include #include -#include -#include +#include #include -#include -#include #include +#include +#include +#include -#include #include #include +#include -#include +#include #include -#include #include +#include #include -#include -#include #include +#include +#include #include /*}}}*/ diff --git a/cmdline/apt-internal-solver.cc b/cmdline/apt-internal-solver.cc index 7b8fe952a..5c9ca5a35 100644 --- a/cmdline/apt-internal-solver.cc +++ b/cmdline/apt-internal-solver.cc @@ -9,33 +9,33 @@ // Include Files /*{{{*/ #include -#include -#include -#include +#include #include #include -#include +#include +#include +#include #include -#include +#include #include +#include +#include #include +#include #include -#include -#include -#include -#include #include #include +#include -#include +#include #include -#include #include +#include #include -#include -#include #include +#include +#include #include /*}}}*/ diff --git a/cmdline/apt-mark.cc b/cmdline/apt-mark.cc index d808f4b9b..8315efa12 100644 --- a/cmdline/apt-mark.cc +++ b/cmdline/apt-mark.cc @@ -10,21 +10,26 @@ #include #include #include +#include +#include #include #include #include -#include -#include -#include -#include -#include #include #include +#include +#include +#include #include -#include #include +#include +#include +#include +#include +#include +#include #include #include #include @@ -33,11 +38,6 @@ #include #include #include -#include -#include -#include -#include -#include #include /*}}}*/ diff --git a/cmdline/apt-sortpkgs.cc b/cmdline/apt-sortpkgs.cc index cf19b84ec..40be29c77 100644 --- a/cmdline/apt-sortpkgs.cc +++ b/cmdline/apt-sortpkgs.cc @@ -14,25 +14,25 @@ // Include Files /*{{{*/ #include -#include -#include -#include #include -#include -#include +#include +#include #include +#include #include +#include +#include #include #include -#include #include -#include -#include #include -#include #include +#include +#include +#include +#include #include /*}}}*/ diff --git a/cmdline/apt.cc b/cmdline/apt.cc index 4b266bcbe..6bf85467e 100644 --- a/cmdline/apt.cc +++ b/cmdline/apt.cc @@ -9,33 +9,33 @@ ##################################################################### */ /*}}}*/ // Include Files /*{{{*/ -#include +#include #include +#include #include #include #include #include -#include -#include -#include -#include -#include -#include #include +#include +#include +#include +#include +#include #include -#include +#include +#include #include -#include -#include #include -#include -#include +#include +#include +#include -#include #include #include +#include #include /*}}}*/ diff --git a/ftparchive/apt-ftparchive.cc b/ftparchive/apt-ftparchive.cc index 9c02e5b87..196a0668c 100644 --- a/ftparchive/apt-ftparchive.cc +++ b/ftparchive/apt-ftparchive.cc @@ -12,33 +12,33 @@ // Include Files /*{{{*/ #include -#include -#include #include -#include -#include +#include +#include #include +#include +#include #include -#include #include +#include #include #include -#include -#include -#include -#include -#include #include #include #include #include +#include +#include +#include +#include +#include -#include "cachedb.h" -#include "override.h" #include "apt-ftparchive.h" +#include "cachedb.h" #include "multicompress.h" +#include "override.h" #include "writer.h" #include diff --git a/ftparchive/apt-ftparchive.h b/ftparchive/apt-ftparchive.h index 240cf9ba7..b1ce17545 100644 --- a/ftparchive/apt-ftparchive.h +++ b/ftparchive/apt-ftparchive.h @@ -13,7 +13,6 @@ #ifndef APT_FTPARCHIVE_H #define APT_FTPARCHIVE_H - #include using std::ostream; diff --git a/ftparchive/byhash.cc b/ftparchive/byhash.cc index 354d089c3..b24f6158e 100644 --- a/ftparchive/byhash.cc +++ b/ftparchive/byhash.cc @@ -11,15 +11,15 @@ // Include Files /*{{{*/ #include -#include -#include +#include +#include -#include #include +#include +#include "byhash.h" #include #include -#include "byhash.h" // Delete all files in a directory except the most recent N ones void DeleteAllButMostRecent(std::string dir, int KeepFiles) diff --git a/ftparchive/cachedb.cc b/ftparchive/cachedb.cc index 868029abd..210ce6dc1 100644 --- a/ftparchive/cachedb.cc +++ b/ftparchive/cachedb.cc @@ -12,22 +12,22 @@ // Include Files /*{{{*/ #include +#include +#include #include +#include +#include +#include #include #include #include #include -#include -#include -#include -#include -#include -#include // htonl, etc #include +#include // htonl, etc #include -#include #include +#include #include "cachedb.h" diff --git a/ftparchive/cachedb.h b/ftparchive/cachedb.h index 417c25a9f..117ba5a1b 100644 --- a/ftparchive/cachedb.h +++ b/ftparchive/cachedb.h @@ -12,15 +12,15 @@ #ifndef CACHEDB_H #define CACHEDB_H -#include #include +#include #include -#include #include -#include +#include #include #include +#include #include "contents.h" #include "sources.h" diff --git a/ftparchive/contents.h b/ftparchive/contents.h index bc691d473..8691b0e87 100644 --- a/ftparchive/contents.h +++ b/ftparchive/contents.h @@ -12,9 +12,9 @@ #include +#include #include #include -#include class debDebFile; class FileFd; diff --git a/ftparchive/multicompress.cc b/ftparchive/multicompress.cc index 0a8d4d109..abb8c5906 100644 --- a/ftparchive/multicompress.cc +++ b/ftparchive/multicompress.cc @@ -16,17 +16,17 @@ // Include Files /*{{{*/ #include -#include -#include -#include -#include #include +#include +#include #include +#include +#include #include -#include #include #include +#include #include #include diff --git a/ftparchive/multicompress.h b/ftparchive/multicompress.h index 161716b86..50453acab 100644 --- a/ftparchive/multicompress.h +++ b/ftparchive/multicompress.h @@ -16,8 +16,8 @@ #ifndef MULTICOMPRESS_H #define MULTICOMPRESS_H -#include #include +#include #include #include diff --git a/ftparchive/override.cc b/ftparchive/override.cc index 8a0c5bab1..26d629bfa 100644 --- a/ftparchive/override.cc +++ b/ftparchive/override.cc @@ -12,13 +12,13 @@ // Include Files /*{{{*/ #include -#include #include +#include -#include +#include #include +#include #include -#include #include "override.h" diff --git a/ftparchive/override.h b/ftparchive/override.h index c5cacc2b4..74637404c 100644 --- a/ftparchive/override.h +++ b/ftparchive/override.h @@ -12,8 +12,6 @@ #ifndef OVERRIDE_H #define OVERRIDE_H - - #include #include diff --git a/ftparchive/sources.cc b/ftparchive/sources.cc index ab976b490..60a86171f 100644 --- a/ftparchive/sources.cc +++ b/ftparchive/sources.cc @@ -1,5 +1,5 @@ -#include #include +#include // for memcpy #include diff --git a/ftparchive/writer.cc b/ftparchive/writer.cc index 7cda37459..d5c9735e7 100644 --- a/ftparchive/writer.cc +++ b/ftparchive/writer.cc @@ -14,19 +14,26 @@ #include #include +#include #include #include #include #include #include #include -#include -#include #include #include #include +#include #include +#include +#include +#include +#include +#include +#include +#include #include #include #include @@ -35,19 +42,12 @@ #include #include #include -#include -#include -#include -#include -#include -#include -#include #include "apt-ftparchive.h" -#include "writer.h" +#include "byhash.h" #include "cachedb.h" #include "multicompress.h" -#include "byhash.h" +#include "writer.h" #include /*}}}*/ diff --git a/ftparchive/writer.h b/ftparchive/writer.h index ea4c66da4..b2cef4f00 100644 --- a/ftparchive/writer.h +++ b/ftparchive/writer.h @@ -15,19 +15,19 @@ #include -#include -#include #include -#include #include #include +#include +#include +#include #include #include -#include "contents.h" +#include "apt-ftparchive.h" #include "cachedb.h" +#include "contents.h" #include "override.h" -#include "apt-ftparchive.h" using std::string; using std::cout; diff --git a/methods/aptmethod.h b/methods/aptmethod.h index 30ef134c8..04858e29d 100644 --- a/methods/aptmethod.h +++ b/methods/aptmethod.h @@ -11,9 +11,9 @@ #include #include +#include #include #include -#include #include #include diff --git a/methods/basehttp.cc b/methods/basehttp.cc index a2f1a6e55..c3d570c83 100644 --- a/methods/basehttp.cc +++ b/methods/basehttp.cc @@ -15,6 +15,11 @@ #include #include +#include +#include +#include +#include +#include #include #include #include @@ -23,11 +28,6 @@ #include #include #include -#include -#include -#include -#include -#include #include "basehttp.h" diff --git a/methods/basehttp.h b/methods/basehttp.h index 41a9a4306..7000e7b89 100644 --- a/methods/basehttp.h +++ b/methods/basehttp.h @@ -11,14 +11,14 @@ #ifndef APT_SERVER_H #define APT_SERVER_H -#include -#include #include "aptmethod.h" +#include +#include -#include #include -#include #include +#include +#include using std::cout; using std::endl; diff --git a/methods/cdrom.cc b/methods/cdrom.cc index 87a58e948..8b7587fe5 100644 --- a/methods/cdrom.cc +++ b/methods/cdrom.cc @@ -12,11 +12,11 @@ #include #include -#include #include +#include #include -#include #include +#include #include "aptmethod.h" diff --git a/methods/connect.cc b/methods/connect.cc index 182af48ae..949cd3f99 100644 --- a/methods/connect.cc +++ b/methods/connect.cc @@ -13,29 +13,29 @@ // Include Files /*{{{*/ #include -#include -#include -#include #include #include +#include +#include #include +#include #include #include -#include -#include -#include +#include #include +#include +#include +#include #include -#include -#include +#include // Internet stuff +#include +#include #include #include -#include -#include #include "aptmethod.h" #include "connect.h" diff --git a/methods/connect.h b/methods/connect.h index 4456d660d..817ebf765 100644 --- a/methods/connect.h +++ b/methods/connect.h @@ -11,8 +11,8 @@ #define CONNECT_H #include -#include #include +#include class aptMethod; diff --git a/methods/copy.cc b/methods/copy.cc index 810fc2f38..fd4786ede 100644 --- a/methods/copy.cc +++ b/methods/copy.cc @@ -11,12 +11,12 @@ // Include Files /*{{{*/ #include -#include -#include +#include "aptmethod.h" +#include #include +#include #include -#include -#include "aptmethod.h" +#include #include #include diff --git a/methods/curl.cc b/methods/curl.cc index ac3f77ab6..dfdd3b06b 100644 --- a/methods/curl.cc +++ b/methods/curl.cc @@ -12,27 +12,26 @@ // Include Files /*{{{*/ #include -#include +#include #include +#include #include -#include -#include #include -#include +#include #include +#include +#include +#include +#include #include #include #include -#include -#include -#include #include #include #include - #include "curl.h" #include diff --git a/methods/curl.h b/methods/curl.h index fbbf34501..d352dc52a 100644 --- a/methods/curl.h +++ b/methods/curl.h @@ -11,11 +11,11 @@ #ifndef APT_HTTPS_H #define APT_HTTPS_H -#include #include -#include -#include #include +#include +#include +#include #include "basehttp.h" diff --git a/methods/file.cc b/methods/file.cc index 5cbf1924e..6111329d5 100644 --- a/methods/file.cc +++ b/methods/file.cc @@ -15,12 +15,12 @@ // Include Files /*{{{*/ #include +#include "aptmethod.h" #include #include -#include #include +#include #include -#include "aptmethod.h" #include #include diff --git a/methods/ftp.cc b/methods/ftp.cc index f4986f648..9bfe72bc6 100644 --- a/methods/ftp.cc +++ b/methods/ftp.cc @@ -17,33 +17,33 @@ // Include Files /*{{{*/ #include -#include +#include #include +#include #include #include -#include #include +#include #include +#include +#include +#include +#include #include #include #include #include #include -#include -#include -#include -#include -#include // Internet stuff -#include -#include #include +#include +#include -#include "rfc2553emu.h" #include "connect.h" #include "ftp.h" +#include "rfc2553emu.h" #include /*}}}*/ diff --git a/methods/ftp.h b/methods/ftp.h index 5b23dba41..67d00d9f1 100644 --- a/methods/ftp.h +++ b/methods/ftp.h @@ -14,10 +14,10 @@ #include "connect.h" #include +#include #include #include #include -#include class FTPConn { diff --git a/methods/gpgv.cc b/methods/gpgv.cc index 51c268d02..8de15c48a 100644 --- a/methods/gpgv.cc +++ b/methods/gpgv.cc @@ -1,11 +1,11 @@ #include +#include "aptmethod.h" #include #include +#include #include #include -#include -#include "aptmethod.h" #include #include @@ -16,11 +16,11 @@ #include #include -#include #include -#include -#include +#include #include +#include +#include #include #include diff --git a/methods/http.cc b/methods/http.cc index 0f347e700..9f01d15b3 100644 --- a/methods/http.cc +++ b/methods/http.cc @@ -19,26 +19,26 @@ // Include Files /*{{{*/ #include -#include #include #include +#include #include #include -#include #include +#include +#include +#include +#include +#include +#include #include +#include #include #include -#include #include #include #include -#include -#include -#include -#include -#include #include "config.h" #include "connect.h" diff --git a/methods/http_main.cc b/methods/http_main.cc index 90a0450e2..792b5e22f 100644 --- a/methods/http_main.cc +++ b/methods/http_main.cc @@ -1,6 +1,6 @@ #include -#include #include +#include #include #include "http.h" diff --git a/methods/mirror.cc b/methods/mirror.cc index 5047463d1..b0da5c530 100644 --- a/methods/mirror.cc +++ b/methods/mirror.cc @@ -10,35 +10,35 @@ // Include Files /*{{{*/ #include -#include -#include #include #include -#include -#include +#include #include +#include +#include #include +#include #include #include -#include #include +#include +#include +#include #include #include -#include #include #include #include -#include -#include +#include using namespace std; -#include +#include -#include "mirror.h" #include "http.h" +#include "mirror.h" #include /*}}}*/ diff --git a/methods/rfc2553emu.cc b/methods/rfc2553emu.cc index 372882769..13f79391a 100644 --- a/methods/rfc2553emu.cc +++ b/methods/rfc2553emu.cc @@ -16,12 +16,12 @@ /*}}}*/ #include -#include +#include "rfc2553emu.h" #include #include -#include #include -#include "rfc2553emu.h" +#include +#include #ifndef HAVE_GETADDRINFO // getaddrinfo - Resolve a hostname /*{{{*/ diff --git a/methods/rfc2553emu.h b/methods/rfc2553emu.h index ad7ddf48a..462bfe26f 100644 --- a/methods/rfc2553emu.h +++ b/methods/rfc2553emu.h @@ -23,8 +23,8 @@ #define RFC2553EMU_H #include -#include #include +#include // Autosense getaddrinfo #if defined(AI_PASSIVE) && defined(EAI_NONAME) diff --git a/methods/rred.cc b/methods/rred.cc index 2e5008d46..3a3b20286 100644 --- a/methods/rred.cc +++ b/methods/rred.cc @@ -7,19 +7,19 @@ #include -#include -#include +#include "aptmethod.h" +#include #include -#include +#include #include -#include -#include "aptmethod.h" +#include +#include -#include #include -#include #include +#include #include +#include #include #include diff --git a/methods/rsh.cc b/methods/rsh.cc index 7b8af6f9b..69a51a13d 100644 --- a/methods/rsh.cc +++ b/methods/rsh.cc @@ -13,22 +13,22 @@ // Include Files /*{{{*/ #include +#include #include #include #include -#include #include +#include "rsh.h" +#include +#include +#include +#include #include #include #include #include #include -#include -#include -#include -#include -#include "rsh.h" #include /*}}}*/ diff --git a/methods/store.cc b/methods/store.cc index 1faaa4fb4..d54a14397 100644 --- a/methods/store.cc +++ b/methods/store.cc @@ -13,19 +13,19 @@ // Include Files /*{{{*/ #include +#include "aptmethod.h" +#include #include #include #include #include #include -#include -#include "aptmethod.h" +#include +#include #include #include #include -#include -#include #include /*}}}*/ diff --git a/test/interactive-helper/aptwebserver.cc b/test/interactive-helper/aptwebserver.cc index cbefe48d9..b4b3ef870 100644 --- a/test/interactive-helper/aptwebserver.cc +++ b/test/interactive-helper/aptwebserver.cc @@ -23,10 +23,10 @@ #include #include -#include #include -#include +#include #include +#include #include #include #include diff --git a/test/interactive-helper/extract-control.cc b/test/interactive-helper/extract-control.cc index 852ec4ee9..a19e0380c 100644 --- a/test/interactive-helper/extract-control.cc +++ b/test/interactive-helper/extract-control.cc @@ -4,8 +4,8 @@ #include #include -#include #include +#include #include using namespace std; diff --git a/test/interactive-helper/rpmver.cc b/test/interactive-helper/rpmver.cc index 017c92fba..b23ba2876 100644 --- a/test/interactive-helper/rpmver.cc +++ b/test/interactive-helper/rpmver.cc @@ -1,11 +1,11 @@ #include #include -#include +#include #include -#include +#include #include -#include +#include #define xisdigit(x) isdigit(x) #define xisalpha(x) isalpha(x) diff --git a/test/interactive-helper/teestream.h b/test/interactive-helper/teestream.h index 728a1bae2..058717ac3 100644 --- a/test/interactive-helper/teestream.h +++ b/test/interactive-helper/teestream.h @@ -8,8 +8,8 @@ a logfile easily, so don't expect that to be a bulletproof implementation. */ -#include #include +#include template > class basic_teebuf: public std::basic_streambuf diff --git a/test/interactive-helper/test_fileutl.cc b/test/interactive-helper/test_fileutl.cc index 7c4b95759..6c29b748f 100644 --- a/test/interactive-helper/test_fileutl.cc +++ b/test/interactive-helper/test_fileutl.cc @@ -1,13 +1,13 @@ +#include #include #include -#include -#include +#include +#include #include +#include #include #include -#include -#include #include #include diff --git a/test/interactive-helper/test_udevcdrom.cc b/test/interactive-helper/test_udevcdrom.cc index b87dcd935..2355186d6 100644 --- a/test/interactive-helper/test_udevcdrom.cc +++ b/test/interactive-helper/test_udevcdrom.cc @@ -2,11 +2,11 @@ #include -#include +#include #include -#include #include -#include +#include +#include int main() { diff --git a/test/interactive-helper/testdeb.cc b/test/interactive-helper/testdeb.cc index 69e1ffe0b..0bb24a52a 100644 --- a/test/interactive-helper/testdeb.cc +++ b/test/interactive-helper/testdeb.cc @@ -1,10 +1,10 @@ #include -#include +#include #include +#include #include #include -#include #include #include diff --git a/test/libapt/acqprogress_test.cc b/test/libapt/acqprogress_test.cc index 0e82a285d..d4596c85d 100644 --- a/test/libapt/acqprogress_test.cc +++ b/test/libapt/acqprogress_test.cc @@ -1,12 +1,12 @@ #include -#include -#include #include +#include #include +#include #include -#include -#include #include +#include +#include class TestItem: public pkgAcquire::Item { diff --git a/test/libapt/cdrom_test.cc b/test/libapt/cdrom_test.cc index b4c51cdb0..c9021e64e 100644 --- a/test/libapt/cdrom_test.cc +++ b/test/libapt/cdrom_test.cc @@ -1,13 +1,13 @@ #include -#include #include #include +#include #include #include -#include #include +#include #include diff --git a/test/libapt/cdromfindpackages_test.cc b/test/libapt/cdromfindpackages_test.cc index 0d8eb1f90..f6acf18fd 100644 --- a/test/libapt/cdromfindpackages_test.cc +++ b/test/libapt/cdromfindpackages_test.cc @@ -5,10 +5,10 @@ #include #include +#include #include #include #include -#include #include diff --git a/test/libapt/compareversion_test.cc b/test/libapt/compareversion_test.cc index 3b2c0c209..1782c61cc 100644 --- a/test/libapt/compareversion_test.cc +++ b/test/libapt/compareversion_test.cc @@ -18,15 +18,15 @@ /*}}}*/ #include -#include #include +#include #include #include #include #include -#include #include +#include #include diff --git a/test/libapt/extracttar_test.cc b/test/libapt/extracttar_test.cc index 0255bd767..30934144a 100644 --- a/test/libapt/extracttar_test.cc +++ b/test/libapt/extracttar_test.cc @@ -3,8 +3,8 @@ #include #include -#include #include "assert.h" +#include class Stream : public pkgDirStream { diff --git a/test/libapt/file-helpers.cc b/test/libapt/file-helpers.cc index 48d8a9fbb..aa16a2e30 100644 --- a/test/libapt/file-helpers.cc +++ b/test/libapt/file-helpers.cc @@ -2,10 +2,10 @@ #include -#include +#include #include #include -#include +#include #include diff --git a/test/libapt/fileutl_test.cc b/test/libapt/fileutl_test.cc index d11622019..6cc850033 100644 --- a/test/libapt/fileutl_test.cc +++ b/test/libapt/fileutl_test.cc @@ -1,10 +1,10 @@ #include +#include +#include #include #include #include -#include -#include #include #include diff --git a/test/libapt/getlanguages_test.cc b/test/libapt/getlanguages_test.cc index 29ff0c9ae..26ff66f72 100644 --- a/test/libapt/getlanguages_test.cc +++ b/test/libapt/getlanguages_test.cc @@ -10,9 +10,9 @@ #include #include -#include -#include #include +#include +#include #include diff --git a/test/libapt/getlistoffilesindir_test.cc b/test/libapt/getlistoffilesindir_test.cc index 8c5e56b1d..606e2733e 100644 --- a/test/libapt/getlistoffilesindir_test.cc +++ b/test/libapt/getlistoffilesindir_test.cc @@ -1,11 +1,11 @@ #include -#include #include +#include +#include #include #include -#include #include diff --git a/test/libapt/globalerror_test.cc b/test/libapt/globalerror_test.cc index bb36905a4..67682c275 100644 --- a/test/libapt/globalerror_test.cc +++ b/test/libapt/globalerror_test.cc @@ -2,9 +2,9 @@ #include -#include #include #include +#include #include #include diff --git a/test/libapt/gtest_runner.cc b/test/libapt/gtest_runner.cc index 73854d976..5620aa0bd 100644 --- a/test/libapt/gtest_runner.cc +++ b/test/libapt/gtest_runner.cc @@ -1,9 +1,9 @@ #include #include -#include #include #include +#include int main(int argc, char **argv) { ::testing::InitGoogleTest(&argc, argv); diff --git a/test/libapt/hashsums_test.cc b/test/libapt/hashsums_test.cc index fb9a25643..8b4533265 100644 --- a/test/libapt/hashsums_test.cc +++ b/test/libapt/hashsums_test.cc @@ -1,16 +1,16 @@ #include #include +#include +#include #include #include #include #include -#include -#include #include -#include #include +#include #include diff --git a/test/libapt/indexcopytosourcelist_test.cc b/test/libapt/indexcopytosourcelist_test.cc index eb6d49edf..b0bfeb4b2 100644 --- a/test/libapt/indexcopytosourcelist_test.cc +++ b/test/libapt/indexcopytosourcelist_test.cc @@ -1,7 +1,7 @@ #include -#include #include +#include #include #include diff --git a/test/libapt/parsedepends_test.cc b/test/libapt/parsedepends_test.cc index c2781b5d6..ed849f768 100644 --- a/test/libapt/parsedepends_test.cc +++ b/test/libapt/parsedepends_test.cc @@ -1,11 +1,11 @@ #include -#include #include +#include #include -#include #include +#include #include diff --git a/test/libapt/priority_test.cc b/test/libapt/priority_test.cc index ef1941ce5..af7932ae8 100644 --- a/test/libapt/priority_test.cc +++ b/test/libapt/priority_test.cc @@ -1,7 +1,7 @@ #include #include -#include #include +#include using std::string; diff --git a/test/libapt/sourcelist_test.cc b/test/libapt/sourcelist_test.cc index 83c441092..6182639a4 100644 --- a/test/libapt/sourcelist_test.cc +++ b/test/libapt/sourcelist_test.cc @@ -1,7 +1,7 @@ #include -#include #include +#include #include #include diff --git a/test/libapt/strutil_test.cc b/test/libapt/strutil_test.cc index d7700bd54..9c192a58b 100644 --- a/test/libapt/strutil_test.cc +++ b/test/libapt/strutil_test.cc @@ -1,6 +1,6 @@ #include -#include #include +#include #include #include diff --git a/test/libapt/tagfile_test.cc b/test/libapt/tagfile_test.cc index 24fbd389e..fb85ebcad 100644 --- a/test/libapt/tagfile_test.cc +++ b/test/libapt/tagfile_test.cc @@ -3,11 +3,11 @@ #include #include +#include #include #include #include #include -#include #include diff --git a/test/libapt/tagsection_test.cc b/test/libapt/tagsection_test.cc index 779932595..d79b1b63d 100644 --- a/test/libapt/tagsection_test.cc +++ b/test/libapt/tagsection_test.cc @@ -3,8 +3,8 @@ #include #include -#include #include +#include #include diff --git a/test/libapt/teestream_test.cc b/test/libapt/teestream_test.cc index 18610b24d..a897e08ec 100644 --- a/test/libapt/teestream_test.cc +++ b/test/libapt/teestream_test.cc @@ -1,9 +1,9 @@ #include -#include -#include -#include #include "../interactive-helper/teestream.h" +#include +#include +#include #include diff --git a/test/libapt/uri_test.cc b/test/libapt/uri_test.cc index 09d018049..54f4f84f8 100644 --- a/test/libapt/uri_test.cc +++ b/test/libapt/uri_test.cc @@ -2,8 +2,8 @@ #include #include #include -#include #include +#include TEST(URITest, BasicHTTP) { -- cgit v1.2.3 From 51da6127d0073c9fc81f4b220f2360bd612ded5c Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Wed, 12 Jul 2017 14:07:27 +0200 Subject: cacheiterators: Warn about direct include and don't include pkgcache.h This adds a warning so existing working code will still work (as it includes pkgcache.h first anyway), but it will know that it's not right to include this file directly. --- apt-pkg/cacheiterators.h | 4 +++- apt-pkg/pkgcache.h | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/apt-pkg/cacheiterators.h b/apt-pkg/cacheiterators.h index fdc7fbc07..0cb684382 100644 --- a/apt-pkg/cacheiterators.h +++ b/apt-pkg/cacheiterators.h @@ -29,8 +29,10 @@ /*}}}*/ #ifndef PKGLIB_CACHEITERATORS_H #define PKGLIB_CACHEITERATORS_H +#ifndef __PKGLIB_IN_PKGCACHE_H +#warning apt-pkg/cacheiterators.h should not be included directly, include apt-pkg/pkgcache.h instead +#endif #include -#include #include #include diff --git a/apt-pkg/pkgcache.h b/apt-pkg/pkgcache.h index acf6cf446..e1597c1b1 100644 --- a/apt-pkg/pkgcache.h +++ b/apt-pkg/pkgcache.h @@ -73,7 +73,7 @@ /*}}}*/ #ifndef PKGLIB_PKGCACHE_H #define PKGLIB_PKGCACHE_H - +#define __PKGLIB_IN_PKGCACHE_H #include #include @@ -825,4 +825,5 @@ class pkgCache::Namespace /*{{{*/ typedef pkgCache::Flag Flag; }; /*}}}*/ +#undef __PKGLIB_IN_PKGCACHE_H #endif -- cgit v1.2.3