Age | Commit message (Collapse) | Author | Files | Lines |
|
FreeBSD.
Added uintptr_t for eCos.
|
|
|
|
* jim.c/h: bring in changes from OpenOCD. Warnings and
some bug fixes. Copyright list updated in jim.c
|
|
* jim.c/h: If an object is used in subst, then source, a crash will result
|
|
* jim.c, jim.h: Improve error reporting, especially on package load
|
|
called from unknown
|
|
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.
|
|
* FreeBSD license cleanup wip
|
|
|
|
- ** 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.
|
|
|
|
A number of MSVC related fixes including support for creating a jim dll
|
|
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.
|
|
|
|
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.
|
|
|
|
extensions.
|
|
to allow to the pure-Jim rlprompt extension to provide a readline-aware
interactive shell with history.
|
|
|
|
|
|
|
|
not shared, that didn't played very well with Jim arrays.
Added the [rand] command.
|
|
|
|
The scanformat specification will be converted to a new Jim_Obj of type
scanFormatStringObjType, that will contain the parsed representation within
its internal object representation. This speed up multiple scanning within
e.g. a loop, of objects were cached.
For internal scanning we use sscanf currently (I am lazy right now). That
means also, we will inherit its incapability to handle string with embedded
ZERO. It would be not too difficult to implement another scanner just for
the string and charset conversion type that could be able to handle those
embedded ZEROs, however.
Furthermore two small details were fixed:
1. Jim_DoubleToString should also recognize a number if a leading '+' or
'-' occured. By recognizing I mean, add a ".0" to such a number.
2. Jim_StrDupLen should also properly handle duplication of substrings. So
now it should be possible to do this:
const char *str1 = "This is a long string";
char *substr1 = Jim_StrDupLen(str1, 4);
Now substr1 should contain a properly ZERO ended "This".
|
|
|
|
|
|
|
|
Every line is appended to the previous until the script does not appear
to be complete (tested by Jim_IsScriptComplete()).
|
|
form the environment, i.e. to be ANSI-C.
Minor fix to AIO extension to use the new DelProc API.
|
|
|
|
|
|
|
|
|
|
with g++ btw.
|
|
|
|
features and libraries.
|
|
instead to call Jim_IncrRefCount + Jim_DecrRefCount(), or directly
Jim_FreeObj(). Code modified accordingly where needed.
Make test + valgrind test passed after the change.
|
|
|
|
|
|
Jim_GetIndex() semantic changed to make [lindex] more compatible
with Tcl's one, without effects on other commnads (me).
|
|
variables and global variables using a string C as name instead
of a Jim_Obj. This is more handy in mani conditions.
|
|
users. MAJOR is JIM_VERSION / 100
|
|
Changed Jim_InteractivePrompt to take a pre-initialized interpreter.
|
|
a fast path to free the cached hash tables elements).
|
|
Added a simple version of [lsort] (no options yet).
|