aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2017-11-25tests: If ipv6 sockets can't be bound, don't testSteve Bennett1-2/+15
This is a workaround for IPv6 tests failing on Travis Signed-off-by: Steve Bennett <steveb@workware.net.au>
2017-11-25build: During install, make sure pkgconfig dir existsSteve Bennett1-0/+1
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2017-11-08docs: Bring README.utf-8 up-to-dateSteve Bennett1-12/+15
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2017-11-08tclcompat.tcl: minor comment updatesSteve Bennett1-3/+4
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2017-11-04interp: command should be created in the global namespaceSteve Bennett1-1/+1
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2017-11-04tests: exec2-3.2 now passes on OpenBSDSteve Bennett1-3/+3
Reported-by: Stuart Cassoff <stwo@bell.net> Signed-off-by: Steve Bennett <steveb@workware.net.au>
2017-10-21tests: Use a more explicit approach to test SIGPIPESteve Bennett1-2/+8
Write to a closed pipe in exec2-3.2 to force SIGPIPE Signed-off-by: Steve Bennett <steveb@workware.net.au>
2017-10-21aio: No need to create a new channel for sslSteve Bennett2-21/+12
Just "promote" the current channel to ssl Signed-off-by: Steve Bennett <steveb@workware.net.au>
2017-10-21doc: Update remaining references to os.waitSteve Bennett5-5/+5
Now simply 'wait' Signed-off-by: Steve Bennett <steveb@workware.net.au>
2017-10-21file: __MSYS__ signifies windows tooSteve Bennett1-1/+1
Needed to make file join work with msys2 Signed-off-by: Steve Bennett <steveb@workware.net.au>
2017-10-17tests: Try to fix exec2-3.2 on WindowsSteve Bennett1-2/+2
On some mingw platforms exec2-3.2 isn't producing SIGPIPE Try to make it do so. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2017-10-17signal, exec, wait, pid: improvements, especially to execSteve Bennett19-768/+845
- 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>
2017-10-16jim: cmdPrivData needs to be saved and restoredSteve Bennett1-0/+3
If a C command invokes another C command (including indirectly), cmdPrivData was being changed but not restored
2017-10-16after: Need to initialise 'ms'Steve Bennett1-1/+3
Also fix a warning on Windows Signed-off-by: Steve Bennett <steveb@workware.net.au>
2017-10-16eventloop: remove leftover debuggingSteve Bennett1-2/+0
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2017-10-16eventloop: support sub-millisecond timer resolutionSteve Bennett2-33/+48
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>
2017-10-16aio tempname: Fix a crash when the template is invalidSteve Bennett1-2/+2
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2017-09-22scan: make some structure members constSteve Bennett1-2/+2
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2017-09-21examples/tip.tcl: Use 'writable' when sending outputSteve Bennett1-7/+39
Avoids situations where the output might block Signed-off-by: Steve Bennett <steveb@workware.net.au>
2017-09-21configure: Remove reference to ensemble extensionSteve Bennett1-1/+0
It is not pushed to mainline yet. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2017-09-21configure: --with-mod and --with-ext allow commasSteve Bennett1-6/+17
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>
2017-09-21configure: Improve module selectionSteve Bennett2-15/+26
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>
2017-09-21auto.def: tclprefix should not be enabled by defaultSteve Bennett1-1/+1
It is listed as not enabled by default, but it is enabled by default Signed-off-by: Steve Bennett <steveb@workware.net.au>
2017-09-21prefix.test: Use the correct package nameSteve Bennett1-1/+1
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2017-09-21tcltest: Support 'needs package xxx'Steve Bennett1-0/+6
Makes it easy to skip all tests if the package isn't available Signed-off-by: Steve Bennett <steveb@workware.net.au>
2017-09-21tcl::prefix: respect -message when no valid optionsSteve Bennett1-4/+4
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2017-09-21jim.c: minor code cleanups in [switch]Steve Bennett1-24/+16
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2017-09-16perf: cache the result of successful subcmd lookupSteve Bennett1-0/+27
Speeds up jim-subcmd commands such as array, clock, file, aio Signed-off-by: Steve Bennett <steveb@workware.net.au>
2017-09-16remove special regexpValue internal repSteve Bennett2-11/+10
To avoid an explosion of different internal rep structures, simply use the existing ptrIntValue for jim-regexp Signed-off-by: Steve Bennett <steveb@workware.net.au>
2017-09-16Simplify error reporting in jim-subcmdSteve Bennett1-13/+4
Make use of Jim_SetResultFormatted() Signed-off-by: Steve Bennett <steveb@workware.net.au>
2017-09-16perf: cache successful Jim_GetEnum() resultsSteve Bennett2-3/+39
When Jim_GetEnum() succeeds, cache the result in the object to speed up subsequent identical calls to Jim_GetEnum() Signed-off-by: Steve Bennett <steveb@workware.net.au>
2017-09-16defer: fast lookup existence of $jim::deferSteve Bennett1-2/+9
This speeds up call frame destruction in the common case that $jim::defer does not exist. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2017-09-15Implement defer, $jim::deferSteve Bennett5-8/+325
Allows commands to run when a proc or interpreter exits. If the $jim::defer variables exists at proc or interp exit, it is treated as a list of scripts to evaluate (in reverse order). The [defer] command is a helper to add scripts to $jim::defer See tests/defer.test Signed-off-by: Steve Bennett <steveb@workware.net.au>
2017-09-15docs: Update documentation for recent changesSteve Bennett1-3/+13
Add aio sockopt Add history completion Remove aio tcp_nodelay Signed-off-by: Steve Bennett <steveb@workware.net.au>
2017-09-15history: Add autocompletion supportSteve Bennett4-18/+72
With 'history completion <cmd>' Signed-off-by: Steve Bennett <steveb@workware.net.au>
2017-09-15aio: Add support for many socket optionsSteve Bennett1-15/+100
Add aio sockopt to get and set various socket options via setsockopt()/getsockopt() And remove 'aio tcp_nodelay' in favour of 'aio sockopt tcp_nodelay' Signed-off-by: Steve Bennett <steveb@workware.net.au>
2017-09-15eventloop: return from callback is not an errorSteve Bennett1-2/+3
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2017-09-13docs: Remove Last Modified footer - take 2Steve Bennett2-2/+2
More reliable way to remove the footer Reported-by: Bernhard M. Wiedemann <bwiedemann@suse.de> Signed-off-by: Steve Bennett <steveb@workware.net.au>
2017-09-13docs: Remove Last Modified footerSteve Bennett2-3/+3
For reproducible builds Reported-by: Bernhard M. Wiedemann <bwiedemann@suse.de> Signed-off-by: Steve Bennett <steveb@workware.net.au>
2017-09-01tests: binary tests require pack on jimSteve Bennett1-0/+3
Avoid failing many tests if binary.tcl is available put pack isn't enabled. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2017-09-01Support lambda even if references are disabledSteve Bennett3-3/+10
It's convenient to support a non-gc lambda, even if references are disabled. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2017-08-27tests/timer.test: Remove timer-6.5Steve Bennett1-10/+1
This test is essentially the same as timer-6.4 except with tighter timing requirements. Remove it to prevent spurious failures. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2017-08-27tests/exec.test: Minor fix for exec-12.1 on hurdSteve Bennett1-1/+1
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2017-08-18sqlite3: Fix build scriptSteve Bennett1-1/+1
sqlite3/build-ext now needs to use autosetup-find-tclsh Signed-off-by: Steve Bennett <steveb@workware.net.au>
2017-08-11expr: remove leftover debugging printfSteve Bennett1-1/+0
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2017-08-07jim: Fix ref count issue with dict-substSteve Bennett1-1/+11
When a dict-subst object is duplicated, ref counts need to be adjusted. Reported-by: Ryan Whitworth <me@ryanwhitworth.com> Signed-off-by: Steve Bennett <steveb@workware.net.au
2017-08-07expr: Fix refcount issue converting invalid booleanSteve Bennett2-6/+17
Reported-by: Ryan Whitworth <me@ryanwhitworth.com> Signed-off-by: Steve Bennett <steveb@workware.net.au>
2017-08-07expr: Check for missing operand to operatorSteve Bennett2-0/+19
Reported-by: Ryan Whitworth <me@ryanwhitworth.com> Signed-off-by: Steve Bennett <steveb@workware.net.au>
2017-08-03tree: Allow nodes to be deletedSteve Bennett2-0/+39
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2017-08-03Error on extra characters after close braceSteve Bennett3-6/+23
In scripts, like Tcl does. Signed-off-by: Steve Bennett <steveb@workware.net.au> Reported-by: tcler.yin