aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2010-10-15aio fixesSteve Bennett3-36/+68
Fix argument checking/rearrangement in Tcl I/O compat Better aio error messages
2010-10-15exec fixes, add os.waitSteve Bennett3-10/+103
Ensure that exec returns an error if appropriate Background exec returns a list of pids Need to close error filedescriptor Add os.wait
2010-10-15Build improvementsSteve Bennett3-11/+6
Add bio to list of default jim packages *: And include all extensions by default Don't bother to require readdir in glob ------------------------------------------------------------------------
2010-10-15Implement unix domain sockets for socketSteve Bennett4-94/+191
*: aio.socket now supports unix and unix.server *: Also, rename aio.open as open and aio.socket as socket
2010-10-15jimsh improvements plus documentationSteve Bennett4-5/+2868
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 ------------------------------------------------------------------------
2010-10-15Fix a couple of bugsSteve Bennett1-6/+12
format %.0f was wrong Minor bug in [string trimright] *: When the string was empty, a read was done of str[-1] ------------------------------------------------------------------------
2010-10-15Implement 'array' in CSteve Bennett6-111/+512
2010-10-15Improve expression supportSteve Bennett3-46/+152
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
2010-10-15Bugs, features and testsSteve Bennett17-75/+478
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
2010-10-15Build improvementsSteve Bennett3-42/+32
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 ------------------------------------------------------------------------
2010-10-15Bugs, features, testsSteve Bennett6-15/+79
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
2010-10-15Implement tree packageSteve Bennett2-0/+446
Similar to tcllib ::struct::tree ------------------------------------------------------------------------
2010-10-15Bugs and testsSteve Bennett4-1/+38
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 ------------------------------------------------------------------------
2010-10-15Improve error handlingSteve Bennett8-40/+350
*: 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 ------------------------------------------------------------------------
2010-10-15Fix a couple of bugsSteve Bennett2-1/+3
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!
2010-10-15Rework/improve jim subcmd handlingSteve Bennett2-7/+101
*: -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 ------------------------------------------------------------------------
2010-10-15Enhance exec, bioSteve Bennett9-135/+248
Support @filehandle syntax Support for nommu Disable os.fork for nommu Remove trailing newline No need for binary escaping in bio module ------------------------------------------------------------------------
2010-10-15Implement some new featuresSteve Bennett13-183/+671
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
2010-10-15Fix a couple of small bugsSteve Bennett1-4/+6
*: 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 ------------------------------------------------------------------------
2010-10-15Simplify use of eventloopSteve Bennett10-57/+4058
Just assume direct static linking for now
2010-10-15freebsd: make it compileWojciech A. Koszek1-0/+13
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>
2010-10-15errors: improve stack traces for return -code errorSteve Bennett1-12/+3
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>
2010-10-15Remove intptr_tSteve Bennett1-5/+3
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-10-15Fix eCos compatiblity problems with autotools.oyvind2-18/+21
2010-10-152009-10-08 Øyvind Harboeoharboe2-12/+54
* jim.c/h: bring in changes from OpenOCD. Warnings and some bug fixes. Copyright list updated in jim.c
2010-10-15Comparison of doubles is a boolean.oharboe1-7/+15
Not a double. expr {0.5 < 1.0} Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-10-15Line numbers wrong with {expamd}oharboe1-5/+9
If an error occurs when {expand} is in operation, the line number is wrong. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-10-15Fix crash in substoharboe2-3/+8
If an object is used in subst, then source, a crash will result Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-10-15Fix exit code from jimshoharboe1-0/+9
A script exiting with 'exit 0' would not give a return code of 0 Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-10-15Make [format %c 0] work (embedded nulls)oharboe1-7/+7
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-10-15array unset was brokenoharboe1-1/+1
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-10-15$argv0 should be the name of the scriptoharboe1-1/+2
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-10-15Should be able to compare strings for order in exproharboe1-6/+14
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-10-15Fix 'unset ::var' to unset a global varoharboe1-4/+7
It was doing nothing. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-10-15Remove declarations for some functions which are goneSteve Bennett1-5/+0
2010-10-15Build fixes, better Jim_EvalFile()Steve Bennett8-52/+51
*: 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
2010-10-15Fit into the broad project buildSteve Bennett1-0/+0
2010-10-15Skip some tests if no eventloopSteve Bennett2-0/+7
2010-10-15Build even if eventloop is not enabledSteve Bennett1-22/+22
2010-10-15Fix some runtime errorsSteve Bennett2-7/+23
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
2010-10-15Handle forking tests betterSteve Bennett2-12/+27
2010-10-15Add some aio and eventloop testsSteve Bennett2-0/+123
2010-10-15Convert jim-aio.c to use subcmdSteve Bennett9-358/+459
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
2010-10-15Add missing return code from load static extensionsSteve Bennett1-0/+1
2010-10-15Convert package to use jim-subcmdSteve Bennett9-687/+716
Also, no need to install tcl extensions Display any errors from loading static extensions
2010-10-15Small improvementsSteve Bennett7-18/+37
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
2010-10-15Ignore some stuffSteve Bennett1-0/+5
2010-10-15Add some tests from tinytclSteve Bennett11-0/+268
2010-10-15tcl6 no longer needs stdio or autoloadSteve Bennett2-87/+0
aio now does Tcl6 stdio automatically glob and array are autoloaded as static extensions if available
2010-10-15Benchmarks in milliseconds for easier readingSteve Bennett2-3/+3