aboutsummaryrefslogtreecommitdiff
path: root/jim.c
AgeCommit message (Collapse)AuthorFilesLines
2010-10-15Enhance exec, bioSteve Bennett1-1/+1
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 Bennett1-35/+165
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-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.oyvind1-15/+19
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 substoharboe1-2/+6
If an object is used in subst, then source, a crash will result 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-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-15Build fixes, better Jim_EvalFile()Steve Bennett1-26/+14
*: 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-15Fix some runtime errorsSteve Bennett1-5/+14
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-15Convert jim-aio.c to use subcmdSteve Bennett1-2/+2
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-15Small improvementsSteve Bennett1-1/+3
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-15Lots of improvementsSteve Bennett1-361/+288
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'
2010-10-15Add more tcl6 compatibilitiesSteve Bennett1-26/+158
- string trim, trimleft, trimright - lsort -command, -integer - fix 'unset ::var'
2010-10-15Split package and load out of jim.cSteve Bennett1-461/+1
2010-10-15Strip out unneeded junk from JimSteve Bennett1-785/+56
Nvp, getopt, move interactive processing to jim-interactive.c
2010-10-15Cutover to new workware fork of Jim TclSteve Bennett1-801/+755
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>
2010-10-04lists: fix crash in ListInsertElements0.51Øyvind Harboe1-0/+1
It wasn't added to the API list => NPE JIM_REGISTER_API(ListInsertElements); Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2010-02-01Bring corrected license as mentioned in freebsd/...Wojciech A. Koszek1-2/+1
Remove "FreeBSD license" statements, since it's not a correct term I believe. Small cleanup while being here.
2010-02-01Revert "Bring correct license -- I think freebsd/ directory has an agreements"Wojciech A. Koszek1-1/+2
This reverts commit 1e2fdd7d9e877fbe2c88a4c32f098ce1e575dc1d.
2010-02-01Bring correct license -- I think freebsd/ directory has an agreementsWojciech A. Koszek1-2/+1
for relicensing all files within Jim project. "FreeBSD license" isn't correct term, so basically remove it. Try to make the whole place consistent.
2010-02-01Function strcasecmp() requires strings.h.Wojciech A. Koszek1-0/+1
2010-02-01stdint.h is necessary on GNU/Linux systems.Wojciech A. Koszek1-1/+2
2010-02-01Make jim.c clean enough to be able to build it with -pedantic onWojciech A. Koszek1-8/+12
FreeBSD. Added uintptr_t for eCos.
2010-01-31Instead of making Jim on FreeBSD friendly, make it Cygwin andWojciech A. Koszek1-6/+4
GNU/Linux friendly as well.
2010-01-31If three arguments are passed to 'puts' and the second isn't -nonewline,Wojciech A. Koszek1-1/+1
return JIM_ERR instead of JIM_OK.
2010-01-22freebsd: make it compileWojciech A. Koszek1-0/+19
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-01-14errors: improve stack traces for return -code errorSteve Bennett1-17/+19
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>
2009-10-19Fix eCos compatiblity problems with autotools.oyvind1-13/+17
2009-10-082009-10-08 Øyvind Harboeoharboe1-764/+751
* jim.c/h: bring in changes from OpenOCD. Warnings and some bug fixes. Copyright list updated in jim.c
2009-08-162009-08-16 Steve Bennett <steveb@workware.net.au>oharboe1-7/+15
* jim.c: Comparison of doubles is a boolean, not a double. expr {0.5 < 1.0}
2009-08-162009-08-16 Steve Bennett <steveb@workware.net.au>oharboe1-5/+9
* jim.c: If an error occurs when {expand} is in operation, the line number is wrong.
2009-08-162009-08-16 Steve Bennett <steveb@workware.net.au>oharboe1-2/+6
* jim.c/h: If an object is used in subst, then source, a crash will result
2009-08-162009-08-16 Steve Bennett <steveb@workware.net.au>oharboe1-6/+6
* jim.c: Make [format %c 0] work (embedded nulls)
2009-08-162009-08-16 Steve Bennett <steveb@workware.net.au>oharboe1-2/+2
* jim.c: Some recursion in unknown is OK, just not infinite recursion.
2009-08-162009-08-16 Steve Bennett <steveb@workware.net.au>oharboe1-6/+14
* jim.c: Should be able to compare strings for order in expr
2009-08-162009-08-16 Steve Bennett <steveb@workware.net.au>oharboe1-3/+9
* jim.c: 'unset ::var' to unset a global var. It was doing nothing.
2008-11-072008-11-06 Steve Bennett <steveb@workware.net.au>oharboe1-9/+13
* jim.c: Implement info hostname by calling os.hostname * jim.c: Also fix some compiler warnings
2008-11-072008-11-06 Steve Bennett <steveb@workware.net.au>oharboe1-13/+43
* jim.c, jim.h: Improve error reporting, especially on package load
2008-11-07 * jim.c, jim.h: Prevent infinite recursion if an unknown command isoharboe1-0/+11
called from unknown
2008-11-05* jim.c: add support for proc default arguments to jimoharboe1-10/+53
2008-11-052008-11-05 Steve Bennett <steveb@workware.net.au>oharboe1-1/+1
* jim.c: fix lazy expression evaluation with unary not
2008-11-042008-11-04 Steve Bennett <steveb@workware.net.au>oharboe1-11/+15
* 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.
2008-11-042008-11-03 Steve Bennett <steveb@workware.net.au>oharboe1-15/+73
* 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
2008-09-01 * jim.c, jim.h: more text formatting fixes, improved error messagesoharboe1-17/+64
with location of error