aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
7 daysdocs: update docs to use auto-numbered listsHEADmasterSteve Bennett1-96/+96
Signed-off-by: Steve Bennett <steveb@workware.net.au>
7 daysdocs: support auto-numbered lists in docsSteve Bennett1-0/+8
When merging different branches it is annoying that numbered lists have to have consecutive numbers for asciidoc. So allow for auto-numbered lists to make this merging easier. Signed-off-by: Steve Bennett <steveb@workware.net.au>
8 daysdict set/unset: ensure dicts modified via dict sugar are unsharedSteve Bennett1-2/+2
Fixes #338
2025-02-24Use PATH_MAX if it existsSteve Bennett3-12/+8
Previously this was done in jim-file.c but no jim-aio.c Move to jimiocompat.h so it is done everywhere. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2025-02-12build: win32: fix install of `build-jim-ext`Evgeniy Naydanov2-3/+5
When building for Windows like: ``` > ./configure \ --host=x86_64-w64-mingw32 \ --build=x86_64-linux-gnu \ --disable-ssl \ --minimal > make -j install DESTDIR=${PWD}/install ``` The following error is encountered: ``` cp build-jim-ext <PWD>/install/usr/local/bin cp: cannot stat 'build-jim-ext': No such file or directory ``` The suggested fix changes `buildjimext` variable in `auto.def` to a define and copies `build-jim-ext` only if the define is set. Signed-off-by: Evgeniy Naydanov <evgeniy.naydanov@syntacore.com>
2025-02-07tcltest: Support any Tcl version >= 8.5Steve Bennett1-2/+2
Useful for comparing test results on (e.g.) Tcl 9.0 Signed-off-by: Steve Bennett <steveb@workware.net.au>
2025-02-07docs: document aio translationSteve Bennett1-1/+8
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2025-02-07aio: add support for translation binary|textSteve Bennett4-1/+58
Mainly to support changing stdout,stderr to binary mode on Windows. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2025-02-07build: win32: STDIN_FILENO may not be defined on WindowsSteve Bennett2-4/+4
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2025-02-05update codeql actionsSteve Bennett1-1/+1
Need to use v4 for upload Signed-off-by: Steve Bennett <steveb@workware.net.au>
2025-01-22docs: note that namespace ensemble create is now supportedSteve Bennett2-7/+2
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2025-01-10jimsh.test: update for new behaviourSteve Bennett1-21/+9
When stdin is not a tty Signed-off-by: Steve Bennett <steveb@workware.net.au>
2025-01-10jimsh: handle no args and stdin not a ttySteve Bennett1-1/+10
In this case instead of running in interactive mode, do the same as 'jimsh -e'. That is, read and evaluate stdin. This is how all other script REPLs work. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2025-01-10Update autosetup to v0.7.2-10-g55241e3Steve Bennett6-542/+1131
Primarily for bootstrap jimsh build on openbsd Signed-off-by: Steve Bennett <steveb@workware.net.au>
2025-01-10linenoise: Update for openbsd fixSteve Bennett1-65/+121
Improvements in the case where query window size fails. Note that this also changes ^R (reverse incremental search) to be readline compatible Update to version: https://github.com/msteveb/linenoise/commit/b755c751e37a6c4dea96f35f757062da29fa0d1b Signed-off-by: Steve Bennett <steveb@workware.net.au>
2025-01-08docs: document namespace canonSteve Bennett1-0/+5
This subcommand is specific to Jim Tcl Signed-off-by: Steve Bennett <steveb@workware.net.au>
2024-11-05add support for 'package forget'Steve Bennett4-0/+40
Sometimes useful if replacing a package that has already been loaded Signed-off-by: Steve Bennett <steveb@workware.net.au>
2024-11-04don't use empty inititialiser for structSteve Bennett2-5/+5
This is GNU-only or C23 Fixes #322 Signed-off-by: Steve Bennett <steveb@workware.net.au>
2024-10-27initjimsh: on Windows the current dir is searched firstSteve Bennett1-2/+8
Before the PATH Signed-off-by: Steve Bennett <steveb@workware.net.au>
2024-10-27Allow bootstrap jimsh to build with msvc on windowsSteve Bennett5-31/+35
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2024-10-22bootstrap jimsh should use JIM_COMPATSteve Bennett2-14/+38
Not JIM_TCL_COMPAT Fixes: #319 Signed-off-by: Steve Bennett <steveb@workware.net.au>
2024-10-21Ensure command deleters are called before freeing singletonsSteve Bennett1-2/+3
This prevents situations where the delproc function (e.g. for aio) access already deleted singleton objects. Fixes #312 Signed-off-by: Steve Bennett <steveb@workware.net.au>
2024-09-20docs: document aio buffering, readsize changesSteve Bennett1-4/+13
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2024-09-20aio: allow setting read and write buffering sizesSteve Bennett1-8/+55
$handle buffering full <writelimit> $handle readsize <size> These now return the current buffering and read size respectively Signed-off-by: Steve Bennett <steveb@workware.net.au>
2024-09-20aio: add internal support for configurable buffer sizesSteve Bennett1-43/+55
Ability to increase read buffer size. Ability to increase write buffering limit in full mode. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2024-09-20Bump version to 0.83+ (0.84)Steve Bennett2-3/+7
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2024-09-20event.test: don't rely on 'stdin readable'Steve Bennett1-2/+2
Use after instead because otherwise the alarm in the readable script which confuses things later. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2024-09-20event.test: Fix spurious stderr outputSteve Bennett1-6/+13
Expect output to stderr when an error happens inside bgerror, so catch it. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2024-09-20tcltest.tcl: remove leftover debug outputSteve Bennett1-1/+0
When running under tclsh Signed-off-by: Steve Bennett <steveb@workware.net.au>
2024-09-20popen: no need to implement getfdSteve Bennett1-3/+0
Unknown commands are automatically passed through to the underlying handle Signed-off-by: Steve Bennett <steveb@workware.net.au>
2024-09-20shorten the name of breakcontinue.testSteve Bennett1-0/+0
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2024-09-20Fix compiler warnings on mingw32Steve Bennett1-2/+5
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2024-09-20aio: fix rare refcount error in maintainer modeSteve Bennett2-0/+16
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2024-09-20aio: write: on EPIPE, discard the write bufferSteve Bennett1-1/+9
If SIGPIPE is blocked, write may return EPIPE. On interpreter shutdown we try to flush write buffers and in this case we are likely to get an unexpected SIGPIPE since the signal may no longer be blocked. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2024-09-03Update autosetup to v0.7.2-0-g0058e14Steve Bennett4-163/+290
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2024-08-29readline: work around buggy readline.hSteve Bennett1-0/+2
Some versions don't included needed stdio.h Fixes: #308 Signed-off-by: Steve Bennett <steveb@workware.net.au>
2024-08-28Bump version to 0.83 for release0.83Steve Bennett4-237/+560
Update shipped docs Signed-off-by: Steve Bennett <steveb@workware.net.au>
2024-08-28json::decode preserve line numbers if possibleSteve Bennett2-2/+26
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2024-08-28jim api: expose functions to get and set source infoSteve Bennett2-58/+59
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2024-08-28jsmn: add support for recording source line numbersSteve Bennett2-6/+16
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2024-08-28json::decode: run parser in strict modeSteve Bennett4-32/+52
To avoid invalid JSON causing core dumps. Minor changes to the jsmn parser to still allow Infinity and NaN. Fix some tests that didn't use strictly correct JSON. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2024-08-28lsort tests: some tests require utf-8 supportSteve Bennett1-2/+2
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2024-08-28document lsort -dict supportSteve Bennett1-4/+16
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2024-08-28lsort: add support for -dictSteve Bennett2-4/+177
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2024-07-28Hide some more umask() calls behind HAVE_UMASKCharlotte Koch1-0/+4
2024-06-23Add CONTRIBUTING.mdSteve Bennett2-93/+65
And remove DEVELOPING as it is out-of-date Signed-off-by: Steve Bennett <steveb@workware.net.au>
2024-04-02fix a memory leak on interp shutdownSteve Bennett1-1/+2
Need to delete the commands hash table before calling Jim_InterpIncrProcEpoch() as otherwise the commands won't yet be in the "old command" list to be deleted. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2024-04-02lsort: don't try to sort a list of length 0 or 1Steve Bennett1-3/+9
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2024-04-02expr: explicit error on empty expressionSteve Bennett1-2/+9
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2024-04-02lreplace: avoid memmove() with NULL pointerSteve Bennett1-0/+5
In the case there is nothing to insert Could be provoked with: lreplace {a b} 0 0 Fixes: #300 Signed-off-by: Steve Bennett <steveb@workware.net.au>