Age | Commit message (Collapse) | Author | Files | Lines |
|
Fixes #259
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Fixes #259
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
'vwait -signal done' should wait for variable 'done' to change
but instead waits for a variable '-signal' to changed.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Some stack frames may have no cmd (e.g. with eval).
Ensure that [stacktrace] still handles such frames by setting an
empty proc name in that case.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Sometimes it can be useful to provide an embedded interpreter
where introspection is not permitted.
This includes:
- info commands, procs, channels: only allow exact match, not glob pattern
- info frame: don't include cmd and proc in the returned dict
- info level: only return the command name, not the command arguments
- info body, args, statics: do not allow these to be called
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
if sin(), etc. aren't available, just build without math functions
unless --math is explicitly given
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Not in source files
See https://ariadne.space/2021/12/21/stop-defining-feature-test-macros-in-your-code/
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
The macro JIM_EMBEDDED was required to be defined before including
jim.h in applications that embed jimtcl.
This requirement has been dropped in 2010 with commit 2d8564100c86
("Documentation updates") but it's use has remained for longer and
it even re-appeared later in the examples.api.
Drop last instances of JIM_EMBEDDED.
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
|
|
json decoder is available since jimtcl 0.79, but the Makefile does
not remove the related object files during 'make clean'.
Add jsmn/*.o in the list of files to remove during 'make clean'.
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
|
|
Fixes #256
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Some tabs have crept into this file.
Expand to spaces for consistency.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
SSL is now enabled by default, but it is only a fatal error
if no libssl and --ssl is explicitly enabled.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
When this condition was caught, eval frame was incorrectly
popped even though it was never pushed.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Use wildcards when packaging libssl in case the version changes.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Previously dict with returned the new dict value.
Also fix an issue in the case where a dict element
mirrors the name of the dictionary.
Fixes: #241
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Uses a prefix to automatically map from subcommand to
implementation.
Includes support for namespace ensemble
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Now use --minimal and/or --without-ext to disable things.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Supports communication with redis as part of an event loop
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Instead of using all time, these commands now use a monotonically
increasing system timer so that they are not affected by time (e.g. ntp) adjustments.
(But not on Windows since it doesn't work reliably)
Fixes #240
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
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>
|