sqlite3.cfg: Add more function configurations (#1957)

Some were found missing by daca@home
This commit is contained in:
Sebastian 2019-07-05 15:45:21 +02:00 committed by GitHub
parent 57d44f1362
commit a9a70f25ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 399 additions and 2 deletions

View File

@ -475,6 +475,71 @@
<dealloc>sqlite3_close_v2</dealloc> <dealloc>sqlite3_close_v2</dealloc>
</resource> </resource>
<!-- ########## SQLite Functions ########## --> <!-- ########## SQLite Functions ########## -->
<!-- https://www.sqlite.org/capi3ref.html#sqlite3_bind_blob -->
<!-- int sqlite3_bind_blob(sqlite3_stmt*, int, const void*, int n, void(*)(void*)); -->
<function name="sqlite3_bind_blob">
<noreturn>false</noreturn>
<returnValue type="int"/>
<arg nr="1">
<not-uninit/>
</arg>
<arg nr="2" direction="in">
<not-uninit/>
<valid>1:</valid>
</arg>
<arg nr="3" direction="in">
<not-uninit/>
</arg>
<arg nr="4" direction="in">
<not-uninit/>
<valid>0:</valid>
</arg>
<arg nr="5">
<not-uninit/>
<not-bool/>
</arg>
</function>
<!-- https://www.sqlite.org/capi3ref.html#sqlite3_bind_blob -->
<!-- int sqlite3_bind_int(sqlite3_stmt*, int, int); -->
<!-- int sqlite3_bind_int64(sqlite3_stmt*, int, sqlite3_int64); -->
<function name="sqlite3_bind_int,sqlite3_bind_int64">
<noreturn>false</noreturn>
<returnValue type="int"/>
<arg nr="1">
<not-uninit/>
</arg>
<arg nr="2" direction="in">
<not-uninit/>
<valid>1:</valid>
</arg>
<arg nr="3" direction="in">
<not-uninit/>
<not-bool/>
</arg>
</function>
<!-- https://www.sqlite.org/capi3ref.html#sqlite3_bind_blob -->
<!-- int sqlite3_bind_text(sqlite3_stmt*, int, const char*, int, void(*)(void*)); -->
<function name="sqlite3_bind_text">
<noreturn>false</noreturn>
<returnValue type="int"/>
<arg nr="1">
<not-uninit/>
</arg>
<arg nr="2" direction="in">
<not-uninit/>
<valid>1:</valid>
</arg>
<arg nr="3" direction="in">
<not-uninit/>
</arg>
<arg nr="4" direction="in">
<not-uninit/>
</arg>
<arg nr="5">
<not-uninit/>
<not-bool/>
</arg>
</function>
<!-- https://www.sqlite.org/capi3ref.html#sqlite3_close --> <!-- https://www.sqlite.org/capi3ref.html#sqlite3_close -->
<!-- int sqlite3_close(sqlite3*); --> <!-- int sqlite3_close(sqlite3*); -->
<!-- int sqlite3_close_v2(sqlite3*); --> <!-- int sqlite3_close_v2(sqlite3*); -->
@ -610,16 +675,54 @@
</arg> </arg>
</function> </function>
<!-- https://www.sqlite.org/capi3ref.html#sqlite3_errcode --> <!-- https://www.sqlite.org/capi3ref.html#sqlite3_errcode -->
<!-- int sqlite3_errcode(sqlite3 *db); -->
<!-- int sqlite3_extended_errcode(sqlite3 *db); -->
<function name="sqlite3_errcode,sqlite3_extended_errcode">
<noreturn>false</noreturn>
<returnValue type="int"/>
<use-retval/>
<leak-ignore/>
<arg nr="1">
<not-uninit/>
<not-bool/>
</arg>
</function>
<!-- https://www.sqlite.org/capi3ref.html#sqlite3_errcode -->
<!-- const char *sqlite3_errmsg(sqlite3*); --> <!-- const char *sqlite3_errmsg(sqlite3*); -->
<!-- const void *sqlite3_errmsg16(sqlite3*); --> <function name="sqlite3_errmsg">
<function name="sqlite3_errmsg,sqlite3_errmsg16">
<noreturn>false</noreturn> <noreturn>false</noreturn>
<returnValue type="const char *"/> <returnValue type="const char *"/>
<use-retval/>
<leak-ignore/>
<arg nr="1"> <arg nr="1">
<not-uninit/> <not-uninit/>
<not-bool/> <not-bool/>
</arg> </arg>
</function> </function>
<!-- https://www.sqlite.org/capi3ref.html#sqlite3_errcode -->
<!-- const void *sqlite3_errmsg16(sqlite3*); -->
<function name="sqlite3_errmsg16">
<noreturn>false</noreturn>
<returnValue type="const void *"/>
<use-retval/>
<leak-ignore/>
<arg nr="1">
<not-uninit/>
<not-bool/>
</arg>
</function>
<!-- https://www.sqlite.org/capi3ref.html#sqlite3_errcode -->
<!-- const char *sqlite3_errstr(int); -->
<function name="sqlite3_errstr">
<noreturn>false</noreturn>
<returnValue type="const char *"/>
<use-retval/>
<leak-ignore/>
<arg nr="1" direction="in">
<not-uninit/>
<not-bool/>
</arg>
</function>
<!-- https://www.sqlite.org/capi3ref.html#sqlite3_exec --> <!-- https://www.sqlite.org/capi3ref.html#sqlite3_exec -->
<!-- int sqlite3_exec(sqlite3*, /* An open database */ <!-- int sqlite3_exec(sqlite3*, /* An open database */
const char *sql, /* SQL to be evaluated */ const char *sql, /* SQL to be evaluated */
@ -680,6 +783,21 @@
<valid>1:</valid> <valid>1:</valid>
</arg> </arg>
</function> </function>
<!-- https://www.sqlite.org/capi3ref.html#sqlite3_mprintf -->
<!-- char *sqlite3_mprintf(const char*,...); -->
<function name="sqlite3_mprintf">
<noreturn>false</noreturn>
<returnValue type="char *"/>
<arg nr="1" direction="in">
<not-null/>
<not-uninit/>
<not-bool/>
<strz/>
</arg>
<arg nr="variadic" direction="in">
<not-uninit/>
</arg>
</function>
<!-- sqlite3_uint64 sqlite3_msize(void*); --> <!-- sqlite3_uint64 sqlite3_msize(void*); -->
<function name="sqlite3_msize"> <function name="sqlite3_msize">
<noreturn>false</noreturn> <noreturn>false</noreturn>
@ -689,6 +807,83 @@
<not-bool/> <not-bool/>
</arg> </arg>
</function> </function>
<!-- https://www.sqlite.org/capi3ref.html#sqlite3_mutex_alloc -->
<!-- sqlite3_mutex *sqlite3_mutex_alloc(int); -->
<function name="sqlite3_mutex_alloc">
<noreturn>false</noreturn>
<returnValue type="sqlite3_mutex *"/>
<use-retval/>
<arg nr="1" direction="in">
<not-uninit/>
<not-bool/>
</arg>
</function>
<!-- https://www.sqlite.org/capi3ref.html#sqlite3_mutex_alloc -->
<!-- void sqlite3_mutex_enter(sqlite3_mutex*); -->
<function name="sqlite3_mutex_enter">
<noreturn>false</noreturn>
<returnValue type="void"/>
<leak-ignore/>
<arg nr="1">
<not-uninit/>
<not-bool/>
</arg>
</function>
<!-- https://www.sqlite.org/capi3ref.html#sqlite3_mutex_alloc -->
<!-- void sqlite3_mutex_free(sqlite3_mutex*); -->
<function name="sqlite3_mutex_free">
<noreturn>false</noreturn>
<returnValue type="void"/>
<arg nr="1">
<not-bool/>
</arg>
</function>
<!-- https://www.sqlite.org/capi3ref.html#sqlite3_mutex_held -->
<!-- int sqlite3_mutex_held(sqlite3_mutex*); -->
<function name="sqlite3_mutex_held">
<noreturn>false</noreturn>
<returnValue type="int"/>
<use-retval/>
<leak-ignore/>
<arg nr="1" direction="in">
<not-uninit/>
<not-bool/>
</arg>
</function>
<!-- https://www.sqlite.org/capi3ref.html#sqlite3_mutex_alloc -->
<!-- void sqlite3_mutex_leave(sqlite3_mutex*); -->
<function name="sqlite3_mutex_leave">
<noreturn>false</noreturn>
<returnValue type="void"/>
<leak-ignore/>
<arg nr="1">
<not-bool/>
</arg>
</function>
<!-- https://www.sqlite.org/capi3ref.html#sqlite3_mutex_held -->
<!-- int sqlite3_mutex_notheld(sqlite3_mutex*); -->
<function name="sqlite3_mutex_notheld">
<noreturn>false</noreturn>
<returnValue type="int"/>
<use-retval/>
<leak-ignore/>
<arg nr="1" direction="in">
<not-uninit/>
<not-bool/>
</arg>
</function>
<!-- https://www.sqlite.org/capi3ref.html#sqlite3_mutex_alloc -->
<!-- int sqlite3_mutex_try(sqlite3_mutex*); -->
<function name="sqlite3_mutex_try">
<noreturn>false</noreturn>
<returnValue type="int"/>
<use-retval/>
<leak-ignore/>
<arg nr="1">
<not-uninit/>
<not-bool/>
</arg>
</function>
<!-- https://www.sqlite.org/capi3ref.html#sqlite3_open --> <!-- https://www.sqlite.org/capi3ref.html#sqlite3_open -->
<!-- int sqlite3_open(const char *filename, /* Database filename (UTF-8) */ <!-- int sqlite3_open(const char *filename, /* Database filename (UTF-8) */
sqlite3 **ppDb /* OUT: SQLite db handle */); --> sqlite3 **ppDb /* OUT: SQLite db handle */); -->
@ -826,6 +1021,57 @@
<not-bool/> <not-bool/>
</arg> </arg>
</function> </function>
<!-- https://www.sqlite.org/capi3ref.html#sqlite3_reset -->
<!-- int sqlite3_reset(sqlite3_stmt *pStmt); -->
<function name="sqlite3_reset">
<noreturn>false</noreturn>
<returnValue type="int"/>
<leak-ignore/>
<arg nr="1" direction="inout">
<not-uninit/>
<not-bool/>
</arg>
</function>
<!-- https://www.sqlite.org/capi3ref.html#sqlite3_result_blob -->
<!-- void sqlite3_result_text(sqlite3_context*, const char*, int, void(*)(void*)); -->
<function name="sqlite3_result_text">
<noreturn>false</noreturn>
<returnValue type="void"/>
<leak-ignore/>
<arg nr="1">
<not-uninit/>
</arg>
<arg nr="2" direction="in">
<not-uninit/>
</arg>
<arg nr="3" direction="in">
<not-uninit/>
</arg>
<arg nr="4">
<not-bool/>
</arg>
</function>
<!-- https://www.sqlite.org/capi3ref.html#sqlite3_mprintf -->
<!-- char *sqlite3_snprintf(int,char*,const char*, ...); -->
<function name="sqlite3_snprintf">
<noreturn>false</noreturn>
<returnValue type="char *"/>
<arg nr="1" direction="in">
<not-uninit/>
<valid>0:</valid>
</arg>
<arg nr="2" direction="out">
<minsize type="argvalue" arg="1"/>
</arg>
<arg nr="3" direction="in">
<not-uninit/>
<not-bool/>
<strz/>
</arg>
<arg nr="variadic" direction="in">
<not-uninit/>
</arg>
</function>
<!-- https://www.sqlite.org/capi3ref.html#sqlite3_step --> <!-- https://www.sqlite.org/capi3ref.html#sqlite3_step -->
<!-- int sqlite3_step(sqlite3_stmt*); --> <!-- int sqlite3_step(sqlite3_stmt*); -->
<function name="sqlite3_step"> <function name="sqlite3_step">
@ -880,4 +1126,155 @@
<valid>0:</valid> <valid>0:</valid>
</arg> </arg>
</function> </function>
<!-- https://www.sqlite.org/capi3ref.html#sqlite3_value_blob -->
<!-- const void *sqlite3_value_blob(sqlite3_value*); -->
<function name="sqlite3_value_blob">
<noreturn>false</noreturn>
<returnValue type="const void *"/>
<use-retval/>
<leak-ignore/>
<arg nr="1" direction="in">
<not-uninit/>
<not-bool/>
</arg>
</function>
<!-- https://www.sqlite.org/capi3ref.html#sqlite3_value_blob -->
<!-- int sqlite3_value_bytes(sqlite3_value*); -->
<!-- int sqlite3_value_bytes16(sqlite3_value*); -->
<function name="sqlite3_value_bytes,sqlite3_value_bytes16">
<noreturn>false</noreturn>
<returnValue type="int"/>
<use-retval/>
<leak-ignore/>
<arg nr="1" direction="in">
<not-uninit/>
<not-bool/>
</arg>
</function>
<!-- https://www.sqlite.org/capi3ref.html#sqlite3_value_blob -->
<!-- double sqlite3_value_double(sqlite3_value*); -->
<function name="sqlite3_value_double">
<noreturn>false</noreturn>
<returnValue type="double"/>
<use-retval/>
<leak-ignore/>
<arg nr="1" direction="in">
<not-uninit/>
<not-bool/>
</arg>
</function>
<!-- https://www.sqlite.org/capi3ref.html#sqlite3_value_blob -->
<!-- int sqlite3_value_frombind(sqlite3_value*); -->
<function name="sqlite3_value_frombind">
<noreturn>false</noreturn>
<returnValue type="int"/>
<use-retval/>
<leak-ignore/>
<arg nr="1" direction="in">
<not-uninit/>
<not-bool/>
</arg>
</function>
<!-- https://www.sqlite.org/capi3ref.html#sqlite3_value_blob -->
<!-- int sqlite3_value_int(sqlite3_value*); -->
<function name="sqlite3_value_int">
<noreturn>false</noreturn>
<returnValue type="int"/>
<use-retval/>
<leak-ignore/>
<arg nr="1" direction="in">
<not-uninit/>
<not-bool/>
</arg>
</function>
<!-- https://www.sqlite.org/capi3ref.html#sqlite3_value_blob -->
<!-- sqlite3_int64 sqlite3_value_int64(sqlite3_value*); -->
<function name="sqlite3_value_int64">
<noreturn>false</noreturn>
<returnValue type="sqlite3_int64"/>
<use-retval/>
<leak-ignore/>
<arg nr="1" direction="in">
<not-uninit/>
<not-bool/>
</arg>
</function>
<!-- https://www.sqlite.org/capi3ref.html#sqlite3_value_blob -->
<!-- int sqlite3_value_nochange(sqlite3_value*); -->
<function name="sqlite3_value_nochange">
<noreturn>false</noreturn>
<returnValue type="int"/>
<use-retval/>
<leak-ignore/>
<arg nr="1" direction="in">
<not-uninit/>
<not-bool/>
</arg>
</function>
<!-- https://www.sqlite.org/capi3ref.html#sqlite3_value_blob -->
<!-- int sqlite3_value_numeric_type(sqlite3_value*); -->
<function name="sqlite3_value_numeric_type">
<noreturn>false</noreturn>
<returnValue type="int"/>
<use-retval/>
<leak-ignore/>
<arg nr="1" direction="in">
<not-uninit/>
<not-bool/>
</arg>
</function>
<!-- https://www.sqlite.org/capi3ref.html#sqlite3_value_blob -->
<!-- void *sqlite3_value_pointer(sqlite3_value*, const char*); -->
<function name="sqlite3_value_pointer">
<noreturn>false</noreturn>
<returnValue type="void *"/>
<use-retval/>
<leak-ignore/>
<arg nr="1" direction="in">
<not-uninit/>
</arg>
<arg nr="2" direction="in">
<not-uninit/>
<not-bool/>
<strz/>
</arg>
</function>
<!-- https://www.sqlite.org/capi3ref.html#sqlite3_value_blob -->
<!-- const unsigned char *sqlite3_value_text(sqlite3_value*); -->
<function name="sqlite3_value_text">
<noreturn>false</noreturn>
<returnValue type="const unsigned char *"/>
<use-retval/>
<leak-ignore/>
<arg nr="1" direction="in">
<not-uninit/>
<not-bool/>
</arg>
</function>
<!-- https://www.sqlite.org/capi3ref.html#sqlite3_value_blob -->
<!-- const void *sqlite3_value_text16(sqlite3_value*); -->
<!-- const void *sqlite3_value_text16le(sqlite3_value*); -->
<!-- const void *sqlite3_value_text16be(sqlite3_value*); -->
<function name="sqlite3_value_text16,sqlite3_value_text16le,sqlite3_value_text16be">
<noreturn>false</noreturn>
<returnValue type="const void *"/>
<use-retval/>
<leak-ignore/>
<arg nr="1" direction="in">
<not-uninit/>
<not-bool/>
</arg>
</function>
<!-- https://www.sqlite.org/capi3ref.html#sqlite3_value_blob -->
<!-- int sqlite3_value_type(sqlite3_value*); -->
<function name="sqlite3_value_type">
<noreturn>false</noreturn>
<returnValue type="int"/>
<use-retval/>
<leak-ignore/>
<arg nr="1" direction="in">
<not-uninit/>
<not-bool/>
</arg>
</function>
</def> </def>