diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mem2.c | 10 | ||||
-rw-r--r-- | src/mem3.c | 4 | ||||
-rw-r--r-- | src/mem5.c | 4 | ||||
-rw-r--r-- | src/test_malloc.c | 18 |
4 files changed, 18 insertions, 18 deletions
diff --git a/src/mem2.c b/src/mem2.c index 45c026614..41d9720fd 100644 --- a/src/mem2.c +++ b/src/mem2.c @@ -12,7 +12,7 @@ ** This file contains the C functions that implement a memory ** allocation subsystem for use by SQLite. ** -** $Id: mem2.c,v 1.21 2008/02/14 23:26:56 drh Exp $ +** $Id: mem2.c,v 1.22 2008/02/19 15:15:16 drh Exp $ */ #include "sqliteInt.h" @@ -382,7 +382,7 @@ void *sqlite3_realloc(void *pPrior, int nByte){ ** A value of zero turns of backtracing. The number is always rounded ** up to a multiple of 2. */ -void sqlite3_memdebug_backtrace(int depth){ +void sqlite3MemdebugBacktrace(int depth){ if( depth<0 ){ depth = 0; } if( depth>20 ){ depth = 20; } depth = (depth+1)&0xfe; @@ -392,7 +392,7 @@ void sqlite3_memdebug_backtrace(int depth){ /* ** Set the title string for subsequent allocations. */ -void sqlite3_memdebug_settitle(const char *zTitle){ +void sqlite3MemdebugSettitle(const char *zTitle){ int n = strlen(zTitle) + 1; enterMem(); if( n>=sizeof(mem.zTitle) ) n = sizeof(mem.zTitle)-1; @@ -406,7 +406,7 @@ void sqlite3_memdebug_settitle(const char *zTitle){ ** Open the file indicated and write a log of all unfreed memory ** allocations into that log. */ -void sqlite3_memdebug_dump(const char *zFilename){ +void sqlite3MemdebugDump(const char *zFilename){ FILE *out; struct MemBlockHdr *pHdr; void **pBt; @@ -445,7 +445,7 @@ void sqlite3_memdebug_dump(const char *zFilename){ /* ** Return the number of times sqlite3_malloc() has been called. */ -int sqlite3_memdebug_malloc_count(){ +int sqlite3MemdebugMallocCount(){ int i; int nTotal = 0; for(i=0; i<NCSIZE; i++){ diff --git a/src/mem3.c b/src/mem3.c index 02fdcec2b..9f15bc642 100644 --- a/src/mem3.c +++ b/src/mem3.c @@ -20,7 +20,7 @@ ** This version of the memory allocation subsystem is used if ** and only if SQLITE_MEMORY_SIZE is defined. ** -** $Id: mem3.c,v 1.11 2008/02/14 23:26:56 drh Exp $ +** $Id: mem3.c,v 1.12 2008/02/19 15:15:16 drh Exp $ */ #include "sqliteInt.h" @@ -578,7 +578,7 @@ void *sqlite3_realloc(void *pPrior, int nBytes){ ** Open the file indicated and write a log of all unfreed memory ** allocations into that log. */ -void sqlite3_memdebug_dump(const char *zFilename){ +void sqlite3MemdebugDump(const char *zFilename){ #ifdef SQLITE_DEBUG FILE *out; int i, j; diff --git a/src/mem5.c b/src/mem5.c index e73b13aae..4250cfa94 100644 --- a/src/mem5.c +++ b/src/mem5.c @@ -20,7 +20,7 @@ ** This version of the memory allocation subsystem is used if ** and only if SQLITE_POW2_MEMORY_SIZE is defined. ** -** $Id: mem5.c,v 1.3 2008/02/18 22:24:58 drh Exp $ +** $Id: mem5.c,v 1.4 2008/02/19 15:15:16 drh Exp $ */ #include "sqliteInt.h" @@ -470,7 +470,7 @@ void *sqlite3_realloc(void *pPrior, int nBytes){ ** Open the file indicated and write a log of all unfreed memory ** allocations into that log. */ -void sqlite3_memdebug_dump(const char *zFilename){ +void sqlite3MemdebugDump(const char *zFilename){ #ifdef SQLITE_DEBUG FILE *out; int i, j, n; diff --git a/src/test_malloc.c b/src/test_malloc.c index 642e5c7d0..86a32059f 100644 --- a/src/test_malloc.c +++ b/src/test_malloc.c @@ -13,7 +13,7 @@ ** This file contains code used to implement test interfaces to the ** memory allocation subsystem. ** -** $Id: test_malloc.c,v 1.14 2008/02/18 22:24:58 drh Exp $ +** $Id: test_malloc.c,v 1.15 2008/02/19 15:15:16 drh Exp $ */ #include "sqliteInt.h" #include "tcl.h" @@ -312,8 +312,8 @@ static int test_memdebug_backtrace( if( Tcl_GetIntFromObj(interp, objv[1], &depth) ) return TCL_ERROR; #ifdef SQLITE_MEMDEBUG { - extern void sqlite3_memdebug_backtrace(int); - sqlite3_memdebug_backtrace(depth); + extern void sqlite3MemdebugBacktrace(int); + sqlite3MemdebugBacktrace(depth); } #endif return TCL_OK; @@ -337,8 +337,8 @@ static int test_memdebug_dump( #if defined(SQLITE_MEMDEBUG) || defined(SQLITE_MEMORY_SIZE) \ || defined(SQLITE_POW2_MEMORY_SIZE) { - extern void sqlite3_memdebug_dump(const char*); - sqlite3_memdebug_dump(Tcl_GetString(objv[1])); + extern void sqlite3MemdebugDump(const char*); + sqlite3MemdebugDump(Tcl_GetString(objv[1])); } #endif return TCL_OK; @@ -362,8 +362,8 @@ static int test_memdebug_malloc_count( } #if defined(SQLITE_MEMDEBUG) { - extern int sqlite3_memdebug_malloc_count(); - nMalloc = sqlite3_memdebug_malloc_count(); + extern int sqlite3MemdebugMallocCount(); + nMalloc = sqlite3MemdebugMallocCount(); } #endif Tcl_SetObjResult(interp, Tcl_NewIntObj(nMalloc)); @@ -503,8 +503,8 @@ static int test_memdebug_settitle( zTitle = Tcl_GetString(objv[1]); #ifdef SQLITE_MEMDEBUG { - extern int sqlite3_memdebug_settitle(const char*); - sqlite3_memdebug_settitle(zTitle); + extern int sqlite3MemdebugSettitle(const char*); + sqlite3MemdebugSettitle(zTitle); } #endif return TCL_OK; |