aboutsummaryrefslogtreecommitdiff
path: root/jim.c
AgeCommit message (Collapse)AuthorFilesLines
2005-03-14'iterator' argument modified to 'iter' for C++ STL safety.antirez1-17/+17
2005-03-14more fixes to allow inclusion of jim.h into C++ programs.antirez1-4/+5
2005-03-14Removed the inclusion of a not-needed header file "sys/time.h"antirez1-5/+1
that prevented compilation with JIM_ANSIC under non POSIX systems.
2005-03-14[lmap] command.antirez1-9/+42
2005-03-13[string first]. Tests still not added, until [string] is not (almost instead)antirez1-8/+57
complete.
2005-03-13[string index] implementedantirez1-28/+24
2005-03-12Jim_GetEnum() will now sort the options in the error message (ss)antirez1-2/+15
2005-03-12Added the ability to compile with -DJIM_ANSIC to use only ANSI-Cantirez1-6/+7
features and libraries.
2005-03-12Added the Jim_FreeNewObj() macro to free objects with refcount == 0antirez1-32/+17
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-12It's now possible to exclude compilation of dynamic loadedantirez1-3/+17
libraries commenting the JIM_DYNLIB define from the first lines of jim.c.
2005-03-12Modified Jim_Free() to be more strict, now it panics if theantirez1-3/+3
refcount of the object is not exactly 0. Now new objects that are not used may be freed using Jim_Free instead to use Jim_IncrRefCount() + Jim_DecrRefCount() calls.
2005-03-11Converted some free() call to Jim_Free(). Actually Jim_Freeantirez1-7/+7
is a macro that just expands to free for now, but in the future Jim may include a specialized allocator for better performances.
2005-03-11[lambda] modified to be 'statics' capable.antirez1-3/+3
2005-03-11Fix about [rename] against procedures with statics.antirez1-1/+3
Added a regression test to test.tcl (I plan to move everything inside regtest.tcl into test.tcl).
2005-03-11more static fixes (me)antirez1-6/+13
2005-03-11tons of static var fixes...antirez1-14/+22
2005-03-11static variables supportantirez1-23/+113
2005-03-10lrange command (me)antirez1-28/+80
2005-03-10Some fix to bench.tcl to make it able to run in Tcl7.6.antirez1-1/+14
README update.
2005-03-09[linsert] command added (Clemens Hintze).antirez1-2/+83
Jim_GetIndex() semantic changed to make [lindex] more compatible with Tcl's one, without effects on other commnads (me).
2005-03-09An initial [format] command.antirez1-2/+78
2005-03-08Did some fix in jimsh.c, exported some more API function to setantirez1-3/+30
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-9/+8
users. MAJOR is JIM_VERSION / 100
2005-03-08Added [info patchlevel] and setup argv0 and argv variables in jimsh.patthoyts1-7/+5
Changed Jim_InteractivePrompt to take a pre-initialized interpreter.
2005-03-08aesthetic changes to source code (SS)antirez1-175/+80
2005-03-08Removed an useless #if0 ... #endif block of code.antirez1-42/+1
2005-03-08Info exists + tests (Clemens Hintze).antirez1-4/+15
2005-03-08Applied patch about unset a(x) against non existing 'a' variableantirez1-17/+6
(Clemens Hintze). Dictionary handling code and error messages modified a bit (me).
2005-03-07Fixed a memory leak introduced with the last callframe caching codeantirez1-1/+3
commit.
2005-03-07Faster procedure calls (obtained caching the hashtable, and withantirez1-18/+48
a fast path to free the cached hash tables elements).
2005-03-07Added "increasing", "decreasing", "ascii", "nocase" optionsantirez1-10/+53
to lsort (SS). The plan is to don't add more options than this, but -command, and put "dictionary style" comparison in [string dictcompare].
2005-03-07[lsort] command and list sorting low-level functions (Pat Thoyts).antirez1-16/+38
Speedup for floating point math (me).
2005-03-07Refactored the [info] command and added body and version to the command.patthoyts1-54/+132
Added a simple version of [lsort] (no options yet).
2005-03-07specializing version of while (still not complete, but alreadyantirez1-4/+193
handles most of the cases that it's worth to optimize).
2005-03-06A specializing version of [for] that appears able to match theantirez1-12/+227
performaces of Tcl8.4 for the specialized forms. The implementation is a bit complex so may contain bugs... to handle with care. Also a [for] bug about [continue] was fixed and the regression test added.
2005-03-06Fixed a race condition in the garbage collection code.antirez1-3/+8
In order to fix this, now the hash table iterator works in a way that's save to delete returned entries during the iteration.
2005-03-06Added Jim_GetEnum() API function. StringCoreCommand and AIO extensionantirez1-15/+54
modified to use this API. There are plenty of other places where this will work better than the raw CompareStringImmediate(). Original idea from Tcl, Original implementation from Pat Thoyts, I changed the implementationto use CSI and for automatic error generation with all the valid options listed.
2005-03-05Free an objects internal representation before freeing the string rep.patthoyts1-3/+3
2005-03-05Solved a problem with Jim_Length()antirez1-1/+11
2005-03-05Initial version of AIO (ANSI C I/O) extension added.antirez1-2/+16
Some bit of const safeness. A new API function to get the object length, Jim_Length().
2005-03-05delProc callback added to Jim_CreateCommand().antirez1-4/+14
Core commands handling updated to respect the new sematic.
2005-03-05Added Jim_GetAssocData api. This for permitting packages to register apatthoyts1-2/+52
data structure with a Jim interpreter.
2005-03-05removed strcasecmp() and isascii(). Now the Jim core is fullyantirez1-9/+10
ANSI-C excluding the [load] command. I plan to add a JIM_FORCE_ANSIC ifdef to exclude the load command for compilation.
2005-03-05[switch] command contributed by Clemens Hintze, modified toantirez1-6/+135
avoid problems with -command and shimmering of the objects passed as [switch] arguments.
2005-03-04Added ole32.foreach command, changed creation to ole32.create.patthoyts1-3/+6
Added support for dealing with returned ole32 obejcts. Couple of const fixes in jim core.
2005-03-04Removed two unused parts of code resulting in warnings compilingantirez1-57/+1
under 64bit systems.
2005-03-04Fix for [info local], at top level an empty list is now returned.antirez1-1/+6
2005-03-04binary safe parsers for scripts,lists,expr,subst.antirez1-96/+125
2005-03-04Fixed a bug in Jim_Collect() thanks to Colin McPhail that reported it.antirez1-2/+2
2005-03-04JIM_NOTUSED moved after var declarations blocks.antirez1-4/+4