Age | Commit message (Collapse) | Author | Files | Lines |
|
Fix argument checking/rearrangement in Tcl I/O compat
Better aio error messages
|
|
Ensure that exec returns an error if appropriate
Background exec returns a list of pids
Need to close error filedescriptor
Add os.wait
|
|
Add bio to list of default jim packages
*: And include all extensions by default
Don't bother to require readdir in glob
------------------------------------------------------------------------
|
|
*: aio.socket now supports unix and unix.server
*: Also, rename aio.open as open and aio.socket as socket
|
|
Add /lib/jim to the default auto_path
*: Otherwise there is no 'standard' location to install packages
Prompt should show name for all non-zero return types
Initial documentation for Jim
------------------------------------------------------------------------
|
|
format %.0f was wrong
Minor bug in [string trimright]
*: When the string was empty, a read was done of str[-1]
------------------------------------------------------------------------
|
|
|
|
Especially ternary operator and unary minus
Still evaluates both sides of the ternary operator :-(
Fix unary minus
And add const in more places to avoid this mistake in future
|
|
source fails with zero length file
unknown can't be called recursively
*: This can be useful when using unknown to dynamically load code,
which may in turn want to dynamically load code
*: Limit it to 50 recursions though
Allow string greater/less comparison
*: Comparing two strings for order did not work
Implement file join
*: It's not to hard and is handy when working with the current dir, ""
Don't omit [unknown] completely from stack trace
*: Since we lose valuable informtion, just omit the name
Fix return from case
Turn regexp patterns into real objects
*: Thus caching the compiled regexps
Allow error to rethrow an error
Replace bcopy() with more standard memcpy()
Fixes to parray, improve errorInfo
*: errorInfo takes an optional stack trace
Add tests for rethrowing errors via errorInfo
Fix ndelay
*: Was looking at wrong param
*: Also fix usage/help for aio.socket
Package should be able to call exit
*: Currently any return from a package is changed to JIM_ERR
Line counting is incorrect for backlash newline
|
|
Fix for make-c-ext to allow jim to build in a different dir
Use a sh-based make-c-ext
*: No need to leave one remaining host tcl dependency
------------------------------------------------------------------------
|
|
The result of boolean ops on doubles is an int
*: e.g. 0.5 < 0.1 should be 0, not 0.1
Implement jimsh -e <cmd>
Allow jim to be built in a different location
*: e.g. mkdir build; cd build; ../configure ...; make jimsh
Add dict.test
|
|
Similar to tcllib ::struct::tree
------------------------------------------------------------------------
|
|
jimsh argv0 was wrong
*: Should be the name of the script when run non-interactively
Missed adding jim.h changes for errorProc
Add lsort -command tests to jim/tests
Handle the case of a script with no tokens
------------------------------------------------------------------------
|
|
*: Improve stack trace handling on errors
*: Add 'info source'
*: Add 'info stacktrace'
*: Add errorInfo procedure to generate a human readable stack trace
*: Add tests for stacktrace
------------------------------------------------------------------------
|
|
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!
|
|
*: -usage and -help do not generate an error
*: -help <cmd> where the cmd is invalid now generates a correct response
*: Add Jim_CheckCmdUsage() so top level commands can also be checked and print usage
*: Fix the FULLARGV flag which was accidently set to the same value as the HIDDEN flag
*: If -help is specified for an invalid or amibiguous subcmd, show all commands
------------------------------------------------------------------------
|
|
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
------------------------------------------------------------------------
|
|
Just assume direct static linking for now
|
|
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>
|
|
|
|
* jim.c/h: bring in changes from OpenOCD. Warnings and
some bug fixes. Copyright list updated in jim.c
|
|
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>
|
|
A script exiting with 'exit 0' would not give a return code of 0
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>
|
|
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
|
|
|
|
Also, no need to install tcl extensions
Display any errors from loading static extensions
|
|
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
|
|
|
|
|
|
aio now does Tcl6 stdio automatically
glob and array are autoloaded as static extensions if available
|
|
|