mirror of
https://github.com/ncruces/go-sqlite3.git
synced 2026-01-12 05:59:14 +00:00
C tweaks.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#include <unistd.h>
|
||||
|
||||
// Use the default call back, not the Go one we patched in.
|
||||
#define sqliteBusyCallback sqliteDefaultBusyCallback
|
||||
|
||||
// Amalgamation
|
||||
@@ -9,8 +10,10 @@
|
||||
|
||||
__attribute__((constructor)) void init() { sqlite3_initialize(); }
|
||||
|
||||
// Ignore these.
|
||||
#define sqlite3_enable_load_extension(...)
|
||||
#define sqlite3_trace(...)
|
||||
#define unlink(...) (0)
|
||||
#undef UNUSED_PARAMETER
|
||||
|
||||
#include "mptest.c"
|
||||
@@ -1,3 +1,4 @@
|
||||
// Use the default call back, not the Go one we patched in.
|
||||
#define sqliteBusyCallback sqliteDefaultBusyCallback
|
||||
|
||||
// Amalgamation
|
||||
@@ -5,5 +6,7 @@
|
||||
// VFS
|
||||
#include "vfs.c"
|
||||
|
||||
#define randomFunc randomFunc2
|
||||
// Can't have two functions with the same name.
|
||||
#define randomFunc randomFuncRepeatable
|
||||
|
||||
#include "speedtest1.c"
|
||||
Binary file not shown.
Reference in New Issue
Block a user