aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2011-04-21Add some tcltest v2 supportSteve Bennett1-6/+44
Makes it easier to import Tcl tests Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-04-21Add additional tcl_platform() settingsSteve Bennett1-0/+14
For better Tcl compatibility, add byteOrder, threaded, pointerSize, wordSize Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-04-14Support 'jimsh --version'Steve Bennett1-0/+5
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-04-13Update configureSteve Bennett1-9/+9
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-04-13Update README, LICENCE and version in configure.acSteve Bennett3-95/+78
Bring this information somewhat up-to-date. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-04-12Fix [for] crash if loop var is unsetSteve Bennett2-1/+12
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-04-08Fix some minor warnings on mingw32Steve Bennett1-3/+3
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-04-08Fix a compile error when the debug command is enabledSteve Bennett1-1/+1
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-04-08Update linenoise to the latest versionSteve Bennett3-134/+301
From https://github.com/msteveb/linenoise with minor changes. - Optimise common insert/remove char cases - Add completion framework (unused in Jim Tcl) Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-04-08Add linenoise support for ^LSteve Bennett1-0/+18
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-04-05Better line editing on serial terminalsSteve Bennett1-10/+56
If TIOCGWINSZ doesn't work, try to query the window width with escape sequences. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-04-05Fix line editing when columns unavailableSteve Bennett1-1/+1
Sometimes TIOCGWINSZ succeeds but returns columns=0 This makes line editing work rather badly. If this occurs, just behave as though TIOCGWINSZ had failed and assume 80 columns. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-04-05Better support for eventloop on mingw32Steve Bennett2-48/+69
Which doesn't support select() with no fds. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-04-05Bump version to 0.71Steve Bennett1-1/+1
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-01-26scan fails with strings containing nulls0.70Steve Bennett2-14/+33
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-01-24Jim 'string is' doesn't work with unicodeSteve Bennett1-1/+1
So just disable this test Reported-by: Paulo Ferreira <paf@keeh.net> Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-01-24Use snprintf() to avoid buffer overflowSteve Bennett1-3/+3
The only real potential overflow is parsing a bogus unix domain socket path. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-01-21Still need to check for fork() for os.forkSteve Bennett3-2/+5
Even though fork is no longer needed by exec, it is still needed by os.fork Reported-by: Paulo Ferreira <paf@keeh.net> Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-12-21Update documentation for new 0.70 featuresSteve Bennett3-324/+324
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-12-21Bump version to 0.70Steve Bennett1-1/+1
In preparation for the next release Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-12-21Minor compiler warning fixesSteve Bennett3-7/+12
Also, don't define _XOPEN_SOURCE if already defined Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-12-21More constraint improvementsSteve Bennett4-10/+14
2010-12-21All Jim source should include jimautoconf.hSteve Bennett17-4/+19
This ensures that everything picks up the autoconf settings
2010-12-21Convert infinity to InfSteve Bennett1-0/+6
Signed-off-by: Patrick WEBER <patrick.weber@live.com>
2010-12-16autoconf already provides srcdir, so use itSteve Bennett3-13/+9
2010-12-16Use the new Jim_EvalObjPrefix() for 'file copy'Steve Bennett1-10/+1
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-12-16Implement 'tree' in terms of 'oo'Steve Bennett4-208/+103
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-12-16Add a pure-TCl OO implementation to JimSteve Bennett6-6/+493
And document the OO extension in README.oo Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-12-15Fix an object sharing bug for arraysSteve Bennett3-11/+62
Commands which modify variables in place such as append, lappend, incr and lset did not correctly account for modifying a shared array through an array element (dict sugar). Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-12-15Fix for right-to-left associativity of ternary operatorSteve Bennett3-10/+175
Signed-off-by: Patrick WEBER <patrick.weber@live.com> Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-12-15Use vfork() instead of fork() in [exec]Steve Bennett5-261/+91
This allows systems with vfork() but not fork() to have a full exec implementation, including constructs such as 2>@1 and background exec with & Also remove the --disable-fork option. It doesn't really make sense now since exec uses vfork Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-12-14Platform differences for regexp messagesSteve Bennett1-4/+4
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-12-14Fix constraint checkingSteve Bennett3-6/+10
This was completely wrong. The arg order was wrong such that when test constraints were specifed the test was always skipped! Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-12-14Include all double colons as part of the var nameSteve Bennett2-5/+13
e.g. $::a::b is considered as ${::a::b} This helps be more Tcl compatible by allowing fake namespace variables Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-12-06Make tclcompat work without aioSteve Bennett1-22/+23
This is an unusual case, but useful for testing Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-12-06Add more dependencies for testsSteve Bennett13-9/+32
Allow tests to run with almost all features disabled
2010-12-06Fix error message from [cd]Steve Bennett1-1/+1
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-12-06Don't require tclsh for building without utf-8Steve Bennett3-12/+18
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-12-05Improve autoconf definition of AR, RANLIBSteve Bennett3-13/+192
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-12-02Improve performance of info procs,commandsSteve Bennett1-0/+22
In the case where a single proc/command is being checked. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-12-02Add the [exists] commandSteve Bennett4-12/+162
Especially simplifies checking for the existence of procs. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-12-02Fix memory leak with filenamesSteve Bennett1-7/+11
Under some circumstances, source filenames were being leaked. Use shared strings consistently for filenames. Signed-off-by: Steve Bennett <steveb@workware.net.au> Reported-By: Piotr Esden-Tempski <piotr@esden.net>
2010-11-28Bug fix: regexp should not treat \n as |Steve Bennett2-4/+7
Remove a "feature" in the built-in regexp, where a newline in the pattern was treated as alternation, like |. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-11-26Bug fix: crash parsing invalid dict sugarSteve Bennett2-4/+17
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-11-24Add support for [dict] size, merge, withSteve Bennett5-3/+275
Implement 'dict with' and 'dict merge' as scripts since this is simpler. Use 'dict size' to implement 'array size' Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-11-24Remove the bio extension and add 'copyto' to aio.Steve Bennett10-507/+680
The bio extension is a hangover from TinyTcl. Since Jim supports binary strings, there isn't much need for it except for 'bio copy'. So move this to aio as 'copyto' and implement 'file copy' in terms of it. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-11-22install: fix problem when build != src dir when installing README.extensionsØyvind Harboe1-1/+1
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2010-11-22Overhaul unit test frameworkSteve Bennett51-347/+392
Much closer to tcltest now, including constraints. Try to get all appropriate tests running under both Jim and Tcl. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-11-19Better Tcl compatibility for [lrepeat]Steve Bennett2-8/+10
With zero count and also with no list elements Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-11-19Allow Jim_InteractivePrompt() to return [exit] to callerSteve Bennett2-7/+7
And update jimsh return code handling Reported-By: Patrick WEBER <patrick.weber@live.com> Signed-off-by: Steve Bennett <steveb@workware.net.au>