8 Sep 2008 11:45
Re: a Scheme48 wrapper for Sqlite3
Ivan Shmakov <oneingray <at> gmail.com>
2008-09-08 09:45:32 GMT
2008-09-08 09:45:32 GMT
>>>>> "IS" == Ivan Shmakov <ivan <at> theory.asu.ru> writes:
IS> I've made some changes to the code, but I'm currently too busy to
IS> finish the work. I'm therefore posting the code in its current
IS> state in the hope that it might be useful to someone.
I've reworked the code a bit, and the user-visible changes are
roughly as follows.
* The code is now rewritten to utilize the new Scheme48 FFI (for
to-be Scheme 1.9.)
* The error-signalling variants are now provided for a number of
functions; these variants are: `sqlite3-open', `sqlite3-close',
`sqlite3-prepare-2', `sqlite3-prepare',
`sqlite3-prepared-finalize!', `sqlite3-prepared-reset!',
`sqlite3-prepared-step!'.
* The interfaces were extended by `sqlite3-column-name' (with error
signalling) and `sqlite3-column-name-1' (without), mostly to allow
for `sqlite3-exec' to be reimplemented.
* The `sqlite3-exec' is now reimplemented on top of the rest of the
interface; both `sqlite3-exec-1' and sqlite3_s48_exec () are gone.
* An example makefile is provided.
I've tested it with Scheme48 (as of [1]), and it appears to
build and work correctly:
(Continue reading)
>> I guess, I'm now the one confused with the question.
>> The development code that crashed was built the way just like the
>> one I've used to build the development code with itself, i. e.:
> I think I somehow got into a mind state where I believed you're doing
> all of this on Windows: sorry about that. On what platform are you
> doing it?
I do it on GNU/Linux, as of Debian Etch (amd64 port.)
As I was suspicious about possible bugs within the new FFI
(well, what's the most likely place for bugs which lead to
segmentation faults, anyway?), I've build Scheme48 as of
6ab92621cc7c [1]. It wasn't a big surprise that /that/ version
did indeed compile itself fine.
RSS Feed