sqlite3.cfg: Add more allocation and function configurations.

This commit is contained in:
versat 2019-03-28 10:42:11 +01:00
parent b2803f56b4
commit 3917a14c99
1 changed files with 332 additions and 2 deletions

View File

@ -440,8 +440,8 @@
<!-- ########## SQLite Memory Allocation / Deallocation ########## -->
<!-- https://www.sqlite.org/capi3ref.html#sqlite3_free -->
<memory>
<alloc init="false">sqlite3_malloc</alloc>
<alloc init="false">sqlite3_malloc64</alloc>
<alloc init="false" buffer-size="malloc">sqlite3_malloc</alloc>
<alloc init="false" buffer-size="malloc">sqlite3_malloc64</alloc>
<dealloc>sqlite3_free</dealloc>
</memory>
<!-- https://www.sqlite.org/capi3ref.html#sqlite3_str_new -->
@ -454,6 +454,17 @@
<alloc init="true">sqlite3_str_finish</alloc>
<dealloc>sqlite3_free</dealloc>
</memory>
<!-- https://www.sqlite.org/capi3ref.html#sqlite3_mprintf -->
<memory>
<alloc init="true">sqlite3_mprintf</alloc>
<alloc init="true">sqlite3_vmprintf</alloc>
<dealloc>sqlite3_free</dealloc>
</memory>
<!-- https://www.sqlite.org/capi3ref.html#sqlite3_expanded_sql -->
<memory>
<alloc init="true">sqlite3_expanded_sql</alloc>
<dealloc>sqlite3_free</dealloc>
</memory>
<!-- ########## SQLite Resource Allocation / Deallocation ########## -->
<!-- https://www.sqlite.org/capi3ref.html#sqlite3 -->
<resource>
@ -475,6 +486,129 @@
<not-bool/>
</arg>
</function>
<!-- https://www.sqlite.org/capi3ref.html#sqlite3_column_blob -->
<!-- const void *sqlite3_column_blob(sqlite3_stmt*, int iCol); -->
<function name="sqlite3_column_blob">
<noreturn>false</noreturn>
<returnValue type="const void *"/>
<use-retval/>
<arg nr="1">
<not-null/>
<not-uninit/>
</arg>
<arg nr="2" direction="in">
<not-uninit/>
<valid>0:</valid>
<not-bool/>
</arg>
</function>
<!-- double sqlite3_column_double(sqlite3_stmt*, int iCol); -->
<function name="sqlite3_column_double">
<noreturn>false</noreturn>
<returnValue type="double"/>
<use-retval/>
<arg nr="1">
<not-null/>
<not-uninit/>
</arg>
<arg nr="2" direction="in">
<not-uninit/>
<valid>0:</valid>
<not-bool/>
</arg>
</function>
<!-- int sqlite3_column_int(sqlite3_stmt*, int iCol); -->
<function name="sqlite3_column_int">
<noreturn>false</noreturn>
<returnValue type="int"/>
<use-retval/>
<arg nr="1">
<not-null/>
<not-uninit/>
</arg>
<arg nr="2" direction="in">
<not-uninit/>
<valid>0:</valid>
<not-bool/>
</arg>
</function>
<!-- sqlite3_int64 sqlite3_column_int64(sqlite3_stmt*, int iCol); -->
<function name="sqlite3_column_int64">
<noreturn>false</noreturn>
<returnValue type="sqlite3_int64"/>
<use-retval/>
<arg nr="1">
<not-null/>
<not-uninit/>
</arg>
<arg nr="2" direction="in">
<not-uninit/>
<valid>0:</valid>
<not-bool/>
</arg>
</function>
<!-- const unsigned char *sqlite3_column_text(sqlite3_stmt*, int iCol); -->
<function name="sqlite3_column_text">
<noreturn>false</noreturn>
<returnValue type="const unsigned char *"/>
<use-retval/>
<arg nr="1">
<not-null/>
<not-uninit/>
</arg>
<arg nr="2" direction="in">
<not-uninit/>
<valid>0:</valid>
<not-bool/>
</arg>
</function>
<!-- const void *sqlite3_column_text16(sqlite3_stmt*, int iCol); -->
<function name="sqlite3_column_text16">
<noreturn>false</noreturn>
<returnValue type="const void *"/>
<use-retval/>
<arg nr="1">
<not-null/>
<not-uninit/>
</arg>
<arg nr="2" direction="in">
<not-uninit/>
<valid>0:</valid>
<not-bool/>
</arg>
</function>
<!-- sqlite3_value *sqlite3_column_value(sqlite3_stmt*, int iCol); -->
<function name="sqlite3_column_value">
<noreturn>false</noreturn>
<returnValue type="sqlite3_value *"/>
<use-retval/>
<arg nr="1">
<not-null/>
<not-uninit/>
</arg>
<arg nr="2" direction="in">
<not-uninit/>
<valid>0:</valid>
<not-bool/>
</arg>
</function>
<!-- int sqlite3_column_bytes(sqlite3_stmt*, int iCol); -->
<!-- int sqlite3_column_bytes16(sqlite3_stmt*, int iCol); -->
<!-- int sqlite3_column_type(sqlite3_stmt*, int iCol); -->
<function name="sqlite3_column_bytes,sqlite3_column_bytes16,sqlite3_column_type">
<noreturn>false</noreturn>
<returnValue type="int"/>
<use-retval/>
<arg nr="1">
<not-null/>
<not-uninit/>
</arg>
<arg nr="2" direction="in">
<not-uninit/>
<valid>0:</valid>
<not-bool/>
</arg>
</function>
<!-- https://www.sqlite.org/capi3ref.html#sqlite3_errcode -->
<!-- const char *sqlite3_errmsg(sqlite3*); -->
<!-- const void *sqlite3_errmsg16(sqlite3*); -->
@ -486,6 +620,27 @@
<not-bool/>
</arg>
</function>
<!-- https://www.sqlite.org/capi3ref.html#sqlite3_exec -->
<!-- int sqlite3_exec(sqlite3*, /* An open database */
const char *sql, /* SQL to be evaluated */
int (*callback)(void*,int,char**,char**), /* Callback function */
void *, /* 1st argument to callback */
char **errmsg /* Error msg written here */); -->
<function name="sqlite3_exec">
<noreturn>false</noreturn>
<returnValue type="int"/>
<arg nr="1">
<not-uninit/>
</arg>
<arg nr="2" direction="in">
<not-uninit/>
</arg>
<arg nr="3"/>
<arg nr="4"/>
<arg nr="5" direction="out">
<not-bool/>
</arg>
</function>
<!-- https://www.sqlite.org/capi3ref.html#sqlite3_finalize -->
<!-- int sqlite3_finalize(sqlite3_stmt *pStmt); -->
<function name="sqlite3_finalize">
@ -550,4 +705,179 @@
<not-bool/>
</arg>
</function>
<!-- https://www.sqlite.org/capi3ref.html#sqlite3_prepare -->
<!-- int sqlite3_prepare(sqlite3 *db, /* Database handle */
const char *zSql, /* SQL statement, UTF-8 encoded */
int nByte, /* Maximum length of zSql in bytes. */
sqlite3_stmt **ppStmt, /* OUT: Statement handle */
const char **pzTail /* OUT: Pointer to unused portion of zSql */); -->
<function name="sqlite3_prepare">
<noreturn>false</noreturn>
<returnValue type="int"/>
<warn severity="style" alternatives="sqlite3_prepare_v2" reason="Obsolete">The sqlite3_prepare() interface is legacy and should be avoided</warn>
<arg nr="1">
<not-uninit/>
</arg>
<arg nr="2" direction="in">
<not-uninit/>
<not-null/>
</arg>
<arg nr="3" direction="in">
<not-uninit/>
</arg>
<arg nr="4" direction="out">
<not-null/>
</arg>
<arg nr="5" direction="out">
<not-bool/>
</arg>
</function>
<!-- https://www.sqlite.org/capi3ref.html#sqlite3_prepare -->
<!-- int sqlite3_prepare16(sqlite3 *db, /* Database handle */
const void *zSql, /* SQL statement, UTF-16 encoded */
int nByte, /* Maximum length of zSql in bytes. */
sqlite3_stmt **ppStmt, /* OUT: Statement handle */
const void **pzTail /* OUT: Pointer to unused portion of zSql */); -->
<function name="sqlite3_prepare16">
<noreturn>false</noreturn>
<returnValue type="int"/>
<warn severity="style" alternatives="sqlite3_prepare16_v2" reason="Obsolete">The sqlite3_prepare16() interface is legacy and should be avoided</warn>
<arg nr="1">
<not-uninit/>
</arg>
<arg nr="2" direction="in">
<not-uninit/>
<not-null/>
</arg>
<arg nr="3" direction="in">
<not-uninit/>
</arg>
<arg nr="4" direction="out">
<not-null/>
</arg>
<arg nr="5" direction="out">
<not-bool/>
</arg>
</function>
<!-- https://www.sqlite.org/capi3ref.html#sqlite3_prepare -->
<!-- int sqlite3_prepare_v2(sqlite3 *db, /* Database handle */
const char *zSql, /* SQL statement, UTF-8 encoded */
int nByte, /* Maximum length of zSql in bytes. */
sqlite3_stmt **ppStmt, /* OUT: Statement handle */
const char **pzTail /* OUT: Pointer to unused portion of zSql */); -->
<!-- int sqlite3_prepare16_v2(sqlite3 *db, /* Database handle */
const void *zSql, /* SQL statement, UTF-16 encoded */
int nByte, /* Maximum length of zSql in bytes. */
sqlite3_stmt **ppStmt, /* OUT: Statement handle */
const void **pzTail /* OUT: Pointer to unused portion of zSql */); -->
<function name="sqlite3_prepare_v2,sqlite3_prepare16_v2">
<noreturn>false</noreturn>
<returnValue type="int"/>
<arg nr="1">
<not-uninit/>
</arg>
<arg nr="2" direction="in">
<not-uninit/>
<not-null/>
</arg>
<arg nr="3" direction="in">
<not-uninit/>
</arg>
<arg nr="4" direction="out">
<not-null/>
</arg>
<arg nr="5" direction="out">
<not-bool/>
</arg>
</function>
<!-- https://www.sqlite.org/capi3ref.html#sqlite3_prepare -->
<!-- int sqlite3_prepare_v3(sqlite3 *db, /* Database handle */
const char *zSql, /* SQL statement, UTF-8 encoded */
int nByte, /* Maximum length of zSql in bytes. */
unsigned int prepFlags, /* Zero or more SQLITE_PREPARE_ flags */
sqlite3_stmt **ppStmt, /* OUT: Statement handle */
const char **pzTail /* OUT: Pointer to unused portion of zSql */); -->
<!-- int sqlite3_prepare16_v3(sqlite3 *db, /* Database handle */
const void *zSql, /* SQL statement, UTF-16 encoded */
int nByte, /* Maximum length of zSql in bytes. */
unsigned int prepFlags, /* Zero or more SQLITE_PREPARE_ flags */
sqlite3_stmt **ppStmt, /* OUT: Statement handle */
const void **pzTail /* OUT: Pointer to unused portion of zSql */ ); -->
<function name="sqlite3_prepare_v3,sqlite3_prepare16_v3">
<noreturn>false</noreturn>
<returnValue type="int"/>
<arg nr="1">
<not-uninit/>
</arg>
<arg nr="2" direction="in">
<not-uninit/>
<not-null/>
</arg>
<arg nr="3" direction="in">
<not-uninit/>
</arg>
<arg nr="4" direction="in">
<not-uninit/>
</arg>
<arg nr="5" direction="out">
<not-null/>
</arg>
<arg nr="6" direction="out">
<not-bool/>
</arg>
</function>
<!-- https://www.sqlite.org/capi3ref.html#sqlite3_step -->
<!-- int sqlite3_step(sqlite3_stmt*); -->
<function name="sqlite3_step">
<noreturn>false</noreturn>
<returnValue type="int"/>
<arg nr="1">
<not-uninit/>
<not-bool/>
</arg>
</function>
<!-- https://www.sqlite.org/capi3ref.html#sqlite3_stricmp -->
<!-- int sqlite3_stricmp(const char *, const char *); -->
<function name="sqlite3_stricmp">
<noreturn>false</noreturn>
<returnValue type="int"/>
<use-retval/>
<leak-ignore/>
<arg nr="1" direction="in">
<not-uninit/>
<not-null/>
<strz/>
</arg>
<arg nr="2" direction="in">
<not-uninit/>
<not-null/>
<strz/>
<not-bool/>
</arg>
</function>
<!-- https://www.sqlite.org/capi3ref.html#sqlite3_stricmp -->
<!-- int sqlite3_strnicmp(const char *, const char *, int); -->
<function name="sqlite3_stricmp">
<noreturn>false</noreturn>
<returnValue type="int"/>
<use-retval/>
<leak-ignore/>
<arg nr="1" direction="in">
<not-uninit/>
<not-null/>
<strz/>
<minsize type="argvalue" arg="3"/>
</arg>
<arg nr="2" direction="in">
<not-uninit/>
<not-null/>
<strz/>
<minsize type="argvalue" arg="3"/>
</arg>
<arg nr="3" direction="in">
<not-uninit/>
<not-bool/>
<valid>0:</valid>
</arg>
</function>
</def>