summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib/hashsum_template.h
Commit message (Collapse)AuthorAgeFilesLines
* apt-pkg: default visibility to hiddenJulian Andres Klode2020-02-261-100/+0
|
* Remove left-over SummationImplementation classJulian Andres Klode2020-02-251-21/+0
|
* Run unifdef -DAPT_{8,9,10,15}_CLEANER_HEADERSJulian Andres Klode2019-06-121-9/+0
|
* Make APT::StringView publicJulian Andres Klode2019-06-111-13/+2
|
* Remove obsolete RCS keywordsGuillem Jover2018-05-071-1/+0
| | | | Prompted-by: Jakub Wilk <jwilk@debian.org>
* convert various c-style casts to C++-styleDavid Kalnischkies2017-12-131-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
* Reformat and sort all includes with clang-formatJulian Andres Klode2017-07-121-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.
* try not to call memcpy with length 0 in hash calculationsDavid Kalnischkies2016-09-011-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
* HashSumValue::Set: Do not provide const char* overloadJulian Andres Klode2016-01-081-6/+3
| | | | | | | Hide the std::string overload instead of providing a const char * one, the old variant was stupid. Gbp-Dch: ignore
* Switch performance critical code to use APT::StringViewJulian Andres Klode2016-01-071-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.
* apply various style suggestions by cppcheckDavid Kalnischkies2015-08-101-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
* cleanup headers and especially #includes everywhereDavid Kalnischkies2014-03-131-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)
* warning: useless cast to type A [-Wuseless-cast]David Kalnischkies2014-03-131-1/+1
| | | | | Git-Dch: Ignore Reported-By: gcc -Wuseless-cast
* warning: cast from type A to type B casts away qualifiers [-Wcast-qual]David Kalnischkies2014-03-131-21/+21
| | | | | Git-Dch: Ignore Reported-By: gcc -Wcast-qual
* g++ 4.7 fixesMichael Vogt2012-01-021-0/+2
|\
| * g++ 4.7 fixesMichael Vogt2012-01-021-0/+2
| |
* | try to avoid direct usage of .Fd() if possible and do read()s and coDavid Kalnischkies2011-12-171-0/+3
| | | | | | | | on the FileFd instead
* | revert 2184.1.2: do not pollute namespace in headersDavid Kalnischkies2011-12-131-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
* * apt-pkg/pkgcachegen.cc:David Kalnischkies2011-10-111-1/+5
| | | - refactor MergeList by creating -Group, -Package and -Version specialist
* do not pollute namespace in the headers with using (Closes: #500198)David Kalnischkies2011-09-191-8/+5
|
* Support large files in the complete toolset. Indexes of thisDavid Kalnischkies2011-09-131-3/+3
| | | | size are pretty unlikely for now, but we need it for deb packages which could become bigger than 4GB now (LP: #815895)
* enable Hashes::AddFD() to skip creation of certain hashesDavid Kalnischkies2011-07-131-1/+1
|
* move implementation of checksums around by abstracting even moreDavid Kalnischkies2011-07-131-0/+20
|
* template based hashsum implementationMichael Vogt2011-02-251-0/+87