Age | Commit message (Collapse) | Author | Files | Lines |
|
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
|
|
with location of error
|
|
|
|
* fix missing vararg.h in some files ( included in jim.h )
* in aio.socket return an error when hosti resolution fails
instead of just carrying on.
|
|
MMU.
|
|
* FreeBSD license cleanup wip
|
|
|
|
* jim.c: in Jim_SubstObj in the switch for tokentype
case: JIM_TT_DICTSUGAR and
accompanying code was missing.
|
|
{xx} is not run.
|
|
src/jim.c: This simple patch adds precision support to JIM's format command.
|
|
- ** THIS INCLUDES A PREVIOUS PATCH I SENT EARLIER **
- that impliments many [format] specifies JIM did not support.
- Jim_FormatString() - **MAJOR** work.
- Previously only supported "%s" "%d" and "%c"
- And what support existed had bugs.
- NEW: *MANY* formating parameters are now supported.
- TODO: The "precision" specifier is not supported.
** NEW ** This patch.
- Jim_StringToWide() test if no conversion occured.
- Jim_StringToIndex() test if no conversion occured.
- Jim_StringToDouble() test if no conversion occured.
** NEW ** This Patch. Major Work.
- Previously output from JIM did not get sent to GDB
- Ditto: Output to Telnet session.
- Above items are now fixed - By introducing callbacks
new function pointers in the "interp" structure.
- Helpers that call the callbacks.
- New function: Jim_fprintf()
- New function: Jim_vfprintf()
- New function: Jim_fwrite()
- New function: Jim_fread()
- New function: Jim_fflush()
- New function: Jim_fgets()
By default: the output is to STDIO as previous.
The "openocd.c" - redirects the output as needed.
- Jim_Panic() - Send panic to both STDERR and the interps
specified STDERR output as a 2nd choice.
- Now JIM's "stdin/stdout/stderr" paramters are "void *"
and are no longer "FILE *".
src/Jim.h
- **MAJOR**
- New JIM STDIO callbacks in the "interp" structure.
- change: "stdin/stdout/stderr" are now "void *" cookies.
- New JIM stdio helper functions.
|
|
|
|
|
|
|
|
realloc/malloc(0) => realloc/malloc(1) which has an
identical implementation, whereas realloc/malloc(0) is
ambigous. "string map {} {}" used to result in malloc(0)
|
|
A number of MSVC related fixes including support for creating a jim dll
|
|
procedure having the same name of an old one is created, as this will
drop the old and create the new invalidating the cached proc lookups.
|
|
value if called with NULL. JIM_NL define introduced in order to force Jim to output CRLF instead of just LF in the core output printf/fwrite calls. This appears to be useful in some kind of terminal under eCos.
|
|
|