Age | Commit message (Collapse) | Author | Files | Lines |
|
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>
|
|
|
|
And sockname, peername
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Also add support for sockname and peername
And remove unix domain sockets when the socket is closed
And generally clean up the socket support
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
win32 insert/delete fix to avoid assertion failure
Accept linefeed as enter
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Don't rely on system timegm(), and use a locally implemented
timegm() that doesn't rely on changing TZ in the environment
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
When scanning a time with unspecified fields, those fields
should use the current date/time, not 1 Jan 1900.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
|
|
To avoid a deprecation warning
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Bootstrap jimsh sets JIM_ANSIC but FD_CLOEXEC is enabled.
This causes FD_CLOEXEC to be set on fd 0 (stdin), thus closing the default fd 0
in the child process during exec.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
|
|
More consistent behaviour of replacing past end of list
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Note that actual support is dependent upon the underlying operating
system and filesystem.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Allow minimal command "package" to take additional arguments, but ignore them.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|