Age | Commit message (Collapse) | Author | Files | Lines |
|
When I'm working with SQLite3 databases in Jim, I find that I occasionally
get a 'schema has changed' error so I end up using catch to detect the
error and try the query again.
Here's a quick patch to change the SQLite3 extension to use the
sqlite3_prepare_v2() API function instead of sqlite3_prepare() - trivial
but the _v2() function has a number of benefits and everyone should have a
new enough SQLite3 library to support it. Please can you consider it for
inclusion?
See - http://www.sqlite.org/c3ref/prepare.html
The benefit I'm specifically interested in is:
With the _v2() variant, "If the database schema changes, instead of
returning SQLITE_SCHEMA as it always used to do, sqlite3_step() will
automatically recompile the SQL statement and try to run it again."
|
|
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
By default, headers are checked with -lang c
Reported-by: Alexander Shpilkin <ashpilkin@gmail.com>
Reported-by: Adrian Ho <ll-jim-devel@03s.net>
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
On cygwin, setting environ before execvp() doesn't work,
but execvpe() does exist and works, so use that in preference
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
And other minor changes for windows platforms
|
|
Otherwise they can't be linked with -l
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
See README.namespaces
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Anything older than sqlite3 is no longer worth supporting
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
For a better "out-of-the-box" experience, most extensions
such as binary, tree and tclprefix are enabled by default.
Also jim-regexp is enabled by default for better Tcl compatibility.
It is still possible to disable any of these with --without-ext=...
and --disable-jim-regexp
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Also adds Jim_ListGetIndex(), like Jim_ListIndex() but with a more convenient interface
|
|
The old implementation was cumbersome for adding new extensions
The new implementation is still too complex :-(
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Simplifies the process of building loadable extensions
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Correctly detect sys/socket.h and netinet/in.h on OpenBSD
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Separate out the termios-specific code
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Missing parts are binary properties and search.
|
|
Both for loadable modules and for the core.
Also, loadable modules should now build with BSD make.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Allows a file to be "touched"
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Use the new conditional template support in autosetup
to avoid (most) GNU-isms in the generated Makefile.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
inet_ntop needs -lnsl on Solaris
Solaris has sysinfo, but no uptime
Link flags need to be a bit different
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Don't use -Werror
Prefer user CFLAGS over default options
Haiku needs -lnetwork for networking functions
Haiku does not have -lm
Haiku does not have SIGIO
Silence some warnings
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
If jimsh is run in interactive mode but without a tty,
don't bother to load and save line editing history.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
When running under automake (as openocd does) it seems
impossible to build jimtcl but not install it, so add
--disable-install-jim to help out.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
All generated sources are now prefixed with an underscore
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Tcl compatible.
Also move jimsh initialisation script into initjimsh.tcl
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
To more easily select some optional features which are disabled
by default.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Mainly for msys/mingw support
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Convert some paths from backslashes to forward slashes
Handle splitting/joining paths which look like z:/abc/def
Identify the platform as mingw
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
- Check for mkdir with one arg at configure time
- mingw can't really do select(), so support only time events in eventloop
- Declare dlerror() to be compatible with mingw
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Enables [debug] and JimPanic()
JimPanic() is an assertion feature which is generally
only of interest to developers, so disable it by default
to save space and time.
|
|
Supports everything except floating point types
binary is implemented in Tcl on top of the low level [pack] and [unpack] commands
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Shared libraries can't access environ directly, so use
_NSGetEnviron() on Mac OS X
Also, load modules with (RTLD_NOW | RTLD_LOCAL) instead of RTLD_LAZY
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Use system() to implement [exec] if vfork() and waitpid()
are not available. This is just functional enough for simple tasks.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Faster, simpler auto-configuration
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|