SQLite

Check-in [00313d1527]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Add an appropriate _declspec to the declaration of the sqlite3_dbdata_init() function in the recovery extension.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | trunk
Files: files | file ages | folders
SHA3-256: 00313d15270b36fce44f7784c97ddc42517e23c209c1ccc4d814ef06b11528c0
User & Date: drh 2025-04-18 14:47:56.507
Context
2025-04-18
14:47
Add an appropriate _declspec to the declaration of the sqlite3_dbdata_init() function in the recovery extension. (Leaf check-in: 00313d1527 user: drh tags: trunk)
2025-04-17
19:41
Upstream teaish, which simplifies how extension metadata are initialized and shrinks proj.tcl by 4k. (check-in: c72c00d34d user: stephan tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to ext/recover/dbdata.c.
1004
1005
1006
1007
1008
1009
1010



1011
1012
1013
1014
1015
1016
1017
  int rc = sqlite3_create_module(db, "sqlite_dbdata", &dbdata_module, 0);
  if( rc==SQLITE_OK ){
    rc = sqlite3_create_module(db, "sqlite_dbptr", &dbdata_module, (void*)1);
  }
  return rc;
}




int sqlite3_dbdata_init(
  sqlite3 *db, 
  char **pzErrMsg, 
  const sqlite3_api_routines *pApi
){
  (void)pzErrMsg;
  return sqlite3DbdataRegister(db);







>
>
>







1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
  int rc = sqlite3_create_module(db, "sqlite_dbdata", &dbdata_module, 0);
  if( rc==SQLITE_OK ){
    rc = sqlite3_create_module(db, "sqlite_dbptr", &dbdata_module, (void*)1);
  }
  return rc;
}

#ifdef _WIN32
__declspec(dllexport)
#endif
int sqlite3_dbdata_init(
  sqlite3 *db, 
  char **pzErrMsg, 
  const sqlite3_api_routines *pApi
){
  (void)pzErrMsg;
  return sqlite3DbdataRegister(db);