summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib/error.h
Commit message (Collapse)AuthorAgeFilesLines
* error: Extract operator<< into error.cc (de-inline it)Julian Andres Klode2020-03-101-25/+3
| | | | | Extract the code, and reformat it with clang-format so we can modify it.
* apt-pkg: default visibility to hiddenJulian Andres Klode2020-02-261-2/+2
|
* Remove code tagged APT_PKG_590, add some missing includesJulian Andres Klode2020-02-181-1/+1
| | | | | | Remove all code scheduled to be removed after 5.90, and fix files to include files they previously got from hashes.h including more headers.
* Avoid #define _error, use anonymous C++ struct insteadJulian Andres Klode2020-01-071-1/+3
| | | | | | | | | | | | Replace the macro with an anonymous struct that provides an inline operator->() returning the _error pointer. This change is ABI compatible, and the inline macro is not exported. We should consider if we want to avoid the function call and directly export the thread_local variable instead, when we do break ABI. Closes: #948338
* Remove obsolete RCS keywordsGuillem Jover2018-05-071-1/+0
| | | | Prompted-by: Jakub Wilk <jwilk@debian.org>
* Reformat and sort all includes with clang-formatJulian Andres Klode2017-07-121-1/+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.
* fix various typos reported by spellintianDavid Kalnischkies2017-01-191-1/+1
| | | | | | | | Most of them in (old) code comments. The two instances of user visible string changes the po files of the manpages are fixed up as well. Gbp-Dch: Ignore Reported-By: spellintian
* properly format multiline error messagesDavid Kalnischkies2016-04-251-6/+21
|
* fix typos and docs in GlobalError documentationDavid Kalnischkies2015-12-131-10/+9
| | | | | Reported-By: Manuel A. Fernandez Montecelo <mafm@debian.org> Git-Dch: Ignore
* avoid using global PendingError to avoid failing too often too soonDavid Kalnischkies2015-09-141-1/+1
| | | | | | | | | | | | | | | | | | | Our error reporting is historically grown into some kind of mess. A while ago I implemented stacking for the global error which is used in this commit now to wrap calls to functions which do not report (all) errors via return, so that only failures in those calls cause a failure to propergate down the chain rather than failing if anything (potentially totally unrelated) has failed at some point in the past. This way we can avoid stopping the entire acquire process just because a single source produced an error for example. It also means that after the acquire process the cache is generated – even if the acquire process had failures – as we still have the old good data around we can and should generate a cache for (again). There are probably more instances of this hiding, but all these looked like the easiest to work with and fix with reasonable (aka net-positive) effects.
* follow method attribute suggestions by gccDavid Kalnischkies2014-03-131-4/+4
| | | | | Git-Dch: Ignore Reported-By: gcc -Wsuggest-attribute={pure,const,noreturn}
* cleanup headers and especially #includes everywhereDavid Kalnischkies2014-03-131-13/+14
| | | | | | | | 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)
* make doxygen more quiet, fix issues and disable latexDavid Kalnischkies2014-03-131-2/+2
| | | | Git-Dch: Ignore
* Fix typos in documentation (codespell)Michael Vogt2014-02-221-1/+1
|
* make the vprintf like _error->Insert publicDavid Kalnischkies2013-06-091-6/+35
| | | | Git-Dch: Ignore
* * apt-pkg/contrib/error.cc:David Kalnischkies2011-02-151-2/+3
| | | - ensure that va_list is not invalid in second try
* - [ABI BREAK] add an ErrorType option to CacheSetHelperDavid Kalnischkies2010-07-301-0/+16
| | | | | * cmdline/apt-cache.cc: - use Notice instead of Error in the CacheSetHelper messages for compat reasons. Otherwise tools like sbuild blow up
* add inline DumpError() to avoid subtle API breakMichael Vogt2010-07-291-1/+13
|
* * apt-pkg/contrib/error.{cc,h}Michael Vogt2010-07-291-5/+6
| | | - docstring cleanup
* * apt-pkg/contrib/error.{cc,h}:David Kalnischkies2010-07-101-2/+2
| | | | - remove constness of va_list parameter to fix build on amd64 and co Thanks Eric Valette! (Closes: #588610)
* add a simple stack handling to be able to delay error handlingDavid Kalnischkies2010-06-251-1/+34
|
* * apt-pkg/contrib/error.{cc,h}:David Kalnischkies2010-06-251-29/+201
| | | | - complete rewrite but use the same API - add NOTICE and DEBUG as new types of a message
* replace every call to toupper with one to our own tolower_asciiDavid Kalnischkies2010-03-301-4/+4
| | | | | | | | | | This sounds like a premature optimization and since Mr. Knuth we all know that they are the root of all evil - but, and here it starts to be interesting: As the tolower_ascii method is by far the most called method we have (~60 Mio. times) and as we compare only strings containing ascii characters (package names, configuration options) using our own method reduces execution time of APT by 4% plus it avoids that the locale settings can influence us.
* * cmdline/acqprogress.cc:Michael Vogt2010-01-311-23/+7
| | | | | | | | | - Set Mode to Medium so that the correct prefix is used. Thanks Stefan Haller for the patch! (Closes: #567304 LP: #275243) * ftparchive/writer.cc: - generate sha1 and sha256 checksums for dsc (Closes: #567343) * cmdline/apt-get.cc: - don't mark as manually if in download only (Closes: #468180)
* * apt-pkg/contrib/fileutl.cc:Michael Vogt2010-01-231-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | - Fix the newly introduced method GetListOfFilesInDir to not accept every file if no extension is enforced (= restore old behaviour). (Closes: #565213) * apt-pkg/policy.cc: - accept also partfiles with "pref" file extension as valid * apt-pkg/contrib/configuration.cc: - accept also partfiles with "conf" file extension as valid * doc/apt.conf.5.xml: - reorder description and split out syntax - add partfile name convention (Closes: #558348) * doc/apt_preferences.conf.5.xml: - describe partfile name convention also here * apt-pkg/deb/dpkgpm.cc: - don't segfault if term.log file can't be opened. Thanks Sam Brightman for the patch! (Closes: #475770) * doc/*: - replace the per language addendum with a global addendum - add a explanation why translations include (maybe) english parts to the new global addendum (Closes: #561636) * apt-pkg/contrib/strutl.cc: - fix malloc asseration fail with ja_JP.eucJP locale in apt-cache search. Thanks Kusanagi Kouichi! (Closes: #548884)
* * removed the pragma messMichael Vogt2006-10-021-3/+1
|
* G++3 fixes from RandolphArch Librarian2004-09-201-1/+3
| | | | | | Author: jgg Date: 2001-05-07 05:05:13 GMT G++3 fixes from Randolph
* Join with aliencodeArch Librarian2004-09-201-5/+17
| | | | | | Author: jgg Date: 2001-02-20 07:03:16 GMT Join with aliencode
* Dsync mergeArch Librarian2004-09-201-2/+1
| | | | | | Author: jgg Date: 1999-01-18 06:20:07 GMT Dsync merge
* SyncArch Librarian2004-09-201-1/+2
| | | | | | Author: jgg Date: 1998-09-18 02:42:38 GMT Sync
* SyncArch Librarian2004-09-201-4/+4
| | | | | | Author: jgg Date: 1998-09-12 02:46:25 GMT Sync
* First draft of make system and name change to apt-pkgArch Librarian2004-09-201-2/+2
| | | | | | Author: jgg Date: 1998-07-12 23:58:20 GMT First draft of make system and name change to apt-pkg
* SyncArch Librarian2004-09-201-5/+10
| | | | | | Author: jgg Date: 1998-07-07 04:17:00 GMT Sync
* Base revisionsArch Librarian2004-09-201-0/+84
Author: jgg Date: 1998-07-02 02:58:12 GMT Base revisions