README for tcl_gdbm_wrapper
Author: Mario Weilguni
Current version: 0.1
What is it
----------
tcl_gdbm_wrapper is a package which allows you to connect ("attach") a
GDBM database to a array variable. You do not need to write any
database access command, this is done for you by tcl_gdbm_wrapper.tcl.
What do you need
----------------
Either you need a tclsh (itclsh, itkwish, tixwish...) which supports
the "gdbm" command or a version of Tcl >= 7.5 and a dynamic library
"libtclgdbm-0.1.so" in any appropriate directory.
I've included a slighly modified "tcl+gdbm" package in the directory
tcl+gdbm-0.1. It allows you to create a shared library by typing
"make shared". It works under Linux ELF with gcc 2.7.2. I've modified
the Makefile and gdbmcmd-shared.c (which is a copy of gdbmcmd.c except
for this modification). It shoult also work with "tcl+ndbm", but then
you have to modify the line
>> set DBM(DB) "gdbm"
to
>> set DBM(DB) "ndbm"
You can get the original "tcl+gdbm" package at
ftp://ftp.neosoft.com/pub/tcl/alcatel/extensions/tcl+gdbm-0.1.tar.gz
and a package of "tcl+ndbm" from:
ftp://ftp.neosoft.com/pub/tcl/alcatel/extensions/tcl+ndbm-0.1.tar.gz
How it works
------------
It's really simple. Just take a look into demo.tcl.
License
-------
This package is published under the GNU GPL (GNU General Public License).
See file LICENSE for details. The directory "tcl+gdbm-0.1" (and for all
other version numbers) is NOT covered by this license but by the
original authors license. See file COPYRIGHT in this directory for details.
Feedback
--------
I'd appreciate feedback (patches, comments...).
Mail to , and please use a subject like
"GDBM_WRAPPER: I have a new patch".