Age | Commit message (Collapse) | Author | Files | Lines |
|
Fix unset ::var properly this time
Ensure that jimsh exits with the correct exit code
*: Previously a script that did 'exit 0' would exit with 7!
|
|
Support @filehandle syntax
Support for nommu
Disable os.fork for nommu
Remove trailing newline
No need for binary escaping in bio module
------------------------------------------------------------------------
|
|
Implement 'lreplace'
Implement 'string last'
Implement 'pid'
Implement 'info procs'
Implement 'info script'
Implement 'info patchlevel' as an alias for 'info version'
Implement syslog extensions for jim
Fix return code display in jim-interactive.c
Make jim more compatible if JIM_TCL_COMPAT is set
*: Use tcl_interactive rather than jim_interactive
*: Use auto_path rather than jim_libpath
Add "." to the lib search path, not "./"
Fix a couple of files with CRLF line endings
|
|
*: Need to null terminate the buffer in Jim_EvalFile()
*: If an object is used a subst and a script, a crash will result.
set x abc
subst $x
eval $x
------------------------------------------------------------------------
|
|
Casts to (void) are in order to silent GCC about unused variables.
I didn't want to break ABI for the sake of clean compilation
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
|
|
the file and line number for return -code error's are
now added to the dumped stack trace.
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
|
|
Not a double. expr {0.5 < 1.0}
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
If an error occurs when {expand} is in operation, the line number is wrong.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
If an object is used in subst, then source, a crash will result
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>
|
|
It was doing nothing.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
*: make-c-ext is now make-c-ext.tcl
*: build doc/Tcl.html with asciidoc
*: Jim_SetIntResult -> Jim_SetResultInt
*: Jim_EvalFile() now reads the file contents in one go
|
|
Need to duplicate a possibly shared object when loading a package fails
Need to initialise signal-related fields in the jim interp
Return an error from 'lsort -command' on failure
|
|
Also:
- make stream.server set SO_REUSEADDR
- do object reference properly for callbacks
- white space cleanup in jim-eventloop.c
- fix the pwd command
- add support for JIM_MODFLAG_FULLARGV to subcmd
- make verbose runtests easier to read
- bio might not be available
|
|
Save (but then cleanup) generated extensions
Add package and readdir to 'all' extensions
Order of static extensions matters!!
Simple C define support for configured extensions
Fix some compiler warnings
|
|
jim
---
Add a unique id facility to jim (Jim_GetId())
Remove unused jim_vasprintf(), Jim_AppendString_sprintf()
Remove duplicate output in Jim_Panic()
Add support for catch -signal
aio
---
Use this for aio handles
aio automatically creates stdin, stdout and stderr channels
Jim_AioFilehandle() returns the 'FILE *' filehandle for a channel
If JIM_TCL_COMPAT is set, create top level open, close, read, puts, etc.
load
----
load core command split out into jim-load.c
package
-------
package core command split out into jim-package.c
added 'package list'
posix
-----
Remove os.sleep, os.usleep, os.sethostname, os.signal, pit, Jpit
Most of these are in 'signal'
|
|
- string trim, trimleft, trimright
- lsort -command, -integer
- fix 'unset ::var'
|
|
|
|
Nvp, getopt, move interactive processing to jim-interactive.c
|
|
Note that this commit removes some files and undoes
some commits which will be reapplied later.
This is the easiest way to switch across.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
It wasn't added to the API list => NPE
JIM_REGISTER_API(ListInsertElements);
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
|
|
Remove "FreeBSD license" statements, since it's not a correct term
I believe.
Small cleanup while being here.
|
|
This reverts commit 1e2fdd7d9e877fbe2c88a4c32f098ce1e575dc1d.
|
|
for relicensing all files within Jim project.
"FreeBSD license" isn't correct term, so basically remove it.
Try to make the whole place consistent.
|
|
|
|
|
|
FreeBSD.
Added uintptr_t for eCos.
|
|
GNU/Linux friendly as well.
|
|
return JIM_ERR instead of JIM_OK.
|
|
Casts to (void) are in order to silent GCC about unused variables.
I didn't want to break ABI for the sake of clean compilation
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
|
|
the file and line number for return -code error's are
now added to the dumped stack trace.
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
|
|
|
|
* jim.c/h: bring in changes from OpenOCD. Warnings and
some bug fixes. Copyright list updated in jim.c
|
|
* jim.c: Comparison of doubles is a boolean, not a double. expr {0.5 < 1.0}
|
|
* jim.c: If an error occurs when {expand} is in operation, the line number is wrong.
|
|
* jim.c/h: If an object is used in subst, then source, a crash will result
|
|
* jim.c: Make [format %c 0] work (embedded nulls)
|
|
* jim.c: Some recursion in unknown is OK, just not infinite recursion.
|
|
* jim.c: Should be able to compare strings for order in expr
|
|
* jim.c: 'unset ::var' to unset a global var.
It was doing nothing.
|
|
* jim.c: Implement info hostname by calling os.hostname
* jim.c: Also fix some compiler warnings
|
|
* jim.c, jim.h: Improve error reporting, especially on package load
|
|
called from unknown
|
|
|
|
* jim.c: fix lazy expression evaluation with unary not
|
|
* jim.c: fix problems with "puts [list ${a}]". Resulted in syntax
error.
* jim.c: :: scoping for set
* jim.c: Creating a C command when a Tcl command of the same name
already exists can cause a crash.
|
|
* Allow env with no arguments to retrieve all environment variables
as a list of name value ...
* Add format support for %o -- octal
* Allow direct access to variables in the global scope by
prefixing with ::
* For compatibility with older versions of Tcl, allow == and != to
compare strings if the arguments can't be interpreted as numbers
* Ensure that the string representation exists before doing
string toupper or tolower
|