Jim Tcl
Timeline
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

50 check-ins occurring around a1fd64bbcc67500c.

2018-07-08
12:36
exec: Fix environment for windows

The incorrect environment was used in 8f7471a0f

Signed-off-by: Steve Bennett <steveb@workware.net.au> check-in: 5d6623b385 user: steveb@workware.net.au tags: trunk

11:48
foreach: Avoid memory leak in case of error

Signed-off-by: Steve Bennett <steveb@workware.net.au> check-in: 569b3d59ce user: steveb@workware.net.au tags: trunk

11:48
exec: Better adhere to possible vfork restrictions

Avoid modification of any variables on the parents stack. Avoid use of stdio in the event that execve fails.

Signed-off-by: Steve Bennett <steveb@workware.net.au> check-in: fc4c80e31e user: steveb@workware.net.au tags: trunk

11:47
remove some unused variable assignments

Signed-off-by: Steve Bennett <steveb@workware.net.au> check-in: 6220fc5fc0 user: steveb@workware.net.au tags: trunk

01:49
build-jim-ext: Improvements when cross compiling, Tcl

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> check-in: 7c5bcde648 user: steveb@workware.net.au tags: trunk

01:17
linenoise.c: Minor update to fix compiler warning

Signed-off-by: Steve Bennett <steveb@workware.net.au> check-in: 81c9a5ae01 user: steveb@workware.net.au tags: trunk

00:42
aio: Fall back to stdio error if no ssl error

Conditions such as ECONNRESET may result in a failed ssl connection with no ssl error, so return the stdio error in this case rather than just "unknown SSL error"

Signed-off-by: Steve Bennett <steveb@workware.net.au> check-in: 5985f8c4d5 user: steveb@workware.net.au tags: trunk

00:42
aio: Always set error message on I/O error

Some operations that failed (such as read) would leave an empty error result.

Signed-off-by: Steve Bennett <steveb@workware.net.au> check-in: 35cbeebf78 user: steveb@workware.net.au tags: trunk

2018-07-05
03:02
expr: Fix compiler warning on older gcc

jim/jim.c: In function ‘SetExprFromAny’: jim/jim.c:9109:16: error: ‘top’ may be used uninitialized in this function [-Werror=maybe-uninitialized] expr->expr = top; ^ jim/jim.c:9075:25: note: ‘top’ was declared here struct JimExprNode *top;

Signed-off-by: Steve Bennett <steveb@workware.net.au> check-in: c9b57c7b2b user: steveb@workware.net.au tags: trunk

2018-07-01
00:55
Add release notes for v0.78 check-in: 1d37d7b8ed user: steveb tags: www
2018-06-30
23:57
Bump version to 0.78 Leaf check-in: 775c8a2b4d user: steveb@workware.net.au tags: trunk
07:24
oo: Fix 'methods' for superclasses

Methods inherited from a base class are created with alias, so they are not returned by 'info procs'. Need to use 'info commands' instead. check-in: 644e0639b5 user: steveb@workware.net.au tags: trunk

2018-06-07
21:13
jim.c: Allow Jim_WrongNumArgs() to accept NULL for msg

For consistency with Tcl

Reported-by: Stuart Cassoff <stwo@bell.net> Signed-off-by: Steve Bennett <steveb@workware.net.au> check-in: f971c9f700 user: steveb@workware.net.au tags: trunk

2018-06-03
06:18
jim.c: Jim_Length/Jim_String internal checks

Perform the same internal checks as Jim_GetString() when the string rep needs to be generated by calling Jim_GetString()

Reported-by: Stuart Cassoff <stwo@bell.net> Signed-off-by: Steve Bennett <steveb@workware.net.au> check-in: 876c29d3a8 user: steveb@workware.net.au tags: trunk

2018-03-25
00:47
linenoise: Update to support multiline mode.

Updated to: https://github.com/msteveb/linenoise/commit/ad5172e99520e2fe2a35b4bbd7fbc74d9df36df1

Now supports multiline mode (by setting $history::multiline to 1) Improved windows support

Signed-off-by: Steve Bennett <steveb@workware.net.au> check-in: 4f1592c24e user: steveb@workware.net.au tags: trunk

2018-01-18
01:01
expr: prevent stack overflow

