Age | Commit message (Collapse) | Author | Files | Lines |
|
Detect when cross compiling (build != host)
Tcl exec loses stderr if redirected and an error code is returned, so
redo the approach to exec so that it works on both Tcl and Jim
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
|
|
And enable silent rules by default if using GNU make.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Mostly for --{enable,disable}-silent-rules
Use new opt-str where appropriate
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Now simply 'wait'
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
- fix popen [open "|pipeline ..."] to return meaningful status in close
(but note that stderr is not captured)
- popen pipelines can now be used as the target of exec redirection
- overally improvements to exec on windows. Now crt file descriptors
are used throughout
- add support for [pid], [wait] and popen on windows
- os.wait is now wait, and integrates with [exec ... &] to be able
to wait for running background tasks
- [socket pipe] is now also [pipe] and is supported on windows
- [file tempfile] is supported on windows
- move duplicated code between jim-aio.c and jim-exec.c to jimiocompat.c
- Fix [exec] on windows to match unix semantics wrt sharing the parent stream
unless redirected rather than using /dev/null
- On windows redirect to or from /dev/null is automatically converted to NUL:
- If signal support is disabled, implement a minimal Jim_SignalId() for exec and wait
- aio now supports getfd, to return the underlying file descriptor.
This is used by exec to support redirection, and allows popen channels
to support exec redirection.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Timeouts may now be specified in fractions of milliseconds. e.g. after 0.5
This can be useful on faster systems where 1ms resolution is too coarse.
Also, use clock_gettime(CLOCK_MONOTONIC_RAW) for timers, if available.
This clock is insensitive to system clock changes and ntp adjustments.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
It is not pushed to mainline yet.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Makes it a bit easier to type on the command line.
e.g.
--with-mod=binary,zlib --with-ext=sqlite3
Spaces are still accepted, as are multiple instances of
--with-mod, --with-ext and --without-ext
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Modules/extensions are now explicitly marked as optional
(and enabled with --full), or off (must be explicitly
enabled with --with-mod/--with-ext)
This means that now binary and tclprefix are correctly
not enabled by default, and zlib is enabled with --full.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
It is listed as not enabled by default, but it is enabled by default
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
More reliable way to remove the footer
Reported-by: Bernhard M. Wiedemann <bwiedemann@suse.de>
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
For reproducible builds
Reported-by: Bernhard M. Wiedemann <bwiedemann@suse.de>
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
opt-val now returns a list, so take the last option given
Reported-by: Stuart Cassoff <stwo@bell.net>
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>
|
|
Building with CFLAGS="-Werror -Wall" caused configure to fail due to
the following warnings being converted to errors:
* conflicting types for built-in function
* unused variable
When these warnings get converted to errors, they prevent the detection
of fork, isascii, isinf, isnan, math libs, long long & struct flock.
Add -Wno-error in this case to prevent these warnings being treated as errors.
Reported-by: Evan Hunter <evan@ozhiker.com>
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Otherwise install the shipped docs with a warning.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
via tcl::autocomplete
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Now it is possible to do: configure --full --disable-ssl
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Enough to make serial ports work and support raw and cooked input/output
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Needed when using linenoise line editing with utf-8 support
Note that variable width support is not yet added to linenoise
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
And update the shipped documentation
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Use the new pkg-config support in autosetup to search for certain
packages such as sqlite3 and sdl
|
|
Includes support for aliases in sub-interp
These are not identical to Tcl interp, but are conceptually very similar
For example:
set i [interp]
$i alias localcmd parentcmd arg1
$i eval { localcmd x }
Invokes: parentcmd arg1 x
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
And improve the tests
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Also, fix build if JIM_OPTIMIZATION is disabled
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Including documentation and tests
|
|
Example usage:
set s [socket stream.server 127.0.0.1:8443]
set c [[$s accept] ssl -server certificate.pem key.pem]
puts [$c gets]
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
If the underlying platform supports fsync(), $handle sync
invokes fsync() on the stream file descriptor.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Currently only on systems that support both hard and symbolic links.
Update docs for 'file link' and some other [file] commands
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Normally detected libraries are automatically added to $LIBS, but we
use $LDLIBS to build the list of libraries. So don't add these
libraries to $LIBS to avoid duplicates.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Use isinf() and isnan() when converting double to string
to ensure that the value is given canonical form.
And implement our own isinf and isnan if necessary
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
To avoid hash table collision attacks (n.runs-SA-2011.004)
Note that this options is *off* by default, but it is reasonable
to consider reversing this.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Creates a pair of bidirectional sockets with socketpair(2)
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Currently only for sockets since Jim Tcl does not support
bidirectional pipes.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
Reported-by: Paul Fertser <fercerpav@gmail.com>
|
|
|
|
With --disable-docs
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
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>
|