Age | Commit message (Collapse) | Author | Files | Lines |
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
_fullpath isn't necessarily available, so check for it
symlink() isn't useful enough on Windows to use
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Version 0.82 modifies some public structs and functions, so
bump the ABI so that binary extensions built against
a previous version won't load.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
To break vwait if a handled signal is received.
In this case, the handled signal(s) can be returned by signal check ?-clear?
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Handles decimal times
Better formatting.
Still need to avoid duplication with bench.tcl
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
And make each test shorter but run for more iterations
Better output for short durations
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Based on TIP 527, but not 100% compatible
Needs documentation
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Returns a dictionary with file, line, cmd, (possibly) proc and level.
And support 'info frame 0' for the current command.
Note that now all evaluation frames are captured, not just call frames.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Allows for a specialised allocator or debugging allocator.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
No need to copy a char that will be overwritten in the next line.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
For compatibility when Jim is build without --compat
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
If the expression is a simple integer, use it as-is rather
than converting to an expression and evaluating.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Needs to be #if not #ifdef for 'decl' checks.
Otherwise build fails on systems without these.
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>
|
|
Since signals aren't supported there and we need signals for some
of these tests.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Go through the Jim versions where it makes sense so we can add debugging
or other features as required.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
The Appveyor build generates this otherwise:
In function 'Jim_WhileCoreCommand',
inlined from 'Jim_WhileCoreCommand' at jim.c:12096:12:
jim.c:12109:12: warning: 'boolean' may be used uninitialized [-Wmaybe-uninitialized]
12109 | if (!boolean)
| ^
jim.c: In function 'Jim_WhileCoreCommand':
jim.c:12105:13: note: 'boolean' was declared here
12105 | int boolean, retval;
| ^~~~~~~
|
|
Rather than continuing to use a small buffer for large copies,
if the size exceeds a certain threshold (currently 16kB) switch
to a larger, allocated buffer (currently 64kB).
This should speed up large copies without penalising small copies.
Note that these are simply heuristics and may not be appropriate
on all systems.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Fixes #91
|
|
Jimtcl dropped the file configure.ac with commit 2ffa2eee88f3
("Remove obsolete configure.ac") in 2011, but this caused a build
failure when jimtcl is used as submodule by OpenOCD.
Instead of fixing the obsoleted path in OpenOCD's configure.ac, a
patch to add a dummy configure.ac was merged in jimtcl with commit
142edb4e35a90 ("Re-add a dummy configure.ac for automake").
The resulting setup still has issues, as running 'autoremake -f'
in OpenOCD folder causes autoconf to replace jimtcl configure file
with an incorrect file generated from the dummy configure.ac .
OpenOCD release v0.12.0 includes a fix that makes useless the
dummy configure.ac in jimtcl: https://review.openocd.org/7437/
("configure.ac: fix check for jimtcl submodule").
Drop the dummy configure.ac .
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
|
|
$classname is not accessible, so use [info level 0]
Fixes #248
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Improve the check for an object that exists only in the command table with
reference count of one. The object being checked needs to be the same object
as the one in the command table. And also objects of type reference can
be in the command table so check those too.
Fixes #245
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
These tests provoke the issues raised in #245 plus
some additional issues.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
On some systems, 1024 isn't enough so use PATH_MAX if available.
Fixes: #247
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
The end of word check was wrong and return true when it should not.
Fixes #246
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
|
|
So don't try to find them as functions
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Fixes an apparent typo in d6edb1347713f002a8f1e61c585583b3b1c37394
|
|
Some systems need a little extra time for the child process
to start and acquire the lock.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Dictionary lookups with simple integers are more efficient
than with "node<integer>"
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
http://unicode.org/Public/UNIDATA/UnicodeData.txt
http://unicode.org/Public/UNIDATA/EastAsianWidth.txt
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
ifdef out some unix-only code so that we don't get
compiler complaints on Windows.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
file executable doesn't do anything useful on Windows
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Document changes since 0.81 and add documentation for new
filename return for sockets.
Internal version is now 0.82 in preparation for (eventual) 0.82
release.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
For socket types that take an address, it would be useful to return
that with 'filename'. If not, we can continue to return the
socket type.
|
|
$handle filename will now return the replica filename
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
There are very few posix platforms where fork isn't available.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
For linenoiseWithInitial() and word-forward, word-backward
And add README.linenoise
https://github.com/msteveb/linenoise/commit/d26a12bc449102c9b50a7623afe5559747eb291e
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
On platforms where using vfork emits a warning, use fork instead
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Based on http://msteveb.github.io/autosetup/articles/handling-cflags/
using autosetup 0.7.1
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Very similar to Tcl except that read/write can't be done until
writable indicates the socket is connected.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
Documentation fixes -
Co-authored-by: Adrian Ho <the.gromgit@gmail.com>
|
|
Now a default constructor is created, as an alias for defaultconstrutor.
The constructor is passed the arguments to new and by default
this accepts a dictionary that is checked for valid instance variables and sets them.
However the constructor can be replaced by one that takes arbitrary arguments.
Thus we can how have:
a new -optiona -optionb
And the constructor is invoked with arguments '-optiona -optionab'.
This makes object initialisation more flexible.
** Note: This is an incompatible change if you have classes with a constructor
and you create object instances with new <dict>.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
Documentation fixes -
Co-authored-by: Adrian Ho <the.gromgit@gmail.com>
|