aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
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>
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>