diff options
author | drh <drh@noemail.net> | 2007-08-08 01:04:52 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2007-08-08 01:04:52 +0000 |
commit | f7083bf6d22e6840c583c95b452af2348c206832 (patch) | |
tree | c51620acc9b01ffd40c92bf456360aea62d3de1c /src/malloc.c | |
parent | fd131daecd8acf229b93be883f2df7217fd41af5 (diff) | |
download | sqlite-f7083bf6d22e6840c583c95b452af2348c206832.tar.gz sqlite-f7083bf6d22e6840c583c95b452af2348c206832.zip |
Additional refinements on the amalgamation: Give a couple of constants
file scope and add the SQLITE_API prefix to some interfaces that need it.
Ticket #2554. (CVS 4199)
FossilOrigin-Name: c09ec102c4f62e492dd3676ef0aa1a183d6ce3b3
Diffstat (limited to 'src/malloc.c')
-rw-r--r-- | src/malloc.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/malloc.c b/src/malloc.c index 2ae3a55ad..8a993326b 100644 --- a/src/malloc.c +++ b/src/malloc.c @@ -12,7 +12,7 @@ ** Memory allocation functions used throughout sqlite. ** ** -** $Id: malloc.c,v 1.3 2007/06/15 20:29:20 drh Exp $ +** $Id: malloc.c,v 1.4 2007/08/08 01:04:52 drh Exp $ */ #include "sqliteInt.h" #include "os.h" @@ -792,10 +792,10 @@ void sqlite3SetString(char **pz, ...){ ** then the connection error-code (the value returned by sqlite3_errcode()) ** is set to SQLITE_NOMEM. */ -int sqlite3_mallocHasFailed = 0; +int sqlite3MallocHasFailed = 0; int sqlite3ApiExit(sqlite3* db, int rc){ if( sqlite3MallocFailed() ){ - sqlite3_mallocHasFailed = 0; + sqlite3MallocHasFailed = 0; sqlite3OsLeaveMutex(); sqlite3Error(db, SQLITE_NOMEM, 0); rc = SQLITE_NOMEM; @@ -809,8 +809,8 @@ int sqlite3ApiExit(sqlite3* db, int rc){ void sqlite3FailedMalloc(){ if( !sqlite3MallocFailed() ){ sqlite3OsEnterMutex(); - assert( sqlite3_mallocHasFailed==0 ); - sqlite3_mallocHasFailed = 1; + assert( sqlite3MallocHasFailed==0 ); + sqlite3MallocHasFailed = 1; } } |