- Jan 21, 2021
-
-
Steve Bennett authored
Signed-off-by:
Steve Bennett <steveb@workware.net.au> Reported-by:
D. Bohdan <dbohdan@dbohdan.com>
-
- Jan 10, 2021
-
-
Steve Bennett authored
jim.h now includes JIM_ABI_VERSION that should be incremented whenever the ABI changes. Then all loadable modules should call Jim_CheckAbiVersion() to make sure they are loaded against the correct version. Add Jim_PackageProvideCheck() that does both Jim_CheckAbiVersion() and Jim_PackageProvide() to simplify the implementation of loadable extensions. Also rename the "big" sqlite3 extension to just sqlite to avoid a naming conflict with the smaller jim-sqlite3 extension. Signed-off-by:Steve Bennett <steveb@workware.net.au>
-
D. Bohdan authored
-
- Jan 09, 2021
-
-
Steve Bennett authored
Also add some additional tools that use xtrace. examples/jcov - code coverage examples/jtime - code coverage that measures execution time examples/jtrace - trace script execution Signed-off-by:Steve Bennett <steveb@workware.net.au>
-
Steve Bennett authored
Allows a debugger or tracing facility to be implemented Signed-off-by:Steve Bennett <steveb@workware.net.au>
-
- Jan 06, 2021
-
-
Steve Bennett authored
If no 'check' is provided, we assume that the checks passed. If pkg-config is specified, but no other check, use 'check false' to ensure the module is disable if the pkg-config checks don't pass. Also travis now does 'make all' so that any module extensions are also built, and add a dependency on libhiredis-dev to test building the redis extension. Signed-off-by:Steve Bennett <steveb@workware.net.au>
-
Steve Bennett authored
To build all non-default extensions as modules if prerequisites are met. Also move the extension help out of the main help since it is quite long and show it with --extinfo. Now extension help is generated from $extdb to avoid the help and the module configuration becoming out of sync. Signed-off-by:Steve Bennett <steveb@workware.net.au>
-
- Jan 03, 2021
-
-
Steve Bennett authored
Make sure we don't break the bootstrap jimsh Also build with --maintainer to check for assertion failures and reference count issues. Signed-off-by:Steve Bennett <steveb@workware.net.au>
-
Steve Bennett authored
In order to test bootstrap jimsh, it is very helpful if it can pass all the unit tests. - Set tcl_platform(bootstrap) to 1 for bootstrap jimsh or 0 otherwise - Use getref to determine in we have references, not ref since we implement a poor-man's ref for bootstrap jimsh - bootstrap jimsh package doesn't return a "Can't load package" message if loading the package fails - exec tests using [open |command] need pipe - bootstrap jimsh can't set file times with [file mtime] Signed-off-by:Steve Bennett <steveb@workware.net.au>
-
- Jan 02, 2021
-
-
Steve Bennett authored
When boolean parsing was combined in commit 982ec4f5 it broken parsing of boolean values in expressions that weren't standalone. e.g. expr {true} was fine, but expr {true ? 4 : 5} was not. Signed-off-by:
Steve Bennett <steveb@workware.net.au>
-
Steve Bennett authored
In order for make-bootstrap-jim to reliably match #ifndef...JIM_BOOTSTRAP with the corresponding #endif, a corresponding comment needs to be added after the #endif Signed-off-by:Steve Bennett <steveb@workware.net.au>
-
Steve Bennett authored
Add this depenency to avoid issues with parallel builds Signed-off-by:Steve Bennett <steveb@workware.net.au>
-
Steve Bennett authored
v0.7.0-3-g35b88dc Signed-off-by:Steve Bennett <steveb@workware.net.au>
-
- Jan 01, 2021
-
-
Steve Bennett authored
Requires a truetype font file Signed-off-by:Steve Bennett <steveb@workware.net.au>
-
Steve Bennett authored
Add example of integrating SDL event loop and the Tcl event loop Signed-off-by:Steve Bennett <steveb@workware.net.au>
-
Steve Bennett authored
And add: - poll ?script? - optional window title Signed-off-by:Steve Bennett <steveb@workware.net.au>
-
Steve Bennett authored
Now we only support using pkg-config to find SDL, and prefer SDL2 over SDL. For compatibility between versions, the render surface is now cleared on flip. And closing the window now results in a JIM_EXIT return code from flip. Also supports [sdl clear] to clear the background to a given colour. Signed-off-by:Steve Bennett <steveb@workware.net.au>
-
- Dec 27, 2020
-
-
Steve Bennett authored
Signed-off-by:Steve Bennett <steveb@workware.net.au>
-
- Dec 26, 2020
-
-
Steve Bennett authored
For speed and size, since it shares a lot of the same code with catch Signed-off-by:Steve Bennett <steveb@workware.net.au>
-
Steve Bennett authored
It is convenient to be able to do just: loop i 5 { body } Where the start value is 0. Signed-off-by:Steve Bennett <steveb@workware.net.au>
-
Steve Bennett authored
Signed-off-by:Steve Bennett <steveb@workware.net.au>
-
Steve Bennett authored
This means that instead of just [list index 2+1], we can now do [list index end-$n*2+1] This applies to: lindex, linsert, lreplace, lset, lrange, lsort, regexp, regsub string index,first,last,range Also add tests for both direct integer expressions and indexes. Still needs doc update. Signed-off-by:Steve Bennett <steveb@workware.net.au>
-
Steve Bennett authored
This means that $variable references and [commands] are not expanded. This should mitigate security concerns when using the 'integer expression' feature. It means that you must do: string repeat a $i*4 Not: string repeat a {$i*4} Signed-off-by:Steve Bennett <steveb@workware.net.au>
-
Steve Bennett authored
For convenience, many commands now accept integer expressions rather than only simple integers. These are: loop, range, incr, string repeat, lrepeat, pack, unpack, rand This simplifies many cases where previously expr {} or $() was required. e.g. foreach i [range 4+1 2*$b] { ... } string repeat 2**$n a Signed-off-by:Steve Bennett <steveb@workware.net.au>
-
Steve Bennett authored
This reverts commit 6b287b9c . These are needed for reference counting. Signed-off-by:
Steve Bennett <steveb@workware.net.au>
-
- Dec 14, 2020
-
-
Steve Bennett authored
A command may return NULL, but set an error (e.g. Server closed the connection). In this case, make sure to return the error. Signed-off-by:Steve Bennett <steveb@workware.net.au>
-
Steve Bennett authored
These stored the currently executing proc args and body (the same as are available via info args and info body), but were never used anywhere. Signed-off-by:Steve Bennett <steveb@workware.net.au>
-
- Dec 11, 2020
-
-
Steve Bennett authored
It is especially convenient to add -1 for something like: lindex $list end-$BACK-1 or: string range $str $p $p+$len-1 Signed-off-by:Steve Bennett <steveb@workware.net.au>
-
Antonio Borneo authored
If the build host doesn't have neither jimsh nor tclsh installed, during 'configure' the autosetup will build 'autosetup/jimsh0' inside the source tree. This happens also when out-of-tree build is used. Making dirty the source tree during out-of-tree build causes applications that use jimtcl as submodule (e.g. OpenOCD) to fail at 'make distcheck'. Modify 'autosetup-find-tclsh' to build 'jimsh0' in the current folder. For jimtcl project it would be the root of the source tree or the root of the out-of-tree build. Update 'Makefile.in' to search for 'jimsh0' in the new path during 'distclean'. Reported-by:
Paul Fertser <fercerpav@gmail.com> Signed-off-by:
Antonio Borneo <borneo.antonio@gmail.com>
-
- Nov 30, 2020
-
-
Antonio Borneo authored
The working directory is not fully cleaned-up and remains dirty after 'make distclean'. Add file examples.api/Makefile in the list of files to remove during 'make distclean'. Signed-off-by:Antonio Borneo <borneo.antonio@gmail.com>
-
Antonio Borneo authored
When building in-tree, the generated file is not ignored and the tree appears as dirty. Add the generated file to .gitignore. Signed-off-by:Antonio Borneo <borneo.antonio@gmail.com>
-
- Nov 16, 2020
-
-
Steve Bennett authored
Add support for comments in expressions Signed-off-by:Steve Bennett <steveb@workware.net.au>
-
Steve Bennett authored
Fixes #183 Reported-by:
Stuart Cassoff <stwo@bell.net> Signed-off-by:
Steve Bennett <steveb@workware.net.au>
-
- Nov 15, 2020
-
-
Steve Bennett authored
Using the hiredis client library. Synchronous API only. Signed-off-by:Steve Bennett <steveb@workware.net.au>
-
Steve Bennett authored
Add Jim_CreateScriptFileHandler() to create a standard script filehandler event that evaluates the given script with Jim_EvalObjBackground() when the event occurs. Also add Jim_FindFileHandler() to find a registered event handler. Simplify aio by using these. Signed-off-by:Steve Bennett <steveb@workware.net.au>
-
- Nov 14, 2020
-
-
Steve Bennett authored
Signed-off-by:Steve Bennett <steveb@workware.net.au>
-
Steve Bennett authored
Ensure that 'info complete' returns 0 for a script is missing the end quote such as "abc$def Fixes #181 Signed-off-by:Steve Bennett <steveb@workware.net.au>
-
Steve Bennett authored
Using 'close w' with an ssl socket doesn't really work because this is done only on the underlying socket. Signed-off-by:Steve Bennett <steveb@workware.net.au>
-
Steve Bennett authored
Fixes: #182 Signed-off-by:Steve Bennett <steveb@workware.net.au>
-
- Nov 09, 2020
-
-
Steve Bennett authored
It is not portable to connect to 0.0.0.0, expecting this to the same as connecting to localhost/127.0.0.1, and the same for IPv6. So explicitly connect to 127.0.0.1 or [::1] Fixes #180 Signed-off-by:Steve Bennett <steveb@workware.net.au>
-