Age | Commit message (Collapse) | Author | Files | Lines |
|
Only procedures add a local proc context. Otherwise
it is not possible to use local/upcall in Tcl packages.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Rather than relying on setting JIMLIB in the Makefile.
Makes it easier to run individual tests manually.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
In particular, file join / anything
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
If a list elements contains unmatch ] brackets, use
backslash quoting instead of braces. This is what Tcl does.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Allows args and optional parameters in any location,
in addition to being smaller and faster.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Currently it depends on hash table ordering.
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>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Supports everything except floating point types
binary is implemented in Tcl on top of the low level [pack] and [unpack] commands
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Nested repeats can't really be handled properly, so remove
support since it breaks some non-nested cases.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Simplifies *, + and {n,m}, fixes some
broken cases and adds support for {n,m}?
Also fixes end-of-word match
Under some circumstances, repeats can now be nested.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Add a blank line after each error
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Also searching the initial part of the string
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
This caused a problem with quotes inside commands.
Rework the parsing to properly handle commands inside
quoted strings and quoted strings inside commands.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Previously different systems could produce different, valid results
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Support +?, *? and ??
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Allows previous command definitions to be invoked when
otherwise hidden via [local]
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>
|
|
Should eat spaces and tabs after the newline
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Remove Jim_SetWide() since it is only used by incr
More tests for better test coverage
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Also add additional tests
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
And add additional tests
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>
|
|
e.g. proc a {&b &c} ...
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
With this syntax: {args newname}.
This especially helps with documentation and error messages.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Some tests are already in tests/, move some others.
Move some examples to the examples directory
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
i.e. supports embedded nulls
Also now supports utf-8 trim chars
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Makes it easier to import Tcl tests
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Which doesn't support select() with no fds.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
So just disable this test
Reported-by: Paulo Ferreira <paf@keeh.net>
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
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>
|
|
Signed-off-by: Patrick WEBER <patrick.weber@live.com>
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
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>
|
|
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>
|
|
Allow tests to run with almost all features disabled
|
|
Especially simplifies checking for the existence of procs.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
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>
|