Age | Commit message (Collapse) | Author | Files | Lines |
|
A bit vs. byte error meant that on platforms with 32 bit ints,
signal, exit and eval were always caught by catch.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Don't use -Werror
Prefer user CFLAGS over default options
Haiku needs -lnetwork for networking functions
Haiku does not have -lm
Haiku does not have SIGIO
Silence some warnings
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
e.g. gcc 2.95
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 jimsh is run in interactive mode but without a tty,
don't bother to load and save line editing history.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Only procedures add a local proc context. Otherwise
it is not possible to use local/upcall in Tcl packages.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
When running under automake (as openocd does) it seems
impossible to build jimtcl but not install it, so add
--disable-install-jim to help out.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Rather than relying on setting JIMLIB in the Makefile.
Makes it easier to run individual tests manually.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
All generated sources are now prefixed with an underscore
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Tcl compatible.
Also move jimsh initialisation script into initjimsh.tcl
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Revert to using inline strings rather than
static const char[] to avoid confusing bloat-check
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>
|
|
In particular, file join / anything
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
If a list elements contains unmatch ] brackets, use
backslash quoting instead of braces. This is what Tcl does.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Allows args and optional parameters in any location,
in addition to being smaller and faster.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Also adds (disabled) $[...] expr sugar support
in case we decide to use this syntax instead of $(...)
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
To more easily select some optional features which are disabled
by default.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Mainly for msys/mingw support
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
$tcl_platform(platform) should be "windows" on mingw
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Now the diagnostics indicate the line which contains
the unmatched quote, bracket or brace.
Previously, a missing '[' was shown as a missing '"'
Also, when sourcing a file, the script is not parsed twice.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
So optimize char [split] to include those chars too.
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>
|
|
Currently it depends on hash table ordering.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Some unused variables
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>
|
|
Jim is always in binary/utf-8 mode
This makes it easier to run Tcl scripts unmodified
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Will recursively remove directories, even if not empty.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Support absolute paths which don't necessarily
begin with /
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Convert some paths from backslashes to forward slashes
Handle splitting/joining paths which look like z:/abc/def
Identify the platform as mingw
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
For Tcl compatibility
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Simply guess the program size and realloc if needed.
This also fixes a compile warning on some platforms.
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>
|
|
- Check for mkdir with one arg at configure time
- mingw can't really do select(), so support only time events in eventloop
- Declare dlerror() to be compatible with mingw
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Instead do it properly with a union
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Reported-By: Spencer Oliver <spen@spen-soft.co.uk>
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>
|
|
The line number stored with each line of the script
should be the line number of the first token, not the last token.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Reading from a pipe can set both ferror() and feof().
In this case, feof() takes precedence.
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>
|