aboutsummaryrefslogtreecommitdiff
path: root/jim.h
AgeCommit message (Collapse)AuthorFilesLines
2010-02-01Make jim.c clean enough to be able to build it with -pedantic onWojciech A. Koszek1-1/+3
FreeBSD. Added uintptr_t for eCos.
2009-10-19Fix eCos compatiblity problems with autotools.oyvind1-3/+3
2009-10-082009-10-08 Øyvind Harboeoharboe1-145/+119
* 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-1/+2
* jim.c/h: If an object is used in subst, then source, a crash will result
2008-11-072008-11-06 Steve Bennett <steveb@workware.net.au>oharboe1-0/+1
* 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/+2
called from unknown
2008-09-01 * jim.c, jim.h: more text formatting fixes, improved error messagesoharboe1-0/+7
with location of error
2008-08-25 * jim.c, jim.h: name value pair and formatting fixesoharboe1-3/+335
2008-07-23Uwe Klein:oharboe1-0/+1
* 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.
2008-07-21 * src/jim.c: very slightly improved error messages.oharboe1-1/+1
* FreeBSD license cleanup wip
2008-07-17Switched core files to FreeBSD licenseoharboe1-16/+37
2008-07-07src/Jim.coharboe1-6/+27
- ** 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.
2008-06-16 * retire CVS keyword expansion. Plays havoc with patches.oharboe1-2/+0
2007-01-31Fixed the stdio declarations to work on Windows and likely on Solaris.patthoyts1-5/+17
A number of MSVC related fixes including support for creating a jim dll
2006-11-06Jim_GetStdin/out/err API removed, now Jim-SetStdin/out/err returns the old ↵antirez1-10/+11
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.
2006-11-02Ability to configure file descriptors for standard input, output, error.antirez1-3/+20
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.
2006-11-01Fix to expr parsing (now hex digits work as literals).antirez1-1/+4
the exit command is now implemented as a special return value of JIM_EXIT.
2005-04-18First version of the Jim eventloop extension, exportingantirez1-1/+14
[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.
2005-04-10Fix for [return -code eval]antirez1-3/+3
2005-04-09Experimental verison of JIM_EVAL retcode in order to implementantirez1-1/+4
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.
2005-04-06Shhhhh. Silenced a number of warnings when using MSVC.patthoyts1-2/+2
2005-04-06Generic API implementing the Stack data structure exported toantirez1-1/+27
extensions.
2005-04-05.jimrc support (or jimrc.tcl). Minimal readline extension, just enoughantirez1-1/+4
to allow to the pure-Jim rlprompt extension to provide a readline-aware interactive shell with history.
2005-04-04Version marked as "0.51".antirez1-2/+2
2005-04-02[package require] + Makefile changes about libraries currently not working...antirez1-2/+3
2005-03-31Implemented the C API "background" for the packages system of Jim.antirez1-5/+16
2005-03-29A number of fix for commands optimizing a bit too much objectsantirez1-1/+8
not shared, that didn't played very well with Jim arrays. Added the [rand] command.
2005-03-21Add copyright notice within jim.c & jim.h to acknowledge Jim's license.chi1-1/+2
2005-03-21Add the [scan] command and the Jim_ScanString function + tests.chi1-3/+6
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".
2005-03-19[finalize] command and relative C API added (SS).antirez1-1/+5
2005-03-17Objects hash function changed.antirez1-1/+3
2005-03-17[source] command added.antirez1-2/+2
2005-03-17The interactive prompt can now used to type/paste multi line scripts.antirez1-4/+5
Every line is appended to the previous until the script does not appear to be complete (tested by Jim_IsScriptComplete()).
2005-03-16[env] modified to just be able to read a specified var nameantirez1-3/+2
form the environment, i.e. to be ANSI-C. Minor fix to AIO extension to use the new DelProc API.
2005-03-16Added interpreter pointer to the command delete proc.patthoyts1-3/+4
2005-03-15A first version of [info complete].antirez1-1/+3
2005-03-14'iterator' argument modified to 'iter' for C++ STL safety.antirez1-2/+2
2005-03-14more fixes to allow inclusion of jim.h into C++ programs.antirez1-4/+6
2005-03-14Some change to make jim.h more C++ friendly, still not workingantirez1-4/+9
with g++ btw.
2005-03-13Max nesting depth modified to 10000antirez1-2/+2
2005-03-12Added the ability to compile with -DJIM_ANSIC to use only ANSI-Cantirez1-2/+2
features and libraries.
2005-03-12Added the Jim_FreeNewObj() macro to free objects with refcount == 0antirez1-1/+10
instead to call Jim_IncrRefCount + Jim_DecrRefCount(), or directly Jim_FreeObj(). Code modified accordingly where needed. Make test + valgrind test passed after the change.
2005-03-11static variables supportantirez1-4/+6
2005-03-10lrange command (me)antirez1-1/+4
2005-03-09[linsert] command added (Clemens Hintze).antirez1-1/+4
Jim_GetIndex() semantic changed to make [lindex] more compatible with Tcl's one, without effects on other commnads (me).
2005-03-08Did some fix in jimsh.c, exported some more API function to setantirez1-1/+10
variables and global variables using a string C as name instead of a Jim_Obj. This is more handy in mani conditions.
2005-03-08JIM_VERSION is to be an integer value which we present as MAJOR.MINOR topatthoyts1-4/+2
users. MAJOR is JIM_VERSION / 100
2005-03-08Added [info patchlevel] and setup argv0 and argv variables in jimsh.patthoyts1-2/+2
Changed Jim_InteractivePrompt to take a pre-initialized interpreter.
2005-03-07Faster procedure calls (obtained caching the hashtable, and withantirez1-2/+2
a fast path to free the cached hash tables elements).
2005-03-07Refactored the [info] command and added body and version to the command.patthoyts1-6/+7
Added a simple version of [lsort] (no options yet).