Age | Commit message (Collapse) | Author | Files | Lines |
|
Sometimes it can be useful to provide an embedded interpreter
where introspection is not permitted.
This includes:
- info commands, procs, channels: only allow exact match, not glob pattern
- info frame: don't include cmd and proc in the returned dict
- info level: only return the command name, not the command arguments
- info body, args, statics: do not allow these to be called
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
if sin(), etc. aren't available, just build without math functions
unless --math is explicitly given
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Not in source files
See https://ariadne.space/2021/12/21/stop-defining-feature-test-macros-in-your-code/
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Some tabs have crept into this file.
Expand to spaces for consistency.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
SSL is now enabled by default, but it is only a fatal error
if no libssl and --ssl is explicitly enabled.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Uses a prefix to automatically map from subcommand to
implementation.
Includes support for namespace ensemble
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Now use --minimal and/or --without-ext to disable things.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Instead of using all time, these commands now use a monotonically
increasing system timer so that they are not affected by time (e.g. ntp) adjustments.
(But not on Windows since it doesn't work reliably)
Fixes #240
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
_fullpath isn't necessarily available, so check for it
symlink() isn't useful enough on Windows to use
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
So don't try to find them as functions
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Document changes since 0.81 and add documentation for new
filename return for sockets.
Internal version is now 0.82 in preparation for (eventual) 0.82
release.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
On platforms where using vfork emits a warning, use fork instead
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Based on http://msteveb.github.io/autosetup/articles/handling-cflags/
using autosetup 0.7.1
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Mostly we need to specifically target WinXP.
Also silence deprecation warnings.
And fix the confusion about _stat64 vs __stat64
Fixes #219
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Makes it easier to override
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
So don't build it unless --shared is specified
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Quote the build dir or and the path to jimsh/tclsh
in the Makefile in case they contain spaces.
Also fix a few problems in tests/ that arise when the build
and/or source dir contain spaces.
Fixes #199
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Some users may not be ready to immediately move to the single-argument
expr, so provide a --compat option to configure to support the
previous behaviour as a transition strategy.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Extensions like nshelper and jsonencode should only be
selected if explicitly enabled or if they are the target of
a dependency. So enabling namespace enables nshelper, but
--full --without-ext=namespace doesn't.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
If no 'check' is provided, we assume that the checks passed.
If pkg-config is specified, but no other check, use 'check false'
to ensure the module is disable if the pkg-config checks don't pass.
Also travis now does 'make all' so that any module extensions are
also built, and add a dependency on libhiredis-dev to test
building the redis extension.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
To build all non-default extensions as modules if prerequisites are met.
Also move the extension help out of the main help since it is quite long
and show it with --extinfo. Now extension help is generated from $extdb
to avoid the help and the module configuration becoming out of sync.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Add this depenency to avoid issues with parallel builds
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Requires a truetype font file
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Now we only support using pkg-config to find SDL, and prefer SDL2 over SDL.
For compatibility between versions, the render surface is now cleared on flip.
And closing the window now results in a JIM_EXIT return code from flip.
Also supports [sdl clear] to clear the background to a given colour.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Using the hiredis client library.
Synchronous API only.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Loadable modules and tests
Fixes #179
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Update documentation to indicate v0.80
and update Tcl_shipped.html
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Allows a psuedo-tty pair to be created.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Disable optimisation during coverage.
Set CCACHE_DISABLE=1 in the environment, just to be sure to disable ccache
Also cleanup coverage files in subdirs too
Add support for both lcov and gcovr
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
To make it easier to generate code coverage output.
Ensure that gcovr is installed, then do:
./configure --coverage
make test coverage
And see the report in coverage.html
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
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>
|
|
Linking with -ljim may need additional libraries
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>
|
|
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>
|
|
It can be useful for extensions to know the size of integers
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>
|
|
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>
|
|
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>
|
|
To avoid a deprecation warning
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>
|
|
autosetup changes:
- The syntax for templates has changed slightly
- Update config.guess and config.sub to 2018-03-08
- Add rpath support
- Add --runstatedir
Also:
- enable rpath when building libjim as shared
- ensure that 'make test' works on MacOS when libjim is shared
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Detect when cross compiling (build != host)
Tcl exec loses stderr if redirected and an error code is returned, so
redo the approach to exec so that it works on both Tcl and Jim
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
|
|
And enable silent rules by default if using GNU make.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|