Age | Commit message (Collapse) | Author | Files | Lines |
|
And other small testing improvements
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Signed-off-by: Steve Bennett <steveb@workware.net.au>
|
|
Makes creating error messages much simpler
Also convert a couple of long if/else to switch
Also some error message improvements
Also fix some memory leaks
|
|
From Tcl 8.5, implicitly set variable to 0
|
|
Support end+<n> index
And generally simplify the index handling
Add support for 'info nameofexecutable'
|
|
*: Allow math functions to be enabled via configure
*: Allow support for references to be removed
*: Documentation updates
*: Jim_ListLength() now returns the result directly
*: Optimise list -> dict conversion
*: Consistent capitalisation of some structures, functions
*: Add support for abbreviations to Jim_GetEnum()
*: The commands to 'info' may be abbreviated
*: Use abbreviation support in parsing options to 'subst'
*: Use Jim_GetEnum() to parse return code names
*: Optimise 'array get', 'array set' if no conversion needed
*: Import Tcl string.test
*: string compare now returns -1,0,1 like Tcl
*: Fix 'string last' with index=0
*: Add support for 'string reverse'
*: Add -nocase option to 'string equal'
*: Fix infinite loop in 'string repeat str -1'
*: Support braced patterns in glob
*: glob should not return dot files unless the pattern starts with .
*: Simplify glob.tcl by using some new features
*: When creating C extensions from Tcl, preserve newlines and invoke
with Jim_Eval_Named() to produce more meaningful error messages.
*: Also remove all comments, not just those starting in the first column
*: Add support for 'n+n' and 'n-n' in string/list indexes (Tcl 8.5)
*: Add a level to the stack trace for 'return -code error'
*: 'return -code' should also affect the return from 'source' (see Tcl docs)
*: Fix lsort -command
*: Some systems don't have INFINITY
|
|
From Tcl 8.4 (see TIP 76: http://www.tcl.tk/cgi-bin/tct/tip/76.html)
|
|
|
|
Use libc strtoull() for long long conversions
Also some white space cleanup
Also remove some win32 vestiges
Also improve error messages for array access errors
|
|
Implement 'lreplace'
Implement 'string last'
Implement 'pid'
Implement 'info procs'
Implement 'info script'
Implement 'info patchlevel' as an alias for 'info version'
Implement syslog extensions for jim
Fix return code display in jim-interactive.c
Make jim more compatible if JIM_TCL_COMPAT is set
*: Use tcl_interactive rather than jim_interactive
*: Use auto_path rather than jim_libpath
Add "." to the lib search path, not "./"
Fix a couple of files with CRLF line endings
|
|
|
|
* jim-regexp.c: Add regexp extension for regexp and regsub commands
|
|
a bit different semantic.
|
|
|
|
|
|
|
|
|
|
|
|
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".
|
|
|
|
|
|
Added a regression test to test.tcl
(I plan to move everything inside regtest.tcl into test.tcl).
|
|
|
|
Jim_GetIndex() semantic changed to make [lindex] more compatible
with Tcl's one, without effects on other commnads (me).
|
|
|
|
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.
|
|
avoid problems with -command and shimmering of the objects
passed as [switch] arguments.
|
|
in the BUG file about jim.libpath lookup performed using the local
variable API that's now fixed. In order to fix the problem the new
API call Jim_GetGlobalVariableStr() was added.
Jim_GetVariableStr() and Jim_GetGlobalVariableStr() are now exported.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Also a patch about empty string and StringAppendString
causing memory corruption, and a patch about Jim_WrongNumArgs
that I modified because caused other tests to fail.
|
|
|
|
|
|
|
|
More tests. A fix in the parsing code for line number calculation.
|
|
|
|
|