Age | Commit message (Collapse) | Author | Files | Lines |
|
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>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
This makes for cleaner output from a console session
and is compatible with earlier versions of Jim.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Makes it easier to browse the shipped version in the
source tree.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Per v0.51, don't refer to the FreeBSD licence
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
return JIM_ERR instead of JIM_OK.
|
|
In particular the C examples (now in examples.api/)
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
If a string ended in backslash-space, the trailing space was lost.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Redefining a link with upvar or global gave an error.
Trying to access a non-existent var via a link gave
the wrong error message.
Added Tcl upvar 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>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Especially for eCos, mingw32 and cygwin
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
With --with-jim-ext and --with-out-jim-ext
Also check dependencies and automatically disable extensions
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Remove Jim_PrintErrorMessage() and create Jim_MakeErrorMessage() instead.
Move errorInfo to stdlib since it is now required.
Also move lassign from tclcompat to stdlib as a core command.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
This also respects CFLAGS and LDFLAGS from configure
and allows them to be overriden on the make command line
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>
|
|
Helps to avoid overrunning stack
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
The optimisation for 'incr' should not use compare immediate
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Only show error on JIM_ERR from .jimrc
Also fixes to rlprompt.tcl so it can be used from .jimrc
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Always convert via a list. Makes for smaller code with no noticable
performance impact.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
A bit smaller and easier to understand
Move some common code to JimMakeScriptObj()
Also add JimWideValue() to access internal int value
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
This allows 'rename' etc. to work correctly and is smaller, simpler code
Also, read -nonewline is mutually exclusive with 'numChars'
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Reference counting issues
Also don't allow rename to an existing command (Tcl compatible)
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>
|
|
That is, tests which didn't fail but did not give the expected result
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Make the exec wait table allocated and per-interpeter
Use reentrant variants of some libc calls
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
All C extensions must call Jim_PackageProvide()
make-c-ext ensures that Tcl extensions call Jim_PackageProvide()
if compiled in.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Not Tcl compatible, but makes sense
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
A small change, but makes for a more natural interface
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
array get for odd length list now returns an error
comment fixes and small code rearrangement
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Also, switch to using 'sh -c' for the vfork() implementation
because it then allows command line redirection, pipes and
setting the environment.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|