Limit the depth of the expressions to a reasonable level to prevent stack overflow

Signed-off-by: Steve Bennett <steveb@workware.net.au> check-in: b878884ca8 user: steveb@workware.net.au tags: trunk

2018-01-01
03:42
linenoise: Add ^Z (SUSP) support

Signed-off-by: Steve Bennett <steveb@workware.net.au> check-in: ad3fb99587 user: steveb@workware.net.au tags: trunk

2017-12-31
01:47
utf8: Update UnicodeData.txt and EastAsianWidth.txt to 10.0.0

Signed-off-by: Steve Bennett <steveb@workware.net.au> check-in: 5386172c24 user: steveb@workware.net.au tags: trunk

01:47
utf8: Fix merging of adjacent wide character ranges

Adjacent wide character ranges were not being merged correctly, and the final range was not being output.

Fix this, and also merge adjacent combining character ranges.

Signed-off-by: Steve Bennett <steveb@workware.net.au> check-in: e4f3b0e5d4 user: steveb@workware.net.au tags: trunk

01:47
linenoise: Update to fix potential buffer overflow

From https://github.com/msteveb/linenoise/commit/a4545af5e3766c58100be6bf406b9a0d2049090f

Signed-off-by: Steve Bennett <steveb@workware.net.au> check-in: 29cb9ccf5a user: steveb@workware.net.au tags: trunk

01:47
utf8: Be more strict at rejecting invalid UTF-8 sequences.

RFC 3629 says:

Implementations of the decoding algorithm above MUST protect against decoding invalid sequences

Signed-off-by: Steve Bennett <steveb@workware.net.au> check-in: fd0eb63ebd user: steveb@workware.net.au tags: trunk

01:45
regexp: Implement class shorthand escapes in brackets

The following class shorthand escapes now match Tcl when used within bracket expressions:

\d [[:digit:]] \s [[:space:]] \w [[:alnum:]_] (note underscore)

e.g. [a-f\d] => [a-f0-9]

Previously these shorthand escapes were only implemented outside bracket expressions.

Signed-off-by: Steve Bennett <steveb@workware.net.au> check-in: aa2e5832cf user: steveb@workware.net.au tags: trunk

2017-12-02
09:51
jim.c: Various minor cleanups

Small improvements to code for clarity and code reduction. Improve comments.

Signed-off-by: Steve Bennett <steveb@workware.net.au> check-in: b8e69cbcb0 user: steveb@workware.net.au tags: trunk

2017-11-29
05:46
tests: clock.test needs cmd clock

Signed-off-by: Steve Bennett <steveb@workware.net.au> check-in: 4d96df65f9 user: steveb@workware.net.au tags: trunk

2017-11-26
22:14
build: Fix out-of-tree builds

Was broken by the support for --silent-rules

Signed-off-by: Steve Bennett <steveb@workware.net.au> check-in: 513bab2af8 user: steveb@workware.net.au tags: trunk

11:19
tests: Make the failing SIGPIPE tests go away on AppVeyor

Work around the problem by skipping the test

Signed-off-by: Steve Bennett <steveb@workware.net.au> check-in: a1fd64bbcc user: steveb@workware.net.au tags: trunk

07:43
build: Support --silent-rules

And enable silent rules by default if using GNU make.

Signed-off-by: Steve Bennett <steveb@workware.net.au> check-in: 87eb66b790 user: steveb@workware.net.au tags: trunk

07:43
Update autosetup to v0.6.7-17-gb5a0e85

Mostly for --{enable,disable}-silent-rules

Use new opt-str where appropriate

Signed-off-by: Steve Bennett <steveb@workware.net.au> check-in: cf03b3c80d user: steveb@workware.net.au tags: trunk

2017-11-25
06:52
tests: remove debugging from event.test

Signed-off-by: Steve Bennett <steveb@workware.net.au> check-in: f259d28a19 user: steveb@workware.net.au tags: trunk

00:33
tests: If ipv6 sockets can't be bound, don't test

This is a workaround for IPv6 tests failing on Travis

Signed-off-by: Steve Bennett <steveb@workware.net.au> check-in: 3d4d76de61 user: steveb@workware.net.au tags: trunk

