aboutsummaryrefslogtreecommitdiff
path: root/sqlite3_opt_vtable.go
diff options
context:
space:
mode:
authorGert-Jan Timmer <gjr.timmer@gmail.com>2018-05-27 00:05:45 +0200
committerGert-Jan Timmer <gjr.timmer@gmail.com>2018-05-27 00:05:45 +0200
commit420bfbcac8d3bc377e325ca78ecc73c192a7b03f (patch)
tree720d2a225b4289a07bcd375c3db371e687cb48a6 /sqlite3_opt_vtable.go
parentMerge pull request #568 from GJRTimmer/fix/usleep (diff)
downloadgolite-420bfbcac8d3bc377e325ca78ecc73c192a7b03f.tar.gz
golite-420bfbcac8d3bc377e325ca78ecc73c192a7b03f.tar.xz
fmt update
Fix: Placed all +build tags in the same location Fix: Split CFLAGS, LDFLAGS into seperate lines for readability and lookup Fix: Placed empty line between copyright comments and build tags for readability Fix: Placed OS specfic cgo flags at the end if the cgo sections contains multiple lines.
Diffstat (limited to 'sqlite3_opt_vtable.go')
-rw-r--r--sqlite3_opt_vtable.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/sqlite3_opt_vtable.go b/sqlite3_opt_vtable.go
index 3391756..73d66c0 100644
--- a/sqlite3_opt_vtable.go
+++ b/sqlite3_opt_vtable.go
@@ -2,14 +2,18 @@
//
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file.
+
// +build sqlite_vtable vtable
package sqlite3
/*
#cgo CFLAGS: -std=gnu99
-#cgo CFLAGS: -DSQLITE_ENABLE_RTREE -DSQLITE_THREADSAFE
-#cgo CFLAGS: -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_FTS4_UNICODE61
+#cgo CFLAGS: -DSQLITE_ENABLE_RTREE
+#cgo CFLAGS: -DSQLITE_THREADSAFE
+#cgo CFLAGS: -DSQLITE_ENABLE_FTS3
+#cgo CFLAGS: -DSQLITE_ENABLE_FTS3_PARENTHESIS
+#cgo CFLAGS: -DSQLITE_ENABLE_FTS4_UNICODE61
#cgo CFLAGS: -DSQLITE_TRACE_SIZE_LIMIT=15
#cgo CFLAGS: -DSQLITE_ENABLE_COLUMN_METADATA=1
#cgo CFLAGS: -Wno-deprecated-declarations