aboutsummaryrefslogtreecommitdiff
path: root/src/sqliteInt.h
diff options
context:
space:
mode:
authordrh <>2022-10-17 10:15:41 +0000
committerdrh <>2022-10-17 10:15:41 +0000
commitce4b0fdf8a04b2ccaf2a587d0f8d9f3382355d51 (patch)
treec04cae23ebd2639bd308ac885c67560f28da78af /src/sqliteInt.h
parent135c9ff6f7077435614e5226dbb5361e33bd1cac (diff)
downloadsqlite-ce4b0fdf8a04b2ccaf2a587d0f8d9f3382355d51.tar.gz
sqlite-ce4b0fdf8a04b2ccaf2a587d0f8d9f3382355d51.zip
Make use of alloca() in wherePathSolver() when SQLITE_USE_ALLOCA is defined.
FossilOrigin-Name: 45752471521f8d4a6cad4bce40f907018acd403ffd3b8170020c34e4e0b6b91b
Diffstat (limited to 'src/sqliteInt.h')
-rw-r--r--src/sqliteInt.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sqliteInt.h b/src/sqliteInt.h
index 6f1109f2f..05bc6dd4c 100644
--- a/src/sqliteInt.h
+++ b/src/sqliteInt.h
@@ -4391,12 +4391,16 @@ int sqlite3HeapNearlyFull(void);
*/
#ifdef SQLITE_USE_ALLOCA
# define sqlite3StackAllocRaw(D,N) alloca(N)
+# define sqlite3StackAllocRawNN(D,N) alloca(N)
# define sqlite3StackAllocZero(D,N) memset(alloca(N), 0, N)
# define sqlite3StackFree(D,P)
+# define sqlite3StackFreeNN(D,P)
#else
# define sqlite3StackAllocRaw(D,N) sqlite3DbMallocRaw(D,N)
+# define sqlite3StackAllocRawNN(D,N) sqlite3DbMallocRawNN(D,N)
# define sqlite3StackAllocZero(D,N) sqlite3DbMallocZero(D,N)
# define sqlite3StackFree(D,P) sqlite3DbFree(D,P)
+# define sqlite3StackFreeNN(D,P) sqlite3DbFreeNN(D,P)
#endif
/* Do not allow both MEMSYS5 and MEMSYS3 to be defined together. If they