2017-11-24
22:59
build: During install, make sure pkgconfig dir exists

Signed-off-by: Steve Bennett <steveb@workware.net.au> check-in: b87dad7d92 user: steveb@workware.net.au tags: trunk

2017-11-07
21:48
docs: Bring README.utf-8 up-to-date

Signed-off-by: Steve Bennett <steveb@workware.net.au> check-in: 18ba56fba7 user: steveb@workware.net.au tags: trunk

21:47
tclcompat.tcl: minor comment updates

Signed-off-by: Steve Bennett <steveb@workware.net.au> check-in: 92e4698aad user: steveb@workware.net.au tags: trunk

2017-11-04
09:16
interp: command should be created in the global namespace

Signed-off-by: Steve Bennett <steveb@workware.net.au> check-in: c6eab746a7 user: steveb@workware.net.au tags: trunk

09:16
tests: exec2-3.2 now passes on OpenBSD

Reported-by: Stuart Cassoff <stwo@bell.net> Signed-off-by: Steve Bennett <steveb@workware.net.au> check-in: 713502fb49 user: steveb@workware.net.au tags: trunk

2017-10-21
03:25
tests: Use a more explicit approach to test SIGPIPE

Write to a closed pipe in exec2-3.2 to force SIGPIPE

Signed-off-by: Steve Bennett <steveb@workware.net.au> check-in: b1f8a31bdc user: steveb@workware.net.au tags: trunk

02:49
aio: No need to create a new channel for ssl

Just "promote" the current channel to ssl

Signed-off-by: Steve Bennett <steveb@workware.net.au> check-in: 256d17bf10 user: steveb@workware.net.au tags: trunk

02:49
doc: Update remaining references to os.wait

Now simply 'wait'

Signed-off-by: Steve Bennett <steveb@workware.net.au> check-in: 6f79baf755 user: steveb@workware.net.au tags: trunk

02:37
file: __MSYS__ signifies windows too

Needed to make file join work with msys2

Signed-off-by: Steve Bennett <steveb@workware.net.au> check-in: 04d829652a user: steveb@workware.net.au tags: trunk

2017-10-16
21:51
tests: Try to fix exec2-3.2 on Windows

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> check-in: 010735d763 user: steveb@workware.net.au tags: trunk

21:39
signal, exec, wait, pid: improvements, especially to exec

- 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> check-in: da86539f12 user: steveb@workware.net.au tags: trunk

2017-10-15
23:53
jim: cmdPrivData needs to be saved and restored

If a C command invokes another C command (including indirectly), cmdPrivData was being changed but not restored check-in: 04fe854dc1 user: steveb@workware.net.au tags: trunk

23:00
after: Need to initialise 'ms'

Also fix a warning on Windows

Signed-off-by: Steve Bennett <steveb@workware.net.au> check-in: 459cf36faa user: steveb@workware.net.au tags: trunk

21:03
eventloop: remove leftover debugging

Signed-off-by: Steve Bennett <steveb@workware.net.au> check-in: 6dad0537c9 user: steveb@workware.net.au tags: trunk

21:00
eventloop: support sub-millisecond timer resolution

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> check-in: 43fab94694 user: steveb@workware.net.au tags: trunk

20:57
aio tempname: Fix a crash when the template is invalid

Signed-off-by: Steve Bennett <steveb@workware.net.au> check-in: 4d750fab2d user: steveb@workware.net.au tags: trunk

2017-09-22
03:53
scan: make some structure members const

Signed-off-by: Steve Bennett <steveb@workware.net.au> check-in: f859e0f23f user: steveb@workware.net.au tags: trunk

2017-09-21
06:40
examples/tip.tcl: Use 'writable' when sending output

Avoids situations where the output might block

Signed-off-by: Steve Bennett <steveb@workware.net.au> Leaf check-in: d0d277697e user: steveb@workware.net.au tags: trunk

06:40
configure: Remove reference to ensemble extension

It is not pushed to mainline yet.

Signed-off-by: Steve Bennett <steveb@workware.net.au> check-in: 4d2900cfd6 user: steveb@workware.net.au tags: trunk

06:34
configure: --with-mod and --with-ext allow commas

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> check-in: e6deea1782 user: steveb@workware.net.au tags: trunk