mirror of
https://github.com/ncruces/go-sqlite3.git
synced 2026-01-12 05:59:14 +00:00
Rename.
This commit is contained in:
7
internal/vfs/tests/mptest/testdata/main.c
vendored
7
internal/vfs/tests/mptest/testdata/main.c
vendored
@@ -1,11 +1,12 @@
|
||||
#include <stdbool.h>
|
||||
#include <stddef.h>
|
||||
|
||||
// Configuration
|
||||
#include "sqlite_cfg.h"
|
||||
//
|
||||
// Amalgamation
|
||||
#include "sqlite3.c"
|
||||
//
|
||||
#include "os.c"
|
||||
// VFS
|
||||
#include "vfs.c"
|
||||
|
||||
sqlite3_destructor_type malloc_destructor = &free;
|
||||
size_t sqlite3_interrupt_offset = offsetof(sqlite3, u1.isInterrupted);
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
#include <stdbool.h>
|
||||
#include <stddef.h>
|
||||
|
||||
// Configuration
|
||||
#include "sqlite_cfg.h"
|
||||
//
|
||||
// Amalgamation
|
||||
#include "sqlite3.c"
|
||||
//
|
||||
#include "os.c"
|
||||
// VFS
|
||||
#include "vfs.c"
|
||||
|
||||
sqlite3_destructor_type malloc_destructor = &free;
|
||||
size_t sqlite3_interrupt_offset = offsetof(sqlite3, u1.isInterrupted);
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
#include <stdbool.h>
|
||||
#include <stddef.h>
|
||||
|
||||
// Configuration
|
||||
#include "sqlite_cfg.h"
|
||||
//
|
||||
// Amalgamation
|
||||
#include "sqlite3.c"
|
||||
//
|
||||
#include "os.c"
|
||||
//
|
||||
// VFS
|
||||
#include "vfs.c"
|
||||
// Extensions
|
||||
#include "ext/base64.c"
|
||||
#include "ext/decimal.c"
|
||||
#include "ext/regexp.c"
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
#define SQLITE_DEFAULT_LOCKING_MODE 1
|
||||
#endif
|
||||
|
||||
// Recommended Extensions
|
||||
// Amalgamated Extensions
|
||||
|
||||
#define SQLITE_ENABLE_MATH_FUNCTIONS 1
|
||||
#define SQLITE_ENABLE_JSON1 1
|
||||
@@ -55,5 +55,13 @@
|
||||
// #define SQLITE_ENABLE_SESSION
|
||||
// #define SQLITE_ENABLE_PREUPDATE_HOOK
|
||||
|
||||
// Implemented in os.c.
|
||||
// https://stackoverflow.com/a/50616684
|
||||
#define SECOND(...) SECOND_I(__VA_ARGS__,,)
|
||||
#define SECOND_I(A,B,...) B
|
||||
#define GLUE(A,B) GLUE_I(A,B)
|
||||
#define GLUE_I(A,B) A##B
|
||||
#define REPLACE_DEFAULT(a, prefix) SECOND(GLUE(prefix, __LINE__), a)
|
||||
#define REPLACE_AT_LINE(a) ,a
|
||||
|
||||
// Implemented in vfs.c.
|
||||
int localtime_s(struct tm *const pTm, time_t const *const pTime);
|
||||
Reference in New Issue
Block a user