diff options
author | Steve Bennett <steveb@workware.net.au> | 2021-01-10 13:12:36 +1000 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2021-01-10 15:33:15 +1000 |
commit | 8f3e1ce80995c42a200db98fbfe02e4a60771c26 (patch) | |
tree | 79cfcc498292df506fb71660caa3527f03823246 /sqlite3/README | |
parent | a95647743db1816f54368c8b515b6cc6d4c3c745 (diff) | |
download | jimtcl-8f3e1ce80995c42a200db98fbfe02e4a60771c26.zip jimtcl-8f3e1ce80995c42a200db98fbfe02e4a60771c26.tar.gz jimtcl-8f3e1ce80995c42a200db98fbfe02e4a60771c26.tar.bz2 |
package: add ABI version checking
jim.h now includes JIM_ABI_VERSION that should be incremented whenever
the ABI changes. Then all loadable modules should call Jim_CheckAbiVersion()
to make sure they are loaded against the correct version.
Add Jim_PackageProvideCheck() that does both Jim_CheckAbiVersion()
and Jim_PackageProvide() to simplify the implementation of loadable extensions.
Also rename the "big" sqlite3 extension to just sqlite to avoid a naming conflict with
the smaller jim-sqlite3 extension.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'sqlite3/README')
-rw-r--r-- | sqlite3/README | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sqlite3/README b/sqlite3/README index d1094dd..297c3de 100644 --- a/sqlite3/README +++ b/sqlite3/README @@ -13,14 +13,14 @@ Ensure that you have configured and built jim in the source directory, then: $ make -./build-ext -o sqlite3.so -I.. -L.. -DSQLITE_OMIT_LOAD_EXTENSION=1 ... jim-sqlite3.c sqlite3.c -Building sqlite3.so from jim-sqlite3.c sqlite3.c +./build-ext -o sqlite.so -I.. -L.. -DSQLITE_OMIT_LOAD_EXTENSION=1 ... jim-sqlite.c sqlite3.c +Building sqlite.so from jim-sqlite.c sqlite3.c Warning: libjim is static. Dynamic module may not work on some platforms. -Compile: jim-sqlite3.o +Compile: jim-sqlite.o Compile: sqlite3.o -Link: sqlite3.so +Link: sqlite.so Success! @@ -32,17 +32,17 @@ $ make test Installing ---------- -Copy sqlite3.so to your jim library directory, typically /usr/local/lib/jim or +Copy sqlite.so to your jim library directory, typically /usr/local/lib/jim or where $JIMLIB points to. Using ----- -In your Jim Tcl code, ensure that sqlite3.so is in a directory on $auto_path. +In your Jim Tcl code, ensure that sqlite.so is in a directory on $auto_path. Then: - package require sqlite3 + package require sqlite - sqlite3 db test.db + sqlite db test.db ...etc.. Documentation |