Age | Commit message (Collapse) | Author | Files | Lines |
|
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.
|
|
|
|
Default is stdin,stdout,stderr but it's possible to change the default
after creating the interpreter using Jim_(Set|Get)(Stdin|Stdout|Stderr)
if needed.
|
|
|
|
|
|
the exit command is now implemented as a special return
value of JIM_EXIT.
|
|
|
|
[after], [vwait], and the C API to write other extensions using
events. No win32 port for now, just posix. UDP extension will follow
shortly and will be the first extension using the event loop.
|
|
|
|
in the Jim core is jim_wide. That type is a signed one. A unsigned
variante of jim_wide is not forseen. So a '%lu' specification seems not
to make any sense.
- Some extra castings necessary to let the Jim core interpreter compile and
run under Tru64U on Dec Alpha.
- Fix a bug in UpdateStringOfList(). If a list was created via the Jim
command [list] w/o any argument, the internal representation of that list
pointed to ZERO and the len attribute was equally set to ZERO. If now
UpdateStringOfList was called to create the string representation of
the list, Jim_Alloc for quotingType got a ZERO size for number of bytes
to allocate. That let to SIGSEGV under Tru64U, so I changed that to
allocate at least 1 byte then.
|
|
way to go.
|
|
|
|
(1) jim.c Jim_FormatString()
char array spec[] is defined as having two elements but at the
'default:' case of the switch statement an assignment is made to the
third element
(2) jimsh.c JimGetExePath()
After the call of strrchr() the value of p could be NULL in the
case that argv[0] is just plain "jim". The next line should have a test
for NULL added to avoid dereferencing the NULL pointer. (This is the
cause of a Bus Error on Mac OS X.)
Many thanks to Colin McPhail for reporting this two problems.
|
|
sscanf for scanning purposes, only for parsing within
SetScanFmtFromAny. We could get rid of it there too, if necessary.
It pass all tests on all platforms I had access to (mainly Linux,
Solaris, FreeBSD, MacOS X). But I am confident, that it will pass on
the others as well.
A small new introduced C99-ism was fixed in jimsh.c as well.
|
|
|
|
what RHS proposed in the Wiki for tail recursion:
return -code eval [list proc $a $b ...]
I'm not sure I'll take this, but it needs to be inside for some
time in order to experiment and evaluate it I guess.
|
|
|
|
|
|
Limited to integers because pow() needs the inclusion of math.h.
The plan is to put everything depends on math.h in the math lib.
|
|
as a component of jim_libpath.
|
|
|
|
|
|
extensions.
|
|
a bit different semantic.
|
|
to allow to the pure-Jim rlprompt extension to provide a readline-aware
interactive shell with history.
|
|
Thanks to 'valgrind'.
|
|
fixed. some commented work in progress for exposing the Jim parse
at script level. Default compilation set to -Os again.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|