summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib/hashsum_template.h
AgeCommit message (Collapse)AuthorFilesLines
2019-06-12Run unifdef -DAPT_{8,9,10,15}_CLEANER_HEADERSJulian Andres Klode1-9/+0
2019-06-11Make APT::StringView publicJulian Andres Klode1-13/+2
2018-05-07Remove obsolete RCS keywordsGuillem Jover1-1/+0
Prompted-by: Jakub Wilk <jwilk@debian.org>
2017-12-13convert various c-style casts to C++-styleDavid Kalnischkies1-4/+4
gcc was warning about ignored type qualifiers for all of them due to the last 'const', so dropping that and converting to static_cast in the process removes the here harmless warning to avoid hidden real issues in them later on. Reported-By: gcc Gbp-Dch: Ignore
2017-07-12Reformat and sort all includes with clang-formatJulian Andres Klode1-2/+1
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.
2016-09-01try not to call memcpy with length 0 in hash calculationsDavid Kalnischkies1-6/+6
memcpy is marked as nonnull for its input, but ignores the input anyhow if the declared length is zero. Our SHA2 implementations do this as well, it was "just" MD5 and SHA1 missing, so we add the length check here as well as along the callstack as it is really pointless to do all these method calls for "nothing". Reported-By: gcc -fsanitize=undefined
2016-01-08HashSumValue::Set: Do not provide const char* overloadJulian Andres Klode1-6/+3
Hide the std::string overload instead of providing a const char * one, the old variant was stupid. Gbp-Dch: ignore
2016-01-07Switch performance critical code to use APT::StringViewJulian Andres Klode1-1/+25
This improves performance of the cache generation on my ARM platform (4x Cortex A15) by about 10% to 20% from 2.35-2.50 to 2.1 seconds.
2015-08-10apply various style suggestions by cppcheckDavid Kalnischkies1-1/+1
Some of them modify the ABI, but given that we prepare a big one already, these few hardly count for much. Git-Dch: Ignore
2014-03-13cleanup headers and especially #includes everywhereDavid Kalnischkies1-3/+7
Beside being a bit cleaner it hopefully also resolves oddball problems I have with high levels of parallel jobs. Git-Dch: Ignore Reported-By: iwyu (include-what-you-use)
2014-03-13warning: useless cast to type A [-Wuseless-cast]David Kalnischkies1-1/+1
Git-Dch: Ignore Reported-By: gcc -Wuseless-cast
2014-03-13warning: cast from type A to type B casts away qualifiers [-Wcast-qual]David Kalnischkies1-21/+21
Git-Dch: Ignore Reported-By: gcc -Wcast-qual
2012-01-02g++ 4.7 fixesMichael Vogt1-0/+2
2012-01-02g++ 4.7 fixesMichael Vogt1-0/+2
2011-12-17try to avoid direct usage of .Fd() if possible and do read()s and coDavid Kalnischkies1-0/+3
on the FileFd instead
2011-12-13revert 2184.1.2: do not pollute namespace in headersDavid Kalnischkies1-0/+5
The breakage is just to big for now, so guard the change with #ifndef APT_8_CLEANER_HEADERS and be nice to library users
2011-10-11* apt-pkg/pkgcachegen.cc:David Kalnischkies1-1/+5
- refactor MergeList by creating -Group, -Package and -Version specialist
2011-09-19do not pollute namespace in the headers with using (Closes: #500198)David Kalnischkies1-8/+5
2011-09-13Support large files in the complete toolset. Indexes of thisDavid Kalnischkies1-3/+3
size are pretty unlikely for now, but we need it for deb packages which could become bigger than 4GB now (LP: #815895)
2011-07-13enable Hashes::AddFD() to skip creation of certain hashesDavid Kalnischkies1-1/+1
2011-07-13move implementation of checksums around by abstracting even moreDavid Kalnischkies1-0/+20
2011-02-25template based hashsum implementationMichael Vogt1-0/+87