summaryrefslogtreecommitdiff
path: root/errors.zig
diff options
context:
space:
mode:
authorGravatar Vincent Rischmann2022-08-04 09:41:10 +0200
committerGravatar Vincent Rischmann2022-08-04 12:46:16 +0200
commit1676c2f04ead9a4e5844b48392bd5c44d477ce49 (patch)
tree1a3008c265164e021c74b72fb971463168ffe16b /errors.zig
parentadd greaterThanOrEqualsTo (diff)
downloadzig-sqlite-1676c2f04ead9a4e5844b48392bd5c44d477ce49.tar.gz
zig-sqlite-1676c2f04ead9a4e5844b48392bd5c44d477ce49.tar.xz
zig-sqlite-1676c2f04ead9a4e5844b48392bd5c44d477ce49.zip
use a single cImport
Two cImport calls generate incompatible code: we can't use the structs generated in sqlite.zig in functions in errors.zig for example Up until now it wasn't actually a problem since in errors.zig we only ever used constants which does work, but now we want to introduce functions in this file.
Diffstat (limited to '')
-rw-r--r--errors.zig4
1 files changed, 1 insertions, 3 deletions
diff --git a/errors.zig b/errors.zig
index 39240e0..0b3172f 100644
--- a/errors.zig
+++ b/errors.zig
@@ -1,8 +1,6 @@
1const std = @import("std"); 1const std = @import("std");
2 2
3const c = @cImport({ 3const c = @import("c.zig").c;
4 @cInclude("sqlite3.h");
5});
6 4
7pub const SQLiteExtendedIOError = error{ 5pub const SQLiteExtendedIOError = error{
8 SQLiteIOErrRead, 6 SQLiteIOErrRead,