summaryrefslogtreecommitdiff
path: root/src/hash.c
AgeCommit message (Collapse)AuthorFilesLines
2020-05-19make the atom functions not use global stateTimo Teräs1-1/+2
This greatly helps with memory management on applications that may want to daemonize and open/close database several times. Also the lifetime and "owner" of memory for all data is now explicitly bound to owning struct apk_database, which might be helpful when writing language bindings. As side effect, the interned "atoms" are unique only within what apk_database, so comparing packages from different apk_database may not work as expected. Fixes #10697
2020-05-07use SPDX-License-Identifier in source filesTBK1-3/+1
2013-06-18all: various conversions to foreach_array_item, and simplifications of codeTimo Teräs1-3/+4
2011-09-13all: update copyright year statementTimo Teräs1-1/+1
2010-06-05all: rework how arrays workTimo Teräs1-2/+3
Instead of having a null pointer, use a dummy array which just says the array is empty. This helps in multiple places of the code which would otherwise need explicitly need to check first if the array exists. This has been cause of multiple seg.faults in the past as the array check is easily omitted. This also removes (or fixes) all existing checks accordingly.
2009-07-14hash: allow caching of hash valueTimo Teras1-13/+6
2009-01-17del: proper ordering of file db entry deletionTimo Teras1-3/+2
2009-01-16db, hash: fix package purging/upgrading to update filedb properlyTimo Teras1-0/+28
2009-01-14db: keep only filename in file entries, hash by both directory and fileTimo Teras1-8/+18
2009-01-06db, pkg: fix rest of memory leaksTimo Teras1-1/+1
2008-11-27hash, db: use apk_blob_t and list_*Timo Teras1-20/+4
2008-04-17Initial commit of some stuff written so far. Still in state of flux. ExpectTimo Teras1-0/+97
breakage and major changes.