Age | Commit message (Collapse) | Author | Files | Lines |
|
Instead of unsigned. Add UCHAR() macro for this.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
The buffer length could be wrong when printing numeric values
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
An anchored search could use the wrong string
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Indexing into the wrong string
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
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>
|
|
Enabled by default, but can be disabled with --disable-lineedit
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Also create README.utf-8
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Plus various ARE enhancements and bug fixes
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
With some ARE extensions
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
The intention is to update this version to support UTF-8
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
This allows scripts with CRLF line endings on (e.g.) cygwin
to work without change.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Avoid windows.h on cygwin
Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
|
|
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>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
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>
|
|
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>
|
|
This was lost in the merge of the WorkWare fork
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
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>
|
|
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>
|
|
Clash with JIMSH definition
Signed-off-by: Steve Bennett <steveb@workware.net.au>
Reported-by: Kulcsár Ferenc <crusader@netbsd.hu
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
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>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Path argument was not being set.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Retrieves the original filename
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Like 'chan names' from Tcl
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
This allows building without debugging by setting
CFLAGS either during configure or make.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Provides a better error message on wrong args and allows
abbreviations.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
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>
|
|
Allows, e.g. -start end-4
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Need to set REG_NOTBOL on subsequent calls to regexec()
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
And implement 'array names' in terms of it
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
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>
|
|
Apparently tclsh does this. It is just [llength $argv]
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
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>
|