Age | Commit message (Collapse) | Author | Files | Lines |
|
expr {1 : 2 ? 3}
Reported-by: Ryan Whitworth <me@ryanwhitworth.com>
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Avoid exception on integer divided by zero
Reported-by: Ryan Whitworth <me@ryanwhitworth.com>
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Update to match linenoise.git
Signed-off-by: Steve Bennett <steveb@workware.net.au>
diff --git a/linenoise.c b/linenoise.c
index 091d197..171dcef 100644
--- a/linenoise.c
+++ b/linenoise.c
@@ -116,7 +116,7 @@
#else
#include <termios.h>
#include <sys/ioctl.h>
-#include <sys/poll.h>
+#include <poll.h>
#define USE_TERMIOS
#define HAVE_UNISTD_H
#endif
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
|
|
For the benefit of C89 compilers.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
The test for ECONNABORTED was reversed such that errors such as ENXIO
did not correctly return an error.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
The script implementation of dict values was not correctly handling the case
where a dictionary had duplicate values.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
343be844 cc tests should use LIBS and LDFLAGS
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
e.g. a usb-serial port
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Prevent multiple access to a serial port by using locking.
This is probably compatible with most serial port locking on Linux.
Perhaps on macosx.
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>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
|
|
If the interpreter or signal command is deleted, restore
default signal handling and free allocated memory.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Changed 'array exists' to actually check if the variable is an array
(matches tclsh)
Fix Jim_DictInfo to avoid using printf() and make output match tclsh
Added some more tests for array command - checked these work with tclsh
|
|
|
|
Building with CFLAGS="-Werror -Wall" caused configure to fail due to
the following warnings being converted to errors:
* conflicting types for built-in function
* unused variable
When these warnings get converted to errors, they prevent the detection
of fork, isascii, isinf, isnan, math libs, long long & struct flock.
Add -Wno-error in this case to prevent these warnings being treated as errors.
Reported-by: Evan Hunter <evan@ozhiker.com>
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
|
|
|
|
Otherwise install the shipped docs with a warning.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
|
|
Compiling for C++ (as is needed for Metakit extension) generates an
error due to the use of the reserved word 'template' as an argument
name.
Renaming this argument
|
|
Reported-by: Evan Hunter <evan@ozhiker.com>
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Change Jim_SetResultFormatted() to increment/decrement the ref count
of any %#s parameters. This allows zero refcount objects to be passed in
and be freed automatically.
Reported-by: Evan Hunter <evan@ozhiker.com>
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
pkgconfig for SDL causes _GNU_SOURCE to be defined on the commandline,
hence causing an error when these source files re-define it.
|
|
Not all objects were dependent on the Makefile/headers, so the following
build sequence resulted in failure:
./configure CFLAGS="--coverage" LDFLAGS="--coverage" && make
./configure && make
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Keeps valgrind happy
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
For systems with signed char
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
|
|
Contains commands that suport -commands, to make it easy to
add custom commands without replacing the default tcl::autcomplete
(although that is still the recommended approach)
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
|
|
Fix dict2.test/dict-4.1
Even with no key/values given, the order of the returned dictionary
is not guaranteed.
Reported-by: Evan Hunter <evan@ozhiker.com>
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Also prune a 'break' which was unreachable.
|
|
Apparently snprintf exists now and _snprintf is not C99 compliant
Reported-by: Evan Hunter <evan@ozhiker.com>
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Reported-by: Evan Hunter <evan@ozhiker.com>
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
via tcl::autocomplete
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
This option returns a list of support subcommands and is
useful for command line completion.
Support added to: socket, namespace, tcl::prefix, string, dict, info
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
A convenience for evaluating a script on stdin without interactive mode
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Now it is possible to do: configure --full --disable-ssl
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Among other things, includes improved option parsing
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>
|
|
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>
|