Fix sqlite and sqlite.tuple-db for factor changes
parent
cd64a7bbee
commit
f0f309b4b4
|
@ -12,14 +12,13 @@ IN: sqlite.lib
|
||||||
USING: alien compiler kernel math namespaces sequences strings alien.syntax
|
USING: alien compiler kernel math namespaces sequences strings alien.syntax
|
||||||
system combinators ;
|
system combinators ;
|
||||||
|
|
||||||
: load-sqlite-library ( -- )
|
<<
|
||||||
"sqlite" {
|
"sqlite" {
|
||||||
{ [ win32? ] [ "sqlite3.dll" ] }
|
{ [ win32? ] [ "sqlite3.dll" ] }
|
||||||
{ [ macosx? ] [ "/usr/lib/libsqlite3.dylib" ] }
|
{ [ macosx? ] [ "/usr/lib/libsqlite3.dylib" ] }
|
||||||
{ [ unix? ] [ "libsqlite3.so" ] }
|
{ [ unix? ] [ "libsqlite3.so" ] }
|
||||||
} cond "cdecl" add-library ; parsing
|
} cond "cdecl" add-library
|
||||||
|
>>
|
||||||
load-sqlite-library
|
|
||||||
|
|
||||||
! Return values from sqlite functions
|
! Return values from sqlite functions
|
||||||
: SQLITE_OK 0 ; inline ! Successful result
|
: SQLITE_OK 0 ; inline ! Successful result
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
! Copyright (C) 2006 Chris Double.
|
! Copyright (C) 2006 Chris Double.
|
||||||
! See http://factorcode.org/license.txt for BSD license.
|
! See http://factorcode.org/license.txt for BSD license.
|
||||||
USING: help sqlite help.syntax help.markup ;
|
USING: help help.syntax help.markup ;
|
||||||
IN: sqlite
|
IN: sqlite
|
||||||
|
|
||||||
HELP: sqlite-open
|
HELP: sqlite-open
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
! Copyright (C) 2006 Chris Double.
|
! Copyright (C) 2006 Chris Double.
|
||||||
! See http://factorcode.org/license.txt for BSD license.
|
! See http://factorcode.org/license.txt for BSD license.
|
||||||
USING: help sqlite sqlite.tuple-db help.syntax help.markup ;
|
USING: help sqlite help.syntax help.markup ;
|
||||||
IN: sqlite.tuple-db
|
IN: sqlite.tuple-db
|
||||||
|
|
||||||
ARTICLE: { "sqlite" "tuple-db-loading" } "Loading"
|
ARTICLE: { "sqlite" "tuple-db-loading" } "Loading"
|
||||||
|
|
Loading…
Reference in New Issue