diff options
author | drh <drh@noemail.net> | 2008-10-11 17:42:28 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2008-10-11 17:42:28 +0000 |
commit | 419fcf66db4979e6dd7349f58e638bfa842de91c (patch) | |
tree | cccda360b9ebaa201e3052e03926bbf1d1d693e6 /src | |
parent | ddecae799582987b8303d0062324eb169b40275e (diff) | |
download | sqlite-419fcf66db4979e6dd7349f58e638bfa842de91c.tar.gz sqlite-419fcf66db4979e6dd7349f58e638bfa842de91c.zip |
Conditionally omit prototypes in pcache.h when the corresponding routines
are not used. Ticket #3430. (CVS 5805)
FossilOrigin-Name: 977ae12c365846e1bc582fd17146151953b5ed68
Diffstat (limited to 'src')
-rw-r--r-- | src/pcache.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/pcache.h b/src/pcache.h index 1fadc3204..835fee918 100644 --- a/src/pcache.h +++ b/src/pcache.h @@ -12,7 +12,7 @@ ** This header file defines the interface that the sqlite page cache ** subsystem. ** -** @(#) $Id: pcache.h,v 1.12 2008/09/29 11:49:48 danielk1977 Exp $ +** @(#) $Id: pcache.h,v 1.13 2008/10/11 17:42:29 drh Exp $ */ #ifndef _PCACHE_H_ @@ -147,11 +147,13 @@ int sqlite3PcachePageRefcount(PgHdr*); /* Return the total number of pages stored in the cache */ int sqlite3PcachePagecount(PCache*); +#ifdef SQLITE_CHECK_PAGES /* Iterate through all pages currently stored in the cache. This interface ** is only available if SQLITE_CHECK_PAGES is defined when the library is ** built. */ void sqlite3PcacheIterate(PCache *pCache, void (*xIter)(PgHdr *)); +#endif /* Set and get the suggested cache-size for the specified pager-cache. ** @@ -162,9 +164,13 @@ void sqlite3PcacheIterate(PCache *pCache, void (*xIter)(PgHdr *)); int sqlite3PcacheGetCachesize(PCache *); void sqlite3PcacheSetCachesize(PCache *, int); +#ifdef SQLITE_ENABLE_MEMORY_MANAGEMENT /* Try to return memory used by the pcache module to the main memory heap */ int sqlite3PcacheReleaseMemory(int); +#endif +#ifdef SQLITE_TEST void sqlite3PcacheStats(int*,int*,int*,int*); +#endif #endif /* _PCACHE_H_ */ |