Created
August 12, 2009 16:38
-
-
Save dajobe/166603 to your computer and use it in GitHub Desktop.
patch to sqlite3.h 3.6.17 header to make it usable again. See also gentoo bug http://bugs.gentoo.org/281226 for redland and sqlite bug http://www.sqlite.org/cvstrac/chngview?cn=6971
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- /opt/local/include/sqlite3.h.broken 2009-08-12 09:19:35.000000000 -0700 | |
+++ /opt/local/include/sqlite3.h 2009-08-12 09:33:27.000000000 -0700 | |
@@ -56,10 +56,6 @@ | |
#endif | |
-#ifndef SQLITE_API | |
-# define SQLITE_API | |
-#endif | |
- | |
/* | |
** These no-op macros are used in front of interfaces to mark those | |
@@ -130,9 +126,9 @@ | |
** | |
** Requirements: [H10021] [H10022] [H10023] | |
*/ | |
-SQLITE_API SQLITE_API SQLITE_EXTERN const char sqlite3_version[]; | |
-SQLITE_API SQLITE_API const char *sqlite3_libversion(void); | |
-SQLITE_API SQLITE_API int sqlite3_libversion_number(void); | |
+ SQLITE_EXTERN const char sqlite3_version[]; | |
+ const char *sqlite3_libversion(void); | |
+ int sqlite3_libversion_number(void); | |
/* | |
** CAPI3REF: Test To See If The Library Is Threadsafe {H10100} <S60100> | |
@@ -166,7 +162,7 @@ | |
** | |
** Requirements: [H10101] [H10102] | |
*/ | |
-SQLITE_API SQLITE_API int sqlite3_threadsafe(void); | |
+ int sqlite3_threadsafe(void); | |
/* | |
** CAPI3REF: Database Connection Handle {H12000} <S40200> | |
@@ -247,7 +243,7 @@ | |
** Requirements: | |
** [H12011] [H12012] [H12013] [H12014] [H12015] [H12019] | |
*/ | |
-SQLITE_API SQLITE_API int sqlite3_close(sqlite3 *); | |
+ int sqlite3_close(sqlite3 *); | |
/* | |
** The type for a callback function. | |
@@ -300,7 +296,7 @@ | |
** [H12101] [H12102] [H12104] [H12105] [H12107] [H12110] [H12113] [H12116] | |
** [H12119] [H12122] [H12125] [H12131] [H12134] [H12137] [H12138] | |
*/ | |
-SQLITE_API SQLITE_API int sqlite3_exec( | |
+ int sqlite3_exec( | |
sqlite3*, /* An open database */ | |
const char *sql, /* SQL to be evaluated */ | |
int (*callback)(void*,int,char**,char**), /* Callback function */ | |
@@ -868,10 +864,10 @@ | |
** must return [SQLITE_OK] on success and some other [error code] upon | |
** failure. | |
*/ | |
-SQLITE_API SQLITE_API int sqlite3_initialize(void); | |
-SQLITE_API SQLITE_API int sqlite3_shutdown(void); | |
-SQLITE_API SQLITE_API int sqlite3_os_init(void); | |
-SQLITE_API SQLITE_API int sqlite3_os_end(void); | |
+ int sqlite3_initialize(void); | |
+ int sqlite3_shutdown(void); | |
+ int sqlite3_os_init(void); | |
+ int sqlite3_os_end(void); | |
/* | |
** CAPI3REF: Configuring The SQLite Library {H14100} <S20000><S30200> | |
@@ -906,7 +902,7 @@ | |
** [H14138] [H14141] [H14144] [H14147] [H14150] [H14153] [H14156] [H14159] | |
** [H14162] [H14165] [H14168] | |
*/ | |
-SQLITE_API SQLITE_API SQLITE_EXPERIMENTAL int sqlite3_config(int, ...); | |
+ SQLITE_EXPERIMENTAL int sqlite3_config(int, ...); | |
/* | |
** CAPI3REF: Configure database connections {H14200} <S20000> | |
@@ -930,7 +926,7 @@ | |
** Requirements: | |
** [H14203] [H14206] [H14209] [H14212] [H14215] | |
*/ | |
-SQLITE_API SQLITE_API SQLITE_EXPERIMENTAL int sqlite3_db_config(sqlite3*, int op, ...); | |
+ SQLITE_EXPERIMENTAL int sqlite3_db_config(sqlite3*, int op, ...); | |
/* | |
** CAPI3REF: Memory Allocation Routines {H10155} <S20120> | |
@@ -1201,7 +1197,7 @@ | |
** Requirements: | |
** [H12201] [H12202] | |
*/ | |
-SQLITE_API SQLITE_API int sqlite3_extended_result_codes(sqlite3*, int onoff); | |
+ int sqlite3_extended_result_codes(sqlite3*, int onoff); | |
/* | |
** CAPI3REF: Last Insert Rowid {H12220} <S10700> | |
@@ -1246,7 +1242,7 @@ | |
** unpredictable and might not equal either the old or the new | |
** last insert [rowid]. | |
*/ | |
-SQLITE_API SQLITE_API sqlite3_int64 sqlite3_last_insert_rowid(sqlite3*); | |
+ sqlite3_int64 sqlite3_last_insert_rowid(sqlite3*); | |
/* | |
** CAPI3REF: Count The Number Of Rows Modified {H12240} <S10600> | |
@@ -1302,7 +1298,7 @@ | |
** while [sqlite3_changes()] is running then the value returned | |
** is unpredictable and not meaningful. | |
*/ | |
-SQLITE_API SQLITE_API int sqlite3_changes(sqlite3*); | |
+ int sqlite3_changes(sqlite3*); | |
/* | |
** CAPI3REF: Total Number Of Rows Modified {H12260} <S10600> | |
@@ -1330,7 +1326,7 @@ | |
** while [sqlite3_total_changes()] is running then the value | |
** returned is unpredictable and not meaningful. | |
*/ | |
-SQLITE_API SQLITE_API int sqlite3_total_changes(sqlite3*); | |
+ int sqlite3_total_changes(sqlite3*); | |
/* | |
** CAPI3REF: Interrupt A Long-Running Query {H12270} <S30500> | |
@@ -1372,7 +1368,7 @@ | |
** If the database connection closes while [sqlite3_interrupt()] | |
** is running then bad things will likely happen. | |
*/ | |
-SQLITE_API SQLITE_API void sqlite3_interrupt(sqlite3*); | |
+ void sqlite3_interrupt(sqlite3*); | |
/* | |
** CAPI3REF: Determine If An SQL Statement Is Complete {H10510} <S70200> | |
@@ -1409,8 +1405,8 @@ | |
** The input to [sqlite3_complete16()] must be a zero-terminated | |
** UTF-16 string in native byte order. | |
*/ | |
-SQLITE_API SQLITE_API int sqlite3_complete(const char *sql); | |
-SQLITE_API SQLITE_API int sqlite3_complete16(const void *sql); | |
+ int sqlite3_complete(const char *sql); | |
+ int sqlite3_complete16(const void *sql); | |
/* | |
** CAPI3REF: Register A Callback To Handle SQLITE_BUSY Errors {H12310} <S40400> | |
@@ -1479,7 +1475,7 @@ | |
** A busy handler must not close the database connection | |
** or [prepared statement] that invoked the busy handler. | |
*/ | |
-SQLITE_API SQLITE_API int sqlite3_busy_handler(sqlite3*, int(*)(void*,int), void*); | |
+ int sqlite3_busy_handler(sqlite3*, int(*)(void*,int), void*); | |
/* | |
** CAPI3REF: Set A Busy Timeout {H12340} <S40410> | |
@@ -1502,7 +1498,7 @@ | |
** Requirements: | |
** [H12341] [H12343] [H12344] | |
*/ | |
-SQLITE_API SQLITE_API int sqlite3_busy_timeout(sqlite3*, int ms); | |
+ int sqlite3_busy_timeout(sqlite3*, int ms); | |
/* | |
** CAPI3REF: Convenience Routines For Running Queries {H12370} <S10000> | |
@@ -1575,7 +1571,7 @@ | |
** Requirements: | |
** [H12371] [H12373] [H12374] [H12376] [H12379] [H12382] | |
*/ | |
-SQLITE_API SQLITE_API int sqlite3_get_table( | |
+ int sqlite3_get_table( | |
sqlite3 *db, /* An open database */ | |
const char *zSql, /* SQL to be evaluated */ | |
char ***pazResult, /* Results of the query */ | |
@@ -1583,7 +1579,7 @@ | |
int *pnColumn, /* Number of result columns written here */ | |
char **pzErrmsg /* Error msg written here */ | |
); | |
-SQLITE_API SQLITE_API void sqlite3_free_table(char **result); | |
+ void sqlite3_free_table(char **result); | |
/* | |
** CAPI3REF: Formatted String Printing Functions {H17400} <S70000><S20000> | |
@@ -1680,9 +1676,9 @@ | |
** Requirements: | |
** [H17403] [H17406] [H17407] | |
*/ | |
-SQLITE_API SQLITE_API char *sqlite3_mprintf(const char*,...); | |
-SQLITE_API SQLITE_API char *sqlite3_vmprintf(const char*, va_list); | |
-SQLITE_API SQLITE_API char *sqlite3_snprintf(int,char*,const char*, ...); | |
+ char *sqlite3_mprintf(const char*,...); | |
+ char *sqlite3_vmprintf(const char*, va_list); | |
+ char *sqlite3_snprintf(int,char*,const char*, ...); | |
/* | |
** CAPI3REF: Memory Allocation Subsystem {H17300} <S20000> | |
@@ -1765,9 +1761,9 @@ | |
** a block of memory after it has been released using | |
** [sqlite3_free()] or [sqlite3_realloc()]. | |
*/ | |
-SQLITE_API SQLITE_API void *sqlite3_malloc(int); | |
-SQLITE_API SQLITE_API void *sqlite3_realloc(void*, int); | |
-SQLITE_API SQLITE_API void sqlite3_free(void*); | |
+ void *sqlite3_malloc(int); | |
+ void *sqlite3_realloc(void*, int); | |
+ void sqlite3_free(void*); | |
/* | |
** CAPI3REF: Memory Allocator Statistics {H17370} <S30210> | |
@@ -1779,8 +1775,8 @@ | |
** Requirements: | |
** [H17371] [H17373] [H17374] [H17375] | |
*/ | |
-SQLITE_API SQLITE_API sqlite3_int64 sqlite3_memory_used(void); | |
-SQLITE_API SQLITE_API sqlite3_int64 sqlite3_memory_highwater(int resetFlag); | |
+ sqlite3_int64 sqlite3_memory_used(void); | |
+ sqlite3_int64 sqlite3_memory_highwater(int resetFlag); | |
/* | |
** CAPI3REF: Pseudo-Random Number Generator {H17390} <S20000> | |
@@ -1803,7 +1799,7 @@ | |
** Requirements: | |
** [H17392] | |
*/ | |
-SQLITE_API SQLITE_API void sqlite3_randomness(int N, void *P); | |
+ void sqlite3_randomness(int N, void *P); | |
/* | |
** CAPI3REF: Compile-Time Authorization Callbacks {H12500} <S70100> | |
@@ -1889,7 +1885,7 @@ | |
** [H12501] [H12502] [H12503] [H12504] [H12505] [H12506] [H12507] [H12510] | |
** [H12511] [H12512] [H12520] [H12521] [H12522] | |
*/ | |
-SQLITE_API SQLITE_API int sqlite3_set_authorizer( | |
+ int sqlite3_set_authorizer( | |
sqlite3*, | |
int (*xAuth)(void*,int,const char*,const char*,const char*,const char*), | |
void *pUserData | |
@@ -1987,8 +1983,8 @@ | |
** [H12281] [H12282] [H12283] [H12284] [H12285] [H12287] [H12288] [H12289] | |
** [H12290] | |
*/ | |
-SQLITE_API SQLITE_API SQLITE_EXPERIMENTAL void *sqlite3_trace(sqlite3*, void(*xTrace)(void*,const char*), void*); | |
-SQLITE_API SQLITE_API SQLITE_EXPERIMENTAL void *sqlite3_profile(sqlite3*, | |
+ SQLITE_EXPERIMENTAL void *sqlite3_trace(sqlite3*, void(*xTrace)(void*,const char*), void*); | |
+ SQLITE_EXPERIMENTAL void *sqlite3_profile(sqlite3*, | |
void(*xProfile)(void*,const char*,sqlite3_uint64), void*); | |
/* | |
@@ -2013,7 +2009,7 @@ | |
** [H12911] [H12912] [H12913] [H12914] [H12915] [H12916] [H12917] [H12918] | |
** | |
*/ | |
-SQLITE_API SQLITE_API void sqlite3_progress_handler(sqlite3*, int, int(*)(void*), void*); | |
+ void sqlite3_progress_handler(sqlite3*, int, int(*)(void*), void*); | |
/* | |
** CAPI3REF: Opening A New Database Connection {H12700} <S40200> | |
@@ -2099,15 +2095,15 @@ | |
** [H12701] [H12702] [H12703] [H12704] [H12706] [H12707] [H12709] [H12711] | |
** [H12712] [H12713] [H12714] [H12717] [H12719] [H12721] [H12723] | |
*/ | |
-SQLITE_API SQLITE_API int sqlite3_open( | |
+ int sqlite3_open( | |
const char *filename, /* Database filename (UTF-8) */ | |
sqlite3 **ppDb /* OUT: SQLite db handle */ | |
); | |
-SQLITE_API SQLITE_API int sqlite3_open16( | |
+ int sqlite3_open16( | |
const void *filename, /* Database filename (UTF-16) */ | |
sqlite3 **ppDb /* OUT: SQLite db handle */ | |
); | |
-SQLITE_API SQLITE_API int sqlite3_open_v2( | |
+ int sqlite3_open_v2( | |
const char *filename, /* Database filename (UTF-8) */ | |
sqlite3 **ppDb, /* OUT: SQLite db handle */ | |
int flags, /* Flags */ | |
@@ -2150,10 +2146,10 @@ | |
** Requirements: | |
** [H12801] [H12802] [H12803] [H12807] [H12808] [H12809] | |
*/ | |
-SQLITE_API SQLITE_API int sqlite3_errcode(sqlite3 *db); | |
-SQLITE_API SQLITE_API int sqlite3_extended_errcode(sqlite3 *db); | |
-SQLITE_API SQLITE_API const char *sqlite3_errmsg(sqlite3*); | |
-SQLITE_API SQLITE_API const void *sqlite3_errmsg16(sqlite3*); | |
+ int sqlite3_errcode(sqlite3 *db); | |
+ int sqlite3_extended_errcode(sqlite3 *db); | |
+ const char *sqlite3_errmsg(sqlite3*); | |
+ const void *sqlite3_errmsg16(sqlite3*); | |
/* | |
** CAPI3REF: SQL Statement Object {H13000} <H13010> | |
@@ -2218,7 +2214,7 @@ | |
** Requirements: | |
** [H12762] [H12766] [H12769] | |
*/ | |
-SQLITE_API SQLITE_API int sqlite3_limit(sqlite3*, int id, int newVal); | |
+ int sqlite3_limit(sqlite3*, int id, int newVal); | |
/* | |
** CAPI3REF: Run-Time Limit Categories {H12790} <H12760> | |
@@ -2352,28 +2348,28 @@ | |
** [H13011] [H13012] [H13013] [H13014] [H13015] [H13016] [H13019] [H13021] | |
** | |
*/ | |
-SQLITE_API SQLITE_API int 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 */ | |
); | |
-SQLITE_API SQLITE_API int sqlite3_prepare_v2( | |
+ 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 */ | |
); | |
-SQLITE_API SQLITE_API int sqlite3_prepare16( | |
+ 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 */ | |
); | |
-SQLITE_API SQLITE_API int sqlite3_prepare16_v2( | |
+ int sqlite3_prepare16_v2( | |
sqlite3 *db, /* Database handle */ | |
const void *zSql, /* SQL statement, UTF-16 encoded */ | |
int nByte, /* Maximum length of zSql in bytes. */ | |
@@ -2391,7 +2387,7 @@ | |
** Requirements: | |
** [H13101] [H13102] [H13103] | |
*/ | |
-SQLITE_API SQLITE_API const char *sqlite3_sql(sqlite3_stmt *pStmt); | |
+ const char *sqlite3_sql(sqlite3_stmt *pStmt); | |
/* | |
** CAPI3REF: Dynamically Typed Value Object {H15000} <S20200> | |
@@ -2530,15 +2526,15 @@ | |
** [H13530] [H13533] [H13536] [H13539] [H13542] [H13545] [H13548] [H13551] | |
** | |
*/ | |
-SQLITE_API SQLITE_API int sqlite3_bind_blob(sqlite3_stmt*, int, const void*, int n, void(*)(void*)); | |
-SQLITE_API SQLITE_API int sqlite3_bind_double(sqlite3_stmt*, int, double); | |
-SQLITE_API SQLITE_API int sqlite3_bind_int(sqlite3_stmt*, int, int); | |
-SQLITE_API SQLITE_API int sqlite3_bind_int64(sqlite3_stmt*, int, sqlite3_int64); | |
-SQLITE_API SQLITE_API int sqlite3_bind_null(sqlite3_stmt*, int); | |
-SQLITE_API SQLITE_API int sqlite3_bind_text(sqlite3_stmt*, int, const char*, int n, void(*)(void*)); | |
-SQLITE_API SQLITE_API int sqlite3_bind_text16(sqlite3_stmt*, int, const void*, int, void(*)(void*)); | |
-SQLITE_API SQLITE_API int sqlite3_bind_value(sqlite3_stmt*, int, const sqlite3_value*); | |
-SQLITE_API SQLITE_API int sqlite3_bind_zeroblob(sqlite3_stmt*, int, int n); | |
+ int sqlite3_bind_blob(sqlite3_stmt*, int, const void*, int n, void(*)(void*)); | |
+ int sqlite3_bind_double(sqlite3_stmt*, int, double); | |
+ int sqlite3_bind_int(sqlite3_stmt*, int, int); | |
+ int sqlite3_bind_int64(sqlite3_stmt*, int, sqlite3_int64); | |
+ int sqlite3_bind_null(sqlite3_stmt*, int); | |
+ int sqlite3_bind_text(sqlite3_stmt*, int, const char*, int n, void(*)(void*)); | |
+ int sqlite3_bind_text16(sqlite3_stmt*, int, const void*, int, void(*)(void*)); | |
+ int sqlite3_bind_value(sqlite3_stmt*, int, const sqlite3_value*); | |
+ int sqlite3_bind_zeroblob(sqlite3_stmt*, int, int n); | |
/* | |
** CAPI3REF: Number Of SQL Parameters {H13600} <S70300> | |
@@ -2561,7 +2557,7 @@ | |
** Requirements: | |
** [H13601] | |
*/ | |
-SQLITE_API SQLITE_API int sqlite3_bind_parameter_count(sqlite3_stmt*); | |
+ int sqlite3_bind_parameter_count(sqlite3_stmt*); | |
/* | |
** CAPI3REF: Name Of A Host Parameter {H13620} <S70300> | |
@@ -2591,7 +2587,7 @@ | |
** Requirements: | |
** [H13621] | |
*/ | |
-SQLITE_API SQLITE_API const char *sqlite3_bind_parameter_name(sqlite3_stmt*, int); | |
+ const char *sqlite3_bind_parameter_name(sqlite3_stmt*, int); | |
/* | |
** CAPI3REF: Index Of A Parameter With A Given Name {H13640} <S70300> | |
@@ -2610,7 +2606,7 @@ | |
** Requirements: | |
** [H13641] | |
*/ | |
-SQLITE_API SQLITE_API int sqlite3_bind_parameter_index(sqlite3_stmt*, const char *zName); | |
+ int sqlite3_bind_parameter_index(sqlite3_stmt*, const char *zName); | |
/* | |
** CAPI3REF: Reset All Bindings On A Prepared Statement {H13660} <S70300> | |
@@ -2622,7 +2618,7 @@ | |
** Requirements: | |
** [H13661] | |
*/ | |
-SQLITE_API SQLITE_API int sqlite3_clear_bindings(sqlite3_stmt*); | |
+ int sqlite3_clear_bindings(sqlite3_stmt*); | |
/* | |
** CAPI3REF: Number Of Columns In A Result Set {H13710} <S10700> | |
@@ -2634,7 +2630,7 @@ | |
** Requirements: | |
** [H13711] | |
*/ | |
-SQLITE_API SQLITE_API int sqlite3_column_count(sqlite3_stmt *pStmt); | |
+ int sqlite3_column_count(sqlite3_stmt *pStmt); | |
/* | |
** CAPI3REF: Column Names In A Result Set {H13720} <S10700> | |
@@ -2663,8 +2659,8 @@ | |
** Requirements: | |
** [H13721] [H13723] [H13724] [H13725] [H13726] [H13727] | |
*/ | |
-SQLITE_API SQLITE_API const char *sqlite3_column_name(sqlite3_stmt*, int N); | |
-SQLITE_API SQLITE_API const void *sqlite3_column_name16(sqlite3_stmt*, int N); | |
+ const char *sqlite3_column_name(sqlite3_stmt*, int N); | |
+ const void *sqlite3_column_name16(sqlite3_stmt*, int N); | |
/* | |
** CAPI3REF: Source Of Data In A Query Result {H13740} <S10700> | |
@@ -2711,12 +2707,12 @@ | |
** for the same [prepared statement] and result column | |
** at the same time then the results are undefined. | |
*/ | |
-SQLITE_API SQLITE_API const char *sqlite3_column_database_name(sqlite3_stmt*,int); | |
-SQLITE_API SQLITE_API const void *sqlite3_column_database_name16(sqlite3_stmt*,int); | |
-SQLITE_API SQLITE_API const char *sqlite3_column_table_name(sqlite3_stmt*,int); | |
-SQLITE_API SQLITE_API const void *sqlite3_column_table_name16(sqlite3_stmt*,int); | |
-SQLITE_API SQLITE_API const char *sqlite3_column_origin_name(sqlite3_stmt*,int); | |
-SQLITE_API SQLITE_API const void *sqlite3_column_origin_name16(sqlite3_stmt*,int); | |
+ const char *sqlite3_column_database_name(sqlite3_stmt*,int); | |
+ const void *sqlite3_column_database_name16(sqlite3_stmt*,int); | |
+ const char *sqlite3_column_table_name(sqlite3_stmt*,int); | |
+ const void *sqlite3_column_table_name16(sqlite3_stmt*,int); | |
+ const char *sqlite3_column_origin_name(sqlite3_stmt*,int); | |
+ const void *sqlite3_column_origin_name16(sqlite3_stmt*,int); | |
/* | |
** CAPI3REF: Declared Datatype Of A Query Result {H13760} <S10700> | |
@@ -2750,8 +2746,8 @@ | |
** Requirements: | |
** [H13761] [H13762] [H13763] | |
*/ | |
-SQLITE_API SQLITE_API const char *sqlite3_column_decltype(sqlite3_stmt*,int); | |
-SQLITE_API SQLITE_API const void *sqlite3_column_decltype16(sqlite3_stmt*,int); | |
+ const char *sqlite3_column_decltype(sqlite3_stmt*,int); | |
+ const void *sqlite3_column_decltype16(sqlite3_stmt*,int); | |
/* | |
** CAPI3REF: Evaluate An SQL Statement {H13200} <S10000> | |
@@ -2821,7 +2817,7 @@ | |
** Requirements: | |
** [H13202] [H15304] [H15306] [H15308] [H15310] | |
*/ | |
-SQLITE_API SQLITE_API int sqlite3_step(sqlite3_stmt*); | |
+ int sqlite3_step(sqlite3_stmt*); | |
/* | |
** CAPI3REF: Number of columns in a result set {H13770} <S10700> | |
@@ -2831,7 +2827,7 @@ | |
** Requirements: | |
** [H13771] [H13772] | |
*/ | |
-SQLITE_API SQLITE_API int sqlite3_data_count(sqlite3_stmt *pStmt); | |
+ int sqlite3_data_count(sqlite3_stmt *pStmt); | |
/* | |
** CAPI3REF: Fundamental Datatypes {H10265} <S10110><S10120> | |
@@ -3021,16 +3017,16 @@ | |
** [H13803] [H13806] [H13809] [H13812] [H13815] [H13818] [H13821] [H13824] | |
** [H13827] [H13830] | |
*/ | |
-SQLITE_API SQLITE_API const void *sqlite3_column_blob(sqlite3_stmt*, int iCol); | |
-SQLITE_API SQLITE_API int sqlite3_column_bytes(sqlite3_stmt*, int iCol); | |
-SQLITE_API SQLITE_API int sqlite3_column_bytes16(sqlite3_stmt*, int iCol); | |
-SQLITE_API SQLITE_API double sqlite3_column_double(sqlite3_stmt*, int iCol); | |
-SQLITE_API SQLITE_API int sqlite3_column_int(sqlite3_stmt*, int iCol); | |
-SQLITE_API SQLITE_API sqlite3_int64 sqlite3_column_int64(sqlite3_stmt*, int iCol); | |
-SQLITE_API SQLITE_API const unsigned char *sqlite3_column_text(sqlite3_stmt*, int iCol); | |
-SQLITE_API SQLITE_API const void *sqlite3_column_text16(sqlite3_stmt*, int iCol); | |
-SQLITE_API SQLITE_API int sqlite3_column_type(sqlite3_stmt*, int iCol); | |
-SQLITE_API SQLITE_API sqlite3_value *sqlite3_column_value(sqlite3_stmt*, int iCol); | |
+ const void *sqlite3_column_blob(sqlite3_stmt*, int iCol); | |
+ int sqlite3_column_bytes(sqlite3_stmt*, int iCol); | |
+ int sqlite3_column_bytes16(sqlite3_stmt*, int iCol); | |
+ double sqlite3_column_double(sqlite3_stmt*, int iCol); | |
+ int sqlite3_column_int(sqlite3_stmt*, int iCol); | |
+ sqlite3_int64 sqlite3_column_int64(sqlite3_stmt*, int iCol); | |
+ const unsigned char *sqlite3_column_text(sqlite3_stmt*, int iCol); | |
+ const void *sqlite3_column_text16(sqlite3_stmt*, int iCol); | |
+ int sqlite3_column_type(sqlite3_stmt*, int iCol); | |
+ sqlite3_value *sqlite3_column_value(sqlite3_stmt*, int iCol); | |
/* | |
** CAPI3REF: Destroy A Prepared Statement Object {H13300} <S70300><S30100> | |
@@ -3051,7 +3047,7 @@ | |
** Requirements: | |
** [H11302] [H11304] | |
*/ | |
-SQLITE_API SQLITE_API int sqlite3_finalize(sqlite3_stmt *pStmt); | |
+ int sqlite3_finalize(sqlite3_stmt *pStmt); | |
/* | |
** CAPI3REF: Reset A Prepared Statement Object {H13330} <S70300> | |
@@ -3077,7 +3073,7 @@ | |
** {H11338} The [sqlite3_reset(S)] interface does not change the values | |
** of any [sqlite3_bind_blob|bindings] on the [prepared statement] S. | |
*/ | |
-SQLITE_API SQLITE_API int sqlite3_reset(sqlite3_stmt *pStmt); | |
+ int sqlite3_reset(sqlite3_stmt *pStmt); | |
/* | |
** CAPI3REF: Create Or Redefine SQL Functions {H16100} <S20200> | |
@@ -3163,7 +3159,7 @@ | |
** [H16103] [H16106] [H16109] [H16112] [H16118] [H16121] [H16127] | |
** [H16130] [H16133] [H16136] [H16139] [H16142] | |
*/ | |
-SQLITE_API SQLITE_API int sqlite3_create_function( | |
+ int sqlite3_create_function( | |
sqlite3 *db, | |
const char *zFunctionName, | |
int nArg, | |
@@ -3173,7 +3169,7 @@ | |
void (*xStep)(sqlite3_context*,int,sqlite3_value**), | |
void (*xFinal)(sqlite3_context*) | |
); | |
-SQLITE_API SQLITE_API int sqlite3_create_function16( | |
+ int sqlite3_create_function16( | |
sqlite3 *db, | |
const void *zFunctionName, | |
int nArg, | |
@@ -3208,12 +3204,12 @@ | |
** using these functions, we are not going to tell you what they do. | |
*/ | |
#ifndef SQLITE_OMIT_DEPRECATED | |
-SQLITE_API SQLITE_API SQLITE_DEPRECATED int sqlite3_aggregate_count(sqlite3_context*); | |
-SQLITE_API SQLITE_API SQLITE_DEPRECATED int sqlite3_expired(sqlite3_stmt*); | |
-SQLITE_API SQLITE_API SQLITE_DEPRECATED int sqlite3_transfer_bindings(sqlite3_stmt*, sqlite3_stmt*); | |
-SQLITE_API SQLITE_API SQLITE_DEPRECATED int sqlite3_global_recover(void); | |
-SQLITE_API SQLITE_API SQLITE_DEPRECATED void sqlite3_thread_cleanup(void); | |
-SQLITE_API SQLITE_API SQLITE_DEPRECATED int sqlite3_memory_alarm(void(*)(void*,sqlite3_int64,int),void*,sqlite3_int64); | |
+ SQLITE_DEPRECATED int sqlite3_aggregate_count(sqlite3_context*); | |
+ SQLITE_DEPRECATED int sqlite3_expired(sqlite3_stmt*); | |
+ SQLITE_DEPRECATED int sqlite3_transfer_bindings(sqlite3_stmt*, sqlite3_stmt*); | |
+ SQLITE_DEPRECATED int sqlite3_global_recover(void); | |
+ SQLITE_DEPRECATED void sqlite3_thread_cleanup(void); | |
+ SQLITE_DEPRECATED int sqlite3_memory_alarm(void(*)(void*,sqlite3_int64,int),void*,sqlite3_int64); | |
#endif | |
/* | |
@@ -3265,18 +3261,18 @@ | |
** [H15103] [H15106] [H15109] [H15112] [H15115] [H15118] [H15121] [H15124] | |
** [H15127] [H15130] [H15133] [H15136] | |
*/ | |
-SQLITE_API SQLITE_API const void *sqlite3_value_blob(sqlite3_value*); | |
-SQLITE_API SQLITE_API int sqlite3_value_bytes(sqlite3_value*); | |
-SQLITE_API SQLITE_API int sqlite3_value_bytes16(sqlite3_value*); | |
-SQLITE_API SQLITE_API double sqlite3_value_double(sqlite3_value*); | |
-SQLITE_API SQLITE_API int sqlite3_value_int(sqlite3_value*); | |
-SQLITE_API SQLITE_API sqlite3_int64 sqlite3_value_int64(sqlite3_value*); | |
-SQLITE_API SQLITE_API const unsigned char *sqlite3_value_text(sqlite3_value*); | |
-SQLITE_API SQLITE_API const void *sqlite3_value_text16(sqlite3_value*); | |
-SQLITE_API SQLITE_API const void *sqlite3_value_text16le(sqlite3_value*); | |
-SQLITE_API SQLITE_API const void *sqlite3_value_text16be(sqlite3_value*); | |
-SQLITE_API SQLITE_API int sqlite3_value_type(sqlite3_value*); | |
-SQLITE_API SQLITE_API int sqlite3_value_numeric_type(sqlite3_value*); | |
+ const void *sqlite3_value_blob(sqlite3_value*); | |
+ int sqlite3_value_bytes(sqlite3_value*); | |
+ int sqlite3_value_bytes16(sqlite3_value*); | |
+ double sqlite3_value_double(sqlite3_value*); | |
+ int sqlite3_value_int(sqlite3_value*); | |
+ sqlite3_int64 sqlite3_value_int64(sqlite3_value*); | |
+ const unsigned char *sqlite3_value_text(sqlite3_value*); | |
+ const void *sqlite3_value_text16(sqlite3_value*); | |
+ const void *sqlite3_value_text16le(sqlite3_value*); | |
+ const void *sqlite3_value_text16be(sqlite3_value*); | |
+ int sqlite3_value_type(sqlite3_value*); | |
+ int sqlite3_value_numeric_type(sqlite3_value*); | |
/* | |
** CAPI3REF: Obtain Aggregate Function Context {H16210} <S20200> | |
@@ -3304,7 +3300,7 @@ | |
** Requirements: | |
** [H16211] [H16213] [H16215] [H16217] | |
*/ | |
-SQLITE_API SQLITE_API void *sqlite3_aggregate_context(sqlite3_context*, int nBytes); | |
+ void *sqlite3_aggregate_context(sqlite3_context*, int nBytes); | |
/* | |
** CAPI3REF: User Data For Functions {H16240} <S20200> | |
@@ -3321,7 +3317,7 @@ | |
** Requirements: | |
** [H16243] | |
*/ | |
-SQLITE_API SQLITE_API void *sqlite3_user_data(sqlite3_context*); | |
+ void *sqlite3_user_data(sqlite3_context*); | |
/* | |
** CAPI3REF: Database Connection For Functions {H16250} <S60600><S20200> | |
@@ -3335,7 +3331,7 @@ | |
** Requirements: | |
** [H16253] | |
*/ | |
-SQLITE_API SQLITE_API sqlite3 *sqlite3_context_db_handle(sqlite3_context*); | |
+ sqlite3 *sqlite3_context_db_handle(sqlite3_context*); | |
/* | |
** CAPI3REF: Function Auxiliary Data {H16270} <S20200> | |
@@ -3382,8 +3378,8 @@ | |
** Requirements: | |
** [H16272] [H16274] [H16276] [H16277] [H16278] [H16279] | |
*/ | |
-SQLITE_API SQLITE_API void *sqlite3_get_auxdata(sqlite3_context*, int N); | |
-SQLITE_API SQLITE_API void sqlite3_set_auxdata(sqlite3_context*, int N, void*, void (*)(void*)); | |
+ void *sqlite3_get_auxdata(sqlite3_context*, int N); | |
+ void sqlite3_set_auxdata(sqlite3_context*, int N, void*, void (*)(void*)); | |
/* | |
@@ -3513,22 +3509,22 @@ | |
** [H16427] [H16430] [H16433] [H16436] [H16439] [H16442] [H16445] [H16448] | |
** [H16451] [H16454] [H16457] [H16460] [H16463] | |
*/ | |
-SQLITE_API SQLITE_API void sqlite3_result_blob(sqlite3_context*, const void*, int, void(*)(void*)); | |
-SQLITE_API SQLITE_API void sqlite3_result_double(sqlite3_context*, double); | |
-SQLITE_API SQLITE_API void sqlite3_result_error(sqlite3_context*, const char*, int); | |
-SQLITE_API SQLITE_API void sqlite3_result_error16(sqlite3_context*, const void*, int); | |
-SQLITE_API SQLITE_API void sqlite3_result_error_toobig(sqlite3_context*); | |
-SQLITE_API SQLITE_API void sqlite3_result_error_nomem(sqlite3_context*); | |
-SQLITE_API SQLITE_API void sqlite3_result_error_code(sqlite3_context*, int); | |
-SQLITE_API SQLITE_API void sqlite3_result_int(sqlite3_context*, int); | |
-SQLITE_API SQLITE_API void sqlite3_result_int64(sqlite3_context*, sqlite3_int64); | |
-SQLITE_API SQLITE_API void sqlite3_result_null(sqlite3_context*); | |
-SQLITE_API SQLITE_API void sqlite3_result_text(sqlite3_context*, const char*, int, void(*)(void*)); | |
-SQLITE_API SQLITE_API void sqlite3_result_text16(sqlite3_context*, const void*, int, void(*)(void*)); | |
-SQLITE_API SQLITE_API void sqlite3_result_text16le(sqlite3_context*, const void*, int,void(*)(void*)); | |
-SQLITE_API SQLITE_API void sqlite3_result_text16be(sqlite3_context*, const void*, int,void(*)(void*)); | |
-SQLITE_API SQLITE_API void sqlite3_result_value(sqlite3_context*, sqlite3_value*); | |
-SQLITE_API SQLITE_API void sqlite3_result_zeroblob(sqlite3_context*, int n); | |
+ void sqlite3_result_blob(sqlite3_context*, const void*, int, void(*)(void*)); | |
+ void sqlite3_result_double(sqlite3_context*, double); | |
+ void sqlite3_result_error(sqlite3_context*, const char*, int); | |
+ void sqlite3_result_error16(sqlite3_context*, const void*, int); | |
+ void sqlite3_result_error_toobig(sqlite3_context*); | |
+ void sqlite3_result_error_nomem(sqlite3_context*); | |
+ void sqlite3_result_error_code(sqlite3_context*, int); | |
+ void sqlite3_result_int(sqlite3_context*, int); | |
+ void sqlite3_result_int64(sqlite3_context*, sqlite3_int64); | |
+ void sqlite3_result_null(sqlite3_context*); | |
+ void sqlite3_result_text(sqlite3_context*, const char*, int, void(*)(void*)); | |
+ void sqlite3_result_text16(sqlite3_context*, const void*, int, void(*)(void*)); | |
+ void sqlite3_result_text16le(sqlite3_context*, const void*, int,void(*)(void*)); | |
+ void sqlite3_result_text16be(sqlite3_context*, const void*, int,void(*)(void*)); | |
+ void sqlite3_result_value(sqlite3_context*, sqlite3_value*); | |
+ void sqlite3_result_zeroblob(sqlite3_context*, int n); | |
/* | |
** CAPI3REF: Define New Collating Sequences {H16600} <S20300> | |
@@ -3580,14 +3576,14 @@ | |
** [H16603] [H16604] [H16606] [H16609] [H16612] [H16615] [H16618] [H16621] | |
** [H16624] [H16627] [H16630] | |
*/ | |
-SQLITE_API SQLITE_API int sqlite3_create_collation( | |
+ int sqlite3_create_collation( | |
sqlite3*, | |
const char *zName, | |
int eTextRep, | |
void*, | |
int(*xCompare)(void*,int,const void*,int,const void*) | |
); | |
-SQLITE_API SQLITE_API int sqlite3_create_collation_v2( | |
+ int sqlite3_create_collation_v2( | |
sqlite3*, | |
const char *zName, | |
int eTextRep, | |
@@ -3595,7 +3591,7 @@ | |
int(*xCompare)(void*,int,const void*,int,const void*), | |
void(*xDestroy)(void*) | |
); | |
-SQLITE_API SQLITE_API int sqlite3_create_collation16( | |
+ int sqlite3_create_collation16( | |
sqlite3*, | |
const void *zName, | |
int eTextRep, | |
@@ -3632,12 +3628,12 @@ | |
** Requirements: | |
** [H16702] [H16704] [H16706] | |
*/ | |
-SQLITE_API SQLITE_API int sqlite3_collation_needed( | |
+ int sqlite3_collation_needed( | |
sqlite3*, | |
void*, | |
void(*)(void*,sqlite3*,int eTextRep,const char*) | |
); | |
-SQLITE_API SQLITE_API int sqlite3_collation_needed16( | |
+ int sqlite3_collation_needed16( | |
sqlite3*, | |
void*, | |
void(*)(void*,sqlite3*,int eTextRep,const void*) | |
@@ -3650,7 +3646,7 @@ | |
** The code to implement this API is not available in the public release | |
** of SQLite. | |
*/ | |
-SQLITE_API SQLITE_API int sqlite3_key( | |
+ int sqlite3_key( | |
sqlite3 *db, /* Database to be rekeyed */ | |
const void *pKey, int nKey /* The key */ | |
); | |
@@ -3663,7 +3659,7 @@ | |
** The code to implement this API is not available in the public release | |
** of SQLite. | |
*/ | |
-SQLITE_API SQLITE_API int sqlite3_rekey( | |
+ int sqlite3_rekey( | |
sqlite3 *db, /* Database to be rekeyed */ | |
const void *pKey, int nKey /* The new key */ | |
); | |
@@ -3684,7 +3680,7 @@ | |
** | |
** Requirements: [H10533] [H10536] | |
*/ | |
-SQLITE_API SQLITE_API int sqlite3_sleep(int); | |
+ int sqlite3_sleep(int); | |
/* | |
** CAPI3REF: Name Of The Folder Holding Temporary Files {H10310} <S20000> | |
@@ -3714,7 +3710,7 @@ | |
** made NULL or made to point to memory obtained from [sqlite3_malloc] | |
** or else the use of the [temp_store_directory pragma] should be avoided. | |
*/ | |
-SQLITE_API SQLITE_API SQLITE_EXTERN char *sqlite3_temp_directory; | |
+ SQLITE_EXTERN char *sqlite3_temp_directory; | |
/* | |
** CAPI3REF: Test For Auto-Commit Mode {H12930} <S60200> | |
@@ -3739,7 +3735,7 @@ | |
** | |
** Requirements: [H12931] [H12932] [H12933] [H12934] | |
*/ | |
-SQLITE_API SQLITE_API int sqlite3_get_autocommit(sqlite3*); | |
+ int sqlite3_get_autocommit(sqlite3*); | |
/* | |
** CAPI3REF: Find The Database Handle Of A Prepared Statement {H13120} <S60600> | |
@@ -3752,7 +3748,7 @@ | |
** | |
** Requirements: [H13123] | |
*/ | |
-SQLITE_API SQLITE_API sqlite3 *sqlite3_db_handle(sqlite3_stmt*); | |
+ sqlite3 *sqlite3_db_handle(sqlite3_stmt*); | |
/* | |
** CAPI3REF: Find the next prepared statement {H13140} <S60600> | |
@@ -3769,7 +3765,7 @@ | |
** | |
** Requirements: [H13143] [H13146] [H13149] [H13152] | |
*/ | |
-SQLITE_API SQLITE_API sqlite3_stmt *sqlite3_next_stmt(sqlite3 *pDb, sqlite3_stmt *pStmt); | |
+ sqlite3_stmt *sqlite3_next_stmt(sqlite3 *pDb, sqlite3_stmt *pStmt); | |
/* | |
** CAPI3REF: Commit And Rollback Notification Callbacks {H12950} <S60400> | |
@@ -3820,8 +3816,8 @@ | |
** [H12951] [H12952] [H12953] [H12954] [H12955] | |
** [H12961] [H12962] [H12963] [H12964] | |
*/ | |
-SQLITE_API SQLITE_API void *sqlite3_commit_hook(sqlite3*, int(*)(void*), void*); | |
-SQLITE_API SQLITE_API void *sqlite3_rollback_hook(sqlite3*, void(*)(void *), void*); | |
+ void *sqlite3_commit_hook(sqlite3*, int(*)(void*), void*); | |
+ void *sqlite3_rollback_hook(sqlite3*, void(*)(void *), void*); | |
/* | |
** CAPI3REF: Data Change Notification Callbacks {H12970} <S60400> | |
@@ -3870,7 +3866,7 @@ | |
** Requirements: | |
** [H12971] [H12973] [H12975] [H12977] [H12979] [H12981] [H12983] [H12986] | |
*/ | |
-SQLITE_API SQLITE_API void *sqlite3_update_hook( | |
+ void *sqlite3_update_hook( | |
sqlite3*, | |
void(*)(void *,int ,char const *,char const *,sqlite3_int64), | |
void* | |
@@ -3909,7 +3905,7 @@ | |
** | |
** Requirements: [H10331] [H10336] [H10337] [H10339] | |
*/ | |
-SQLITE_API SQLITE_API int sqlite3_enable_shared_cache(int); | |
+ int sqlite3_enable_shared_cache(int); | |
/* | |
** CAPI3REF: Attempt To Free Heap Memory {H17340} <S30220> | |
@@ -3923,7 +3919,7 @@ | |
** | |
** Requirements: [H17341] [H17342] | |
*/ | |
-SQLITE_API SQLITE_API int sqlite3_release_memory(int); | |
+ int sqlite3_release_memory(int); | |
/* | |
** CAPI3REF: Impose A Limit On Heap Size {H17350} <S30220> | |
@@ -3958,7 +3954,7 @@ | |
** Requirements: | |
** [H16351] [H16352] [H16353] [H16354] [H16355] [H16358] | |
*/ | |
-SQLITE_API SQLITE_API void sqlite3_soft_heap_limit(int); | |
+ void sqlite3_soft_heap_limit(int); | |
/* | |
** CAPI3REF: Extract Metadata About A Column Of A Table {H12850} <S60300> | |
@@ -4022,7 +4018,7 @@ | |
** This API is only available if the library was compiled with the | |
** [SQLITE_ENABLE_COLUMN_METADATA] C-preprocessor symbol defined. | |
*/ | |
-SQLITE_API SQLITE_API int sqlite3_table_column_metadata( | |
+ int sqlite3_table_column_metadata( | |
sqlite3 *db, /* Connection handle */ | |
const char *zDbName, /* Database name or NULL */ | |
const char *zTableName, /* Table name */ | |
@@ -4060,7 +4056,7 @@ | |
** [sqlite3_enable_load_extension()] prior to calling this API, | |
** otherwise an error will be returned. | |
*/ | |
-SQLITE_API SQLITE_API int sqlite3_load_extension( | |
+ int sqlite3_load_extension( | |
sqlite3 *db, /* Load the extension into this database connection */ | |
const char *zFile, /* Name of the shared library containing extension */ | |
const char *zProc, /* Entry point. Derived from zFile if 0 */ | |
@@ -4083,7 +4079,7 @@ | |
** | |
** {H12622} Extension loading is off by default. | |
*/ | |
-SQLITE_API SQLITE_API int sqlite3_enable_load_extension(sqlite3 *db, int onoff); | |
+ int sqlite3_enable_load_extension(sqlite3 *db, int onoff); | |
/* | |
** CAPI3REF: Automatically Load An Extensions {H12640} <S20500> | |
@@ -4110,7 +4106,7 @@ | |
** | |
** {H12644} Automatic extensions apply across all threads. | |
*/ | |
-SQLITE_API SQLITE_API int sqlite3_auto_extension(void (*xEntryPoint)(void)); | |
+ int sqlite3_auto_extension(void (*xEntryPoint)(void)); | |
/* | |
** CAPI3REF: Reset Automatic Extension Loading {H12660} <S20500> | |
@@ -4124,7 +4120,7 @@ | |
** | |
** {H12662} This function disables automatic extensions in all threads. | |
*/ | |
-SQLITE_API SQLITE_API void sqlite3_reset_auto_extension(void); | |
+ void sqlite3_reset_auto_extension(void); | |
/* | |
****** EXPERIMENTAL - subject to change without notice ************** | |
@@ -4295,7 +4291,7 @@ | |
** This interface has exactly the same effect as calling | |
** [sqlite3_create_module_v2()] with a NULL client data destructor. | |
*/ | |
-SQLITE_API SQLITE_API SQLITE_EXPERIMENTAL int sqlite3_create_module( | |
+ SQLITE_EXPERIMENTAL int sqlite3_create_module( | |
sqlite3 *db, /* SQLite connection to register module with */ | |
const char *zName, /* Name of the module */ | |
const sqlite3_module *p, /* Methods for the module */ | |
@@ -4312,7 +4308,7 @@ | |
** invoke the destructor function (if it is not NULL) when SQLite | |
** no longer needs the pClientData pointer. | |
*/ | |
-SQLITE_API SQLITE_API SQLITE_EXPERIMENTAL int sqlite3_create_module_v2( | |
+ SQLITE_EXPERIMENTAL int sqlite3_create_module_v2( | |
sqlite3 *db, /* SQLite connection to register module with */ | |
const char *zName, /* Name of the module */ | |
const sqlite3_module *p, /* Methods for the module */ | |
@@ -4378,7 +4374,7 @@ | |
** to declare the format (the names and datatypes of the columns) of | |
** the virtual tables they implement. | |
*/ | |
-SQLITE_API SQLITE_API SQLITE_EXPERIMENTAL int sqlite3_declare_vtab(sqlite3*, const char *zSQL); | |
+ SQLITE_EXPERIMENTAL int sqlite3_declare_vtab(sqlite3*, const char *zSQL); | |
/* | |
** CAPI3REF: Overload A Function For A Virtual Table {H18300} <S20400> | |
@@ -4397,7 +4393,7 @@ | |
** purpose is to be a placeholder function that can be overloaded | |
** by a [virtual table]. | |
*/ | |
-SQLITE_API SQLITE_API SQLITE_EXPERIMENTAL int sqlite3_overload_function(sqlite3*, const char *zFuncName, int nArg); | |
+ SQLITE_EXPERIMENTAL int sqlite3_overload_function(sqlite3*, const char *zFuncName, int nArg); | |
/* | |
** The interface to the virtual-table mechanism defined above (back up | |
@@ -4481,7 +4477,7 @@ | |
** Requirements: | |
** [H17813] [H17814] [H17816] [H17819] [H17821] [H17824] | |
*/ | |
-SQLITE_API SQLITE_API int sqlite3_blob_open( | |
+ int sqlite3_blob_open( | |
sqlite3*, | |
const char *zDb, | |
const char *zTable, | |
@@ -4516,7 +4512,7 @@ | |
** Requirements: | |
** [H17833] [H17836] [H17839] | |
*/ | |
-SQLITE_API SQLITE_API int sqlite3_blob_close(sqlite3_blob *); | |
+ int sqlite3_blob_close(sqlite3_blob *); | |
/* | |
** CAPI3REF: Return The Size Of An Open BLOB {H17840} <S30230> | |
@@ -4534,7 +4530,7 @@ | |
** Requirements: | |
** [H17843] | |
*/ | |
-SQLITE_API SQLITE_API int sqlite3_blob_bytes(sqlite3_blob *); | |
+ int sqlite3_blob_bytes(sqlite3_blob *); | |
/* | |
** CAPI3REF: Read Data From A BLOB Incrementally {H17850} <S30230> | |
@@ -4565,7 +4561,7 @@ | |
** Requirements: | |
** [H17853] [H17856] [H17859] [H17862] [H17863] [H17865] [H17868] | |
*/ | |
-SQLITE_API SQLITE_API int sqlite3_blob_read(sqlite3_blob *, void *Z, int N, int iOffset); | |
+ int sqlite3_blob_read(sqlite3_blob *, void *Z, int N, int iOffset); | |
/* | |
** CAPI3REF: Write Data Into A BLOB Incrementally {H17870} <S30230> | |
@@ -4607,7 +4603,7 @@ | |
** [H17873] [H17874] [H17875] [H17876] [H17877] [H17879] [H17882] [H17885] | |
** [H17888] | |
*/ | |
-SQLITE_API SQLITE_API int sqlite3_blob_write(sqlite3_blob *, const void *z, int n, int iOffset); | |
+ int sqlite3_blob_write(sqlite3_blob *, const void *z, int n, int iOffset); | |
/* | |
** CAPI3REF: Virtual File System Objects {H11200} <S20100> | |
@@ -4641,9 +4637,9 @@ | |
** Requirements: | |
** [H11203] [H11206] [H11209] [H11212] [H11215] [H11218] | |
*/ | |
-SQLITE_API SQLITE_API sqlite3_vfs *sqlite3_vfs_find(const char *zVfsName); | |
-SQLITE_API SQLITE_API int sqlite3_vfs_register(sqlite3_vfs*, int makeDflt); | |
-SQLITE_API SQLITE_API int sqlite3_vfs_unregister(sqlite3_vfs*); | |
+ sqlite3_vfs *sqlite3_vfs_find(const char *zVfsName); | |
+ int sqlite3_vfs_register(sqlite3_vfs*, int makeDflt); | |
+ int sqlite3_vfs_unregister(sqlite3_vfs*); | |
/* | |
** CAPI3REF: Mutexes {H17000} <S20000> | |
@@ -4757,11 +4753,11 @@ | |
** | |
** See also: [sqlite3_mutex_held()] and [sqlite3_mutex_notheld()]. | |
*/ | |
-SQLITE_API SQLITE_API sqlite3_mutex *sqlite3_mutex_alloc(int); | |
-SQLITE_API SQLITE_API void sqlite3_mutex_free(sqlite3_mutex*); | |
-SQLITE_API SQLITE_API void sqlite3_mutex_enter(sqlite3_mutex*); | |
-SQLITE_API SQLITE_API int sqlite3_mutex_try(sqlite3_mutex*); | |
-SQLITE_API SQLITE_API void sqlite3_mutex_leave(sqlite3_mutex*); | |
+ sqlite3_mutex *sqlite3_mutex_alloc(int); | |
+ void sqlite3_mutex_free(sqlite3_mutex*); | |
+ void sqlite3_mutex_enter(sqlite3_mutex*); | |
+ int sqlite3_mutex_try(sqlite3_mutex*); | |
+ void sqlite3_mutex_leave(sqlite3_mutex*); | |
/* | |
** CAPI3REF: Mutex Methods Object {H17120} <S20130> | |
@@ -4856,8 +4852,8 @@ | |
** the appropriate thing to do. {H17086} The sqlite3_mutex_notheld() | |
** interface should also return 1 when given a NULL pointer. | |
*/ | |
-SQLITE_API SQLITE_API int sqlite3_mutex_held(sqlite3_mutex*); | |
-SQLITE_API SQLITE_API int sqlite3_mutex_notheld(sqlite3_mutex*); | |
+ int sqlite3_mutex_held(sqlite3_mutex*); | |
+ int sqlite3_mutex_notheld(sqlite3_mutex*); | |
/* | |
** CAPI3REF: Mutex Types {H17001} <H17000> | |
@@ -4888,7 +4884,7 @@ | |
** If the [threading mode] is Single-thread or Multi-thread then this | |
** routine returns a NULL pointer. | |
*/ | |
-SQLITE_API SQLITE_API sqlite3_mutex *sqlite3_db_mutex(sqlite3*); | |
+ sqlite3_mutex *sqlite3_db_mutex(sqlite3*); | |
/* | |
** CAPI3REF: Low-Level Control Of Database Files {H11300} <S30800> | |
@@ -4914,7 +4910,7 @@ | |
** | |
** See also: [SQLITE_FCNTL_LOCKSTATE] | |
*/ | |
-SQLITE_API SQLITE_API int sqlite3_file_control(sqlite3*, const char *zDbName, int op, void*); | |
+ int sqlite3_file_control(sqlite3*, const char *zDbName, int op, void*); | |
/* | |
** CAPI3REF: Testing Interface {H11400} <S30800> | |
@@ -4933,7 +4929,7 @@ | |
** Unlike most of the SQLite API, this function is not guaranteed to | |
** operate consistently from one release to the next. | |
*/ | |
-SQLITE_API SQLITE_API int sqlite3_test_control(int op, ...); | |
+ int sqlite3_test_control(int op, ...); | |
/* | |
** CAPI3REF: Testing Interface Operation Codes {H11410} <H11400> | |
@@ -4987,7 +4983,7 @@ | |
** | |
** See also: [sqlite3_db_status()] | |
*/ | |
-SQLITE_API SQLITE_API SQLITE_EXPERIMENTAL int sqlite3_status(int op, int *pCurrent, int *pHighwater, int resetFlag); | |
+ SQLITE_EXPERIMENTAL int sqlite3_status(int op, int *pCurrent, int *pHighwater, int resetFlag); | |
/* | |
@@ -5095,7 +5091,7 @@ | |
** | |
** See also: [sqlite3_status()] and [sqlite3_stmt_status()]. | |
*/ | |
-SQLITE_API SQLITE_API SQLITE_EXPERIMENTAL int sqlite3_db_status(sqlite3*, int op, int *pCur, int *pHiwtr, int resetFlg); | |
+ SQLITE_EXPERIMENTAL int sqlite3_db_status(sqlite3*, int op, int *pCur, int *pHiwtr, int resetFlg); | |
/* | |
** CAPI3REF: Status Parameters for database connections {H17520} <H17500> | |
@@ -5136,7 +5132,7 @@ | |
** | |
** See also: [sqlite3_status()] and [sqlite3_db_status()]. | |
*/ | |
-SQLITE_API SQLITE_API SQLITE_EXPERIMENTAL int sqlite3_stmt_status(sqlite3_stmt*, int op,int resetFlg); | |
+ SQLITE_EXPERIMENTAL int sqlite3_stmt_status(sqlite3_stmt*, int op,int resetFlg); | |
/* | |
** CAPI3REF: Status Parameters for prepared statements {H17570} <H17550> | |
@@ -5491,16 +5487,16 @@ | |
** same time as another thread is invoking sqlite3_backup_step() it is | |
** possible that they return invalid values. | |
*/ | |
-SQLITE_API SQLITE_API sqlite3_backup *sqlite3_backup_init( | |
+ sqlite3_backup *sqlite3_backup_init( | |
sqlite3 *pDest, /* Destination database handle */ | |
const char *zDestName, /* Destination database name */ | |
sqlite3 *pSource, /* Source database handle */ | |
const char *zSourceName /* Source database name */ | |
); | |
-SQLITE_API SQLITE_API int sqlite3_backup_step(sqlite3_backup *p, int nPage); | |
-SQLITE_API SQLITE_API int sqlite3_backup_finish(sqlite3_backup *p); | |
-SQLITE_API SQLITE_API int sqlite3_backup_remaining(sqlite3_backup *p); | |
-SQLITE_API SQLITE_API int sqlite3_backup_pagecount(sqlite3_backup *p); | |
+ int sqlite3_backup_step(sqlite3_backup *p, int nPage); | |
+ int sqlite3_backup_finish(sqlite3_backup *p); | |
+ int sqlite3_backup_remaining(sqlite3_backup *p); | |
+ int sqlite3_backup_pagecount(sqlite3_backup *p); | |
/* | |
** CAPI3REF: Unlock Notification | |
@@ -5617,7 +5613,7 @@ | |
** the special "DROP TABLE/INDEX" case, the extended error code is just | |
** SQLITE_LOCKED. | |
*/ | |
-SQLITE_API SQLITE_API int sqlite3_unlock_notify( | |
+ int sqlite3_unlock_notify( | |
sqlite3 *pBlocked, /* Waiting connection */ | |
void (*xNotify)(void **apArg, int nArg), /* Callback function to invoke */ | |
void *pNotifyArg /* Argument to pass to xNotify */ | |
@@ -5633,7 +5629,7 @@ | |
** case-indendent fashion, using the same definition of case independence | |
** that SQLite uses internally when comparing identifiers. | |
*/ | |
-SQLITE_API SQLITE_API int sqlite3_strnicmp(const char *, const char *, int); | |
+ int sqlite3_strnicmp(const char *, const char *, int); | |
/* | |
** Undo the hack that converts floating point types to integer for |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment