aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
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>
2010-11-19jim-regexp.c also needs jimautoconf.hSteve Bennett1-0/+1
Otherwise built-in regex impl. conflicts with externl regex Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-11-19Disable line editing on systems without termiosSteve Bennett2-10/+21
Reported-By: Spencer Oliver <ntfreak@users.sourceforge.net> Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-11-19tv_usec is in usec, not msecSteve Bennett1-1/+1
The consequence is an excessive amount of calls to select Reported-By: Patrick WEBER <patrick.weber@live.com> Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-11-19Avoid crash when references are disabledSteve Bennett1-0/+2
Reported-By: Patrick WEBER <patrick.weber@live.com> Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-11-19build: add configure.gnu to .gitignoreSpencer Oliver1-0/+1
configure.gnu is used by autoconf when using jimtcl as a subproject. so ignore what happens to this file. Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
2010-11-18built-in regexp was always being includedSteve Bennett1-0/+1
Even if disabled, the built-in regexp was still being used. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-11-17Bug fix: [regexp] single braced count was rejectedSteve Bennett2-5/+14
The form {n} should be considered the same as {n,n} Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-11-17Bug fix: [split] string with leading nullSteve Bennett2-2/+8
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-11-17Linenoise improvement for ^DSteve Bennett1-4/+13
Use default readline/bash behaviour of deleting char to the right, unless the line is empty. Then it is EOF. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-11-17For ctype macros, cast to unsigned charSteve Bennett4-16/+18
Instead of unsigned. Add UCHAR() macro for this. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-11-17Minor cleanupsSteve Bennett2-2/+0
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-11-17Fix a bug in [format]Steve Bennett1-6/+9
The buffer length could be wrong when printing numeric values Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-11-17Fix a regexec() bugSteve Bennett1-2/+2
An anchored search could use the wrong string Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-11-17Fix a bug in the UTF-8 implementation of string lastSteve Bennett1-1/+1
Indexing into the wrong string Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-11-17Updates to the UTF-8 documentationSteve Bennett3-22/+29
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-11-17Add utf-8 support to linenoise.cSteve Bennett1-171/+387
Plus general improvements, including: - Allow pasting newlines to linenoise. Use TCSADRAIN, not TCAFLUSH so that unused input is not flushed Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-11-17Add command line editing with linenoiseSteve Bennett5-34/+912
Enabled by default, but can be disabled with --disable-lineedit Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-11-17Update documentation to cover UTF-8 support for regexpSteve Bennett7-35/+251
Also create README.utf-8 Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-11-17Add UTF-8 support to regexpSteve Bennett10-466/+1871
Plus various ARE enhancements and bug fixes Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-11-17POSIX-compatible regex interfaceSteve Bennett7-542/+697
With some ARE extensions Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-11-17Add original version of regexp from JamSteve Bennett2-0/+1354
The intention is to update this version to support UTF-8 Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-11-17Add UTF-8 support to JimSteve Bennett26-1296/+24782
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-11-17Add attributions to jim-exec.c from Tcl 6.7Steve Bennett1-1/+6
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-11-17Add do-nothing targets for automake usersSteve Bennett1-0/+7
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-11-17[source] now opens the script file in text modeSteve Bennett1-6/+8
This allows scripts with CRLF line endings on (e.g.) cygwin to work without change. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-11-17build: fix cygwin build issueSpencer Oliver2-3/+12
Avoid windows.h on cygwin Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
2010-11-15Add --enable-{shared,static} to configure argsFlorian Fainelli2-0/+40
It is common to use --enable-{shared,static} to select a library flavour. --enable-shared is equivalent to --with-jim-shared. The default behavior of building a static library is kept. Signed-off-by: Florian Fainelli <florian@openwrt.org>
2010-11-11Add jim-config.h to .gitignoreSteve Bennett1-0/+1
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-11-11Some people still only have Tcl 8.4Steve Bennett1-1/+1
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-11-09Allow jim to be used as an autoconf subdirSteve Bennett19-15/+23
Ensure that no public headers include the autoconf header, jimautoconf.h, as it leads to problems with redefined symbols. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-11-08Don't hardcode /lib/jimSteve Bennett11-136/+63
Instead, set TCL_LIBRARY based on where jim is installed. This defaults to /usr/local (thus /usr/local/lib/jim), or can be modified with either configure or make. e.g. ./configure --prefix=/usr or make prefix=/usr install Now auto_path is initialised only to TCL_LIBRARY, and doesn't include "." which could be undesirable. At the same time, simplify jimsh initialisation using a script instead of C code. Add the path to the executable to auto_path. Also, no longer use JIM_TCL_COMPAT. Always use the tcl-compatible names, $auto_path and $tcl_interactive. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-11-03Autogenerate the command index in the documentationSteve Bennett4-5/+222
This was lost in the merge of the WorkWare fork Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-11-03Simplify and document [load]Steve Bennett3-92/+76
Previously both load and package require would search the library path to find the file to load. Simplify this by requiring an explicit path with load and have package require search the path. Also, document load and how it is used by package require. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-11-03Fix some problems with the packaging systemSteve Bennett2-36/+40
Loadable modules should be tried before script packages. If a script accidentally tried to require itself, infinite recursion resulted. It is a bad idea to name a script the same as an extension/package. Also, keep the package name off the stack. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-11-03Fix 'make test' from the jimtcl directorySteve Bennett1-3/+3
Clash with JIMSH definition Signed-off-by: Steve Bennett <steveb@workware.net.au> Reported-by: Kulcsár Ferenc <crusader@netbsd.hu
2010-11-02Fix 'make install' with no external extensionsSteve Bennett2-1/+13
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-10-30Don't search for libs that aren't requiredSteve Bennett2-66/+114
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-10-30Allow extensions to be built/installed as modulesSteve Bennett13-336/+1217
This includes C extensions and Tcl extensions Also adds windows support (mingw32 and cygwin) Now the sqlite*, readline and win32 extensions are supported Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-10-30Update documentation for recent featuresSteve Bennett2-28/+88
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-10-30Determine platform_tcl() settings with configureSteve Bennett6-2/+20
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-10-30Fix segfault with unix domain socketsSteve Bennett1-4/+4
Path argument was not being set. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-10-30Add aio '$handle filename'Steve Bennett1-0/+12
Retrieves the original filename Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-10-30Add 'info channels'Steve Bennett2-17/+33
Like 'chan names' from Tcl Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-10-30Make it easy to create release tarballsSteve Bennett1-0/+19
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-10-30Make everything depend on MakefileSteve Bennett1-0/+2
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-10-30Don't explicitly add -g to CPPFLAGSSteve Bennett1-1/+1
This allows building without debugging by setting CFLAGS either during configure or make. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-10-29Update version to 0.64Steve Bennett5-14/+17
Signed-off-by: Steve Bennett <steveb@workware.net.au>