Confusion On Sqlite3 Struct In Sqlite3 Source Code
In the function static int sqlite3Prepare( sqlite3 *db, /* Database handle. */ const char *zSql, /* UTF-8 encoded SQL statement. */ int nBytes,
Solution 1:
sqlite3
is not a fake struct; the sqlite.h
file just does not define its body.
Its definition is in the sqliteInt.h
file (which is also part of the sqlite3.c
amalgamation):
/*
** Each database connection is an instance of the following structure.
*/structsqlite3 {
sqlite3_vfs *pVfs; /* OS Interface */structVdbe *pVdbe; /* List of active virtual machines */
CollSeq *pDfltColl; /* The default collating sequence (BINARY) */
...
u8 mallocFailed; /* True if we have seen a malloc failure */
...
Post a Comment for "Confusion On Sqlite3 Struct In Sqlite3 Source Code"