summaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
authorGravatar Vincent Rischmann2021-09-07 00:18:22 +0200
committerGravatar Vincent Rischmann2021-09-07 00:56:30 +0200
commit8afc01f52a3aa32931fedd680efefcae59e3c390 (patch)
tree2e75afe33c41c419ff7ec0c17911939282c21cc6 /build.zig
parentMerge pull request #47 from vrischmann/fix-usingnamespace (diff)
downloadzig-sqlite-8afc01f52a3aa32931fedd680efefcae59e3c390.tar.gz
zig-sqlite-8afc01f52a3aa32931fedd680efefcae59e3c390.tar.xz
zig-sqlite-8afc01f52a3aa32931fedd680efefcae59e3c390.zip
Stop using anytype in the public API.
The need for using `options: anytype` in readXYZ functions is so that they can be used both when called by `one`/`next` or `oneAlloc`/`nextAlloc`. In the first case there won't be an allocator member in the tuple, in the latter there will be. But, since the public API takes an explicit allocator argument in `oneAlloc`/`nextAlloc` there's no need to take a `anytype` options in the public API. This commit changes the public API to always use `QueryOptions`. This commit also adds a bunch of explicit comptime checks to validate the options type passed to the readXYZ functions. Especially important is checking the presence of the `allocator` field if the function requires an allocator. Finally, cleanup some stuff and reorder arguments in `readPointer`.
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions