File: sqlite3.ffi

package info (click to toggle)
nyacc 1.09.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,540 kB
  • sloc: lisp: 34,985; sh: 682; makefile: 462; ansic: 279; javascript: 61; tcl: 27
file content (28 lines) | stat: -rw-r--r-- 1,130 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
;; sqlite3.ffi				-*- Scheme -*-

;; Copyright (C) 2018 Matthew R. Wette
;;
;; This library is free software; you can redistribute it and/or
;; modify it under the terms of the GNU Lesser General Public
;; License as published by the Free Software Foundation; either
;; version 3 of the License, or (at your option) any later version.
;;
;; This library is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
;; Lesser General Public License for more details.
;;
;; You should have received a copy of the GNU Lesser General Public License
;; along with this library; if not, see <http://www.gnu.org/licenses/>

(define-ffi-module (ffi sqlite3)
  #:pkg-config "sqlite3"
  #:include '("sqlite3.h"))

;; Items the FFI helper is not currently generating.
(define-fh-pointer-type sqlite3_int64* (bs:pointer sqlite_int64-desc)
  sqlite3_int64*? make-sqlite_int64*)
(define-fh-pointer-type sqlite3_rtree_dbl (bs:pointer sqlite3_rtree_dbl)
  sqlite3_rtree_dbl? make-sqlite3_rtree_dbl)

;; --- last line ---