aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
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>
2010-10-20Small fixes to make FreeBSD happy0.63Steve Bennett3-6/+6
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-10-20Mark some more static data as constSteve Bennett2-4/+4
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-10-20Switch regexp/regsub to use Jim_GetEnum()Steve Bennett2-60/+82
Provides a better error message on wrong args and allows abbreviations. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-10-20Fix some outlier issues with regexp/regsubSteve Bennett3-594/+671
Use number of paren expressions with regexp -inline Fix a problem with regexp -start and an anchored search Fix regexp -inline -indices Fix regexp matching with an empty pattern (e.g. ^) Fix some cases where regsub -all did not return all results Fix some regsub cases with an empty pattern Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-10-20Allow regexp/regsub -start to be an indexSteve Bennett1-4/+11
Allows, e.g. -start end-4 Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-10-20Fix regexp -all -line with an anchored searchSteve Bennett1-3/+5
Need to set REG_NOTBOL on subsequent calls to regexec() Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-10-20Declare some internal functions staticSteve Bennett2-19/+19
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-10-20Document dict keys and lsort -indexSteve Bennett2-3/+39
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-10-20Add support for 'dict keys'Steve Bennett3-27/+41
And implement 'array names' in terms of it Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-10-20Add support for lsort -indexSteve Bennett2-43/+283
Also bring in some lsort tests from Tcl Also allow lsort to be reentrant (but not thread safe) Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-10-20Set $argc in jimshSteve Bennett3-1/+15
Apparently tclsh does this. It is just [llength $argv] Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-10-20Fix a parse error on trailine newlineSteve Bennett1-6/+3
If a script contain [ with a trailing backslash, the parser would crash. e.g. . list [split \ Signed-off-by: Steve Bennett <steveb@workware.net.au>