Age | Commit message (Collapse) | Author | Files | Lines |
|
To warn of Y2038 problems, and suggest use of -D__MINGW_USE_VC2005_COMPAT
on mingw32. Do this instead of the previous runtime test.
Add -D__MINGW_USE_VC2005_COMPAT to the appveyor build.
Fixes msteveb/jimtcl#145
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Previously we stored lastCollectTime as time_t, but to support
more easily enabling 64 bit vs 32 bit time_t, convert this
to be JimClock() compatible (64 bit milliseconds).
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
With some additional minor cleanups
Fixes msteveb/jimtcl#143
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Add a note in the documentation for clock that some systems
use 32-bit time_t and are thus not year 2038 compliant.
Also add a test to catch this in clock.test
Reported-by: dbohdan <dbohdan@dbohdan.com>
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Fix few typos in the documentation
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
|
|
When executing "exec.test" under valgrind, it reports several
warning messages
Warning: invalid file descriptor -1 in syscall close()
Add proper check around close()
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
|
|
Linking with -ljim may need additional libraries
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
https://github.com/msteveb/jimtcl/issues/148
|
|
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>
|
|
Should return the given return code, not JIM_RETURN (2)
Reported-by: dbohdan <dbohdan@dbohdan.com>
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
If the interp result contains embedded nulls, print the full
result.
Reported-by: dbohdan <dbohdan@dbohdan.com>
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Reported-by: dbohdan <dbohdan@dbohdan.com>
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Update documentation to indicate v0.79
and update Tcl_shipped.html
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
To ensure that linenoise.c can build, even for strict c89
Add cc-check-inline in autosetup/jim-misc.auto
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Keep newer libssl happy
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
If building out-of-tree, the jsmn/ directory may not exist.
So create it during configure
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
set-only
e.g. to disable echo on stdin: stdin tty echo 0
This allows disabling echo while otherwise keeping cooked mode.
Setting input to cooked or raw will overwrite this setting
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
It can be useful for extensions to know the size of integers
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Using the jsmn library for decoding.
Based on the original implementation by Svyatoslav Mishyn <juef@openmailbox.org>
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
This will be used to add json decode support
From: https://github.com/zserge/jsmn, v1.0.0
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Move some remaining data to the read-only segment
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
|
|
|
|
Using only --full will ignore ssl if the ssl library isn't found.
By enabling it explicitly, we will get an error if not found.
|
|
and Jim_FreeHashTable()
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Rather than listing the build rules for each shared object
(loadable module) in the Makefile template, generate the build
rules in configure.
Also, if an extension is configured as a module, any automatic
dependencies required by the extension are configured as modules
by default.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
This command no longer exists in Jim Tcl, so remove
it from the documentation.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
If an expression returns (e.g.), break, continue or exit, that
return code should be propagated, the same it is for [expr {}]
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Internally bytes were being counted rather than characters
Reported-by: dbohdan <dbohdan@dbohdan.com>
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Commit fe8bab1cc313d0049bbb839589c68059807518c8 accidentally
moved the SO_REUSEADDR after bind() where it does no good.
Move it back to before bind()
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Use utf8_charlen() rather than utf8_tounicode()
Note that utf8_charlen() now returns 1 instead of -1 for an invalid
utf-8 start byte.
Reported-by: dbohdan <dbohdan@dbohdan.com>
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
The calculation of the end index was wrong.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Not byte indices
Reported-by: dbohdan <dbohdan@dbohdan.com>
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Not a byte index
Reported-by: dbohdan <dbohdan@dbohdan.com>
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
This subcommand was missing as it wasn't part of the original Tcl 6.7
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
e.g. file tail /abc/def/ => def
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
This allows a signal to be blocked by setting it's handler to SIG_IGN
Can be used to block SIGPIPE for exec
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Previously SIGPIPE was set to SIG_DFL before vfork so that child processes
always had SIGPIPE enabled. This makes it impossible to disable SIGPIPE for
child processes. So don't do this. Instead allow the disposition of SIGPIPE
to be handled by the 'signal' command.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Copying 1 byte at a time can be very slow for large transfers.
Use a 256 byte buffer instead.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
This allocation of space for the history is handled by the underlying
code so there is no need to allocate a history buffer in jim-history.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Sometimes it is useful to wait for a lock to become available.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|