X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/031aa37554d04be406588fb67807124b7f35d4c4..212ad54a664e099ca2f4d240788d5a75254e9358:/apt-pkg/pkgcache.h diff --git a/apt-pkg/pkgcache.h b/apt-pkg/pkgcache.h index 037f8f055..70d08826e 100644 --- a/apt-pkg/pkgcache.h +++ b/apt-pkg/pkgcache.h @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: pkgcache.h,v 1.10 1998/11/12 03:28:29 jgg Exp $ +// $Id: pkgcache.h,v 1.12 1998/12/08 01:34:13 jgg Exp $ /* ###################################################################### Cache - Structure definitions for the cache file @@ -109,6 +109,7 @@ class pkgCache virtual bool ReMap(); inline bool Sync() {return Map.Sync();}; + inline MMap &GetMap() {return Map;}; // String hashing function (512 range) inline unsigned long Hash(string S) const {return sHash(S);}; @@ -163,7 +164,7 @@ struct pkgCache::Header DynamicMMap::Pool Pools[7]; // Rapid package name lookup - __apt_ptrloc HashTable[512]; + __apt_ptrloc HashTable[2048]; bool CheckSizes(Header &Against) const; Header();