diff options
author | drh <drh@noemail.net> | 2013-08-21 21:12:10 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2013-08-21 21:12:10 +0000 |
commit | b49bc86a1a6134806dde81bb788fcf4a9fa8d7a9 (patch) | |
tree | 3f3c297c7f198df139beeb85c13a792805be3e52 /src/sqliteInt.h | |
parent | c63e880bdbf9c1a775feedae161ddbdc64e4de34 (diff) | |
download | sqlite-b49bc86a1a6134806dde81bb788fcf4a9fa8d7a9.tar.gz sqlite-b49bc86a1a6134806dde81bb788fcf4a9fa8d7a9.zip |
Simplification to the StrAccum object and the sqlite3StrAccumAppend()
method that also results in slightly better performance.
FossilOrigin-Name: 700dbbea8647e0fdaee6d0aba3d3dd8ebfbac04a
Diffstat (limited to 'src/sqliteInt.h')
-rw-r--r-- | src/sqliteInt.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/sqliteInt.h b/src/sqliteInt.h index bde400801..025bb466d 100644 --- a/src/sqliteInt.h +++ b/src/sqliteInt.h @@ -2425,10 +2425,11 @@ struct StrAccum { int nChar; /* Length of the string so far */ int nAlloc; /* Amount of space allocated in zText */ int mxAlloc; /* Maximum allowed string length */ - u8 mallocFailed; /* Becomes true if any memory allocation fails */ u8 useMalloc; /* 0: none, 1: sqlite3DbMalloc, 2: sqlite3_malloc */ - u8 tooBig; /* Becomes true if string size exceeds limits */ + u8 accError; /* STRACCUM_NOMEM or STRACCUM_TOOBIG */ }; +#define STRACCUM_NOMEM 1 +#define STRACCUM_TOOBIG 2 /* ** A pointer to this structure is used to communicate information |