aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordan <dan@noemail.net>2011-07-07 08:19:16 +0000
committerdan <dan@noemail.net>2011-07-07 08:19:16 +0000
commite7152dc76b3c6ee3868c9e8741a1ca9625c17852 (patch)
treef03b5ffee09fc4935a8c5e158fe71f97aa921f02 /src
parentf443e317f7828e922bb588aa0ca0dc829b9c39a7 (diff)
downloadsqlite-e7152dc76b3c6ee3868c9e8741a1ca9625c17852.tar.gz
sqlite-e7152dc76b3c6ee3868c9e8741a1ca9625c17852.zip
Add a target to main.mk that will fail if the amalgamation contains any exported symbols that do not begin with "sqlite3_". Run this target from within releasetest.tcl. Add "static" to a couple of private functions in mem3.c.
FossilOrigin-Name: a68b6580c7d436c896a644a475cdba33c2c8d6e6
Diffstat (limited to 'src')
-rw-r--r--src/mem3.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mem3.c b/src/mem3.c
index e2d66815b..1a1b791f2 100644
--- a/src/mem3.c
+++ b/src/mem3.c
@@ -433,7 +433,7 @@ static void *memsys3MallocUnsafe(int nByte){
** This function assumes that the necessary mutexes, if any, are
** already held by the caller. Hence "Unsafe".
*/
-void memsys3FreeUnsafe(void *pOld){
+static void memsys3FreeUnsafe(void *pOld){
Mem3Block *p = (Mem3Block*)pOld;
int i;
u32 size, x;
@@ -508,7 +508,7 @@ static void *memsys3Malloc(int nBytes){
/*
** Free memory.
*/
-void memsys3Free(void *pPrior){
+static void memsys3Free(void *pPrior){
assert( pPrior );
memsys3Enter();
memsys3FreeUnsafe(pPrior);
@@ -518,7 +518,7 @@ void memsys3Free(void *pPrior){
/*
** Change the size of an existing memory allocation
*/
-void *memsys3Realloc(void *pPrior, int nBytes){
+static void *memsys3Realloc(void *pPrior, int nBytes){
int nOld;
void *p;
if( pPrior==0 ){