summaryrefslogtreecommitdiffstats
path: root/generic
Commit message (Collapse)AuthorAgeFilesLines
* Fix [Bug 1587618], eliminating the callObjc and callObjv fields from the Interpdkf2006-10-314-90/+52
| | | | structure.
* boo - last commit did not compile :(Miguel Sofer2006-10-311-2/+2
|
* * generic/tclBasic.c (TEOVI): insured that the interp's callObjc/vMiguel Sofer2006-10-311-3/+13
| | | | | fields are restored after traces run, as they be spoiled. This was causing a segfault in tcllib's profiler tests.
* * generic/tclExecute.c (INST_MOD): Corrected improper testing ofdgp2006-10-301-3/+3
| | | | | * tests/expr.test: the sign of bignums when applying Tcl's division rules. Thanks to Peter Spjuth. [Bug 1585704]
* D'oh! Updated the wrong thing.dkf2006-10-301-13/+15
|
* Add missing initialization.dkf2006-10-301-1/+2
|
* * generic/tclNamesp.c (EnsembleImplementationCmd):Miguel Sofer2006-10-291-2/+2
| | | | | * tests/namespace.test (47.7-8): reverted a wrong "optimisation" that completely broke snit; added two tests.
* Minor style consistency cleanupdkf2006-10-281-39/+39
|
* Added some explanatory comments.dkf2006-10-281-10/+14
|
* Regendkf2006-10-282-2/+17
|
* Insert of calling point in middle of procedure code. Also cleaned up howdkf2006-10-283-121/+245
| | | | [apply] terms generate stack trace info.
* Make a comment look nicer. :-)dkf2006-10-281-3/+3
|
* Added missing type to declarationdkf2006-10-271-2/+2
|
* Cleaning up of various bits in tclVar.c to make code clearer to understand.dkf2006-10-271-38/+41
|
* Regendkf2006-10-272-2/+14
|
* Allow extensions that use the internal stubs to set a namespace path.dkf2006-10-272-9/+10
|
* Add field to CallFrame for holding object call frame data.dkf2006-10-272-4/+14
|
* Regendkf2006-10-271-3/+3
|
* Fixed a spot where CONSTness had been forgotten.dkf2006-10-272-7/+7
|
* * generic/tclProc.c (SetLambdaFromAny): minor change, eliminateMiguel Sofer2006-10-271-2/+2
| | | | redundant call to Tcl_GetString (thanks aku).
* * generic/tclInterp.c (ApplyObjCmd):aMiguel Sofer2006-10-262-6/+7
| | | | | * generic/tclNamesp.c (EnsembleImplementationCmd): replaced ckalloc (heap) with TclStackAlloc (execution stack).
* * generic/tclProc.c (ObjInterpProcEx): disable itcl hacks forMiguel Sofer2006-10-241-8/+8
| | | | | calls from ApplyObjCmd (islambda==1), as they mess apply's error messages [Bug 1583266]
* * generic/tclProc.c (ApplyObjCmd): fix wrong#args for apply byMiguel Sofer2006-10-242-16/+39
| | | | | | using the ensemble rewrite engine, [Bug 1574835]. * generic/tclInterp.c (AliasObjCmd): previous commit missed usage of TCL_EVAL_NOREWRITE for aliases.
* * generic/tclBasic.c (TclEvalObjvInternal): removed redundantMiguel Sofer2006-10-231-3/+2
| | | | check for ensembles [Bug 1577628].
* * library/clock.tcl (format, scan): corrected wrong # argsMiguel Sofer2006-10-235-19/+43
| | | | | | | | | | | | | | | | | * tests/clock.test (3.1, 34.1): messages to make use of the new rewrite capabilities of [info level] * generic/tcl.h: Lets TEOV update the iPtr->objc/objv * generic/tclBasic.c: fields, except when the (new) flag bit * generic/tclInt.h: TCL_EVAL_NOREWRITE is present. This * generic/tclNamesp.c: causes [info level] to know and use * generic/tclProc.c: ensemble rewrites [Bug 1577492] * tests/namespace.test: ***POTENTIAL INCOMPATIBILITY*** The return value from [info level 0] on interp alias calls is changed: previously returned the target command (including curried values), now returns the source - what was actually called.
* * generic/tcl.h: Modified the Tcl call stack soMiguel Sofer2006-10-239-130/+138
| | | | | | | | | | | | | * generic/tclBasic.c: there is always a valid CallFrame, even * generic/tclCmdIL.c: at level 0 [Patch 1577278]. Most of the * generic/tclInt.h: changes involve removing tests for * generic/tclNamesp.c: iPtr->(var)framePtr==NULL. There is now a * generic/tclObj.c: CallFrame pushed at interp creation * generic/tclProc.c: with a pointer to it stored in * generic/tclTrace.c: iPtr->rootFramePtr. A second unused * generic/tclVar.c: field in Interp is hijacked to enable further functionality, currently unused (but with several FRQs depending on it).
* * README: Bump version number to 8.5a6dgp2006-10-231-2/+2
| | | | | | | | | | | | | * generic/tcl.h: * library init.tcl: * tools/tcl.wse.in: * unix/configure.in: * unix/tcl.spec: * win/README.binary: * win/configure.in: * unix/configure: autoconf-2.59 * win/configure:
* * README: Bump version number to 8.5a6dgp2006-10-231-3/+3
| | | | | | | | | | | | * generic/tcl.h: * tools/tcl.wse.in: * unix/configure.in: * unix/tcl.spec: * win/README.binary: * win/configure.in: * unix/configure: autoconf-2.59 * win/configure:
* * generic/tcl.h:Miguel Sofer2006-10-222-72/+15
| | | | | | | | * generic/tclHash.c: Tcl_FindHashEntry() now calls Tcl_CreateHashEntry() with a newPtr set to NULL: this would have caused a segfault previously and eliminates duplicated code. A macro has been added to tcl.h (only used when TCL_PRESERVE_BINARY_COMPATABALITY is not set - ie, not by default).
* Undo mistaken commit to wrong branch caused by CVS fumble... :-}dkf2006-10-2014-6752/+107
|
* Consolidated TIP#257 patch applied to HEAD to allow for experimentation bydkf2006-10-2014-107/+6752
| | | | other developers
* * generic/tclInterp.c (ApplyObjCmd): fixed bad error in 2006-10-12Miguel Sofer2006-10-171-2/+5
| | | | commit: interp released too early. Spotted by mistachkin.
* * tclProc.c (SetLambdaFromAny):Miguel Sofer2006-10-161-2/+6
| | | | | * tests/apply.test (9.1-9.2): plugged intrep leak [Bug 1578454], found by mjanssen.
* * generic/tclPkg.c (ExactRequirement): Plugged memory leak. Alsodgp2006-10-161-4/+5
| | | | | changed Tcl_Alloc()/Tcl_Free() calls to ckalloc()/ckfree() for easier memory debugging in the future. [Bug 1568373]
* * generic/tclBasic.c: Moved TIP#219 cleanup to DeleteInterpProc.andreas_kupries2006-10-161-10/+10
|
* * generic/tclInterp.c (ApplyObjCmd):Miguel Sofer2006-10-121-5/+26
| | | | | | * tests/interp.test (interp-14.5-10): made [interp alias] use the ensemble rewrite machinery to produce better error messages [Bug 1576006]
* * generic/tclPkg.c (Tcl_PackageRequireEx): Corrected crashdgp2006-10-111-8/+12
| | | | when argument version=NULL passed in.
* * generic/tclNamespace.c (TclTeardownNamespace): After thedgp2006-10-101-1/+2
| | | | | | commandPathSourceList of a namespace is cleared, set the commandPathSourceList to NULL so we don't try to walk the list a second time, possibly after it is freed. [Bug 1566526]
* Silence GCC (cast is always safe; value is known to fit with wiggle room)dkf2006-10-101-2/+2
|
* TIP #275: Support unsigned values in binary commandpatthoyts2006-10-061-19/+57
|
* (UnicodeToUtfProc): dst must be set to (ch & 0xFF) to work on big endian systemshobbs2006-10-061-2/+2
|
* * generic/tcl.h: note limitation on changing Tcl_UniChar sizehobbs2006-10-052-28/+40
| | | | | | * generic/tclEncoding.c (UtfToUnicodeProc, UnicodeToUtfProc): * tests/encoding.test (encoding-16.1): fix alignment issues in unicode <> utf conversion procs. [Bug 1122671]
* * generic/tclVar.c (Tcl_LappendObjCmd):Miguel Sofer2006-10-051-2/+7
| | | | | * tests/append.test(4.21-22): fix for longstanding [Bug 1570718], lappending nothing to non-list. Reported by lvirden
* * generic/tclUtil.c (Tcl_SplitList): optimisation, [Patch 1344747]Miguel Sofer2006-09-301-5/+16
| | | | by dgp.
* * generic/tclInt.decls:Miguel Sofer2006-09-305-22/+69
| | | | | | | | | * generic/tclInt.h: * generic/tclIntDecls.h: * generic/tclObj.c: * generic/tclStubInit.c: added an internal function TclObjBeingDeleted to provide info as to the reason for the loss of an internal rep. [FR 1512138]
* * generic/tclCompile.c:Miguel Sofer2006-09-304-63/+80
| | | | | | | | | * generic/tclHistory.c: * generic/tclInt.h: * generic/tclProc.c: made Tcl_RecordAndEvalObj not call "history" if it has been redefined to an empty proc, in order to reduce the noise when debugging [FR 1190441]. Moved TclCompileNoOp from tclProc.c to tclCompile.c
* * generic/tclPkg.c (CompareVersions): Bugfix. Check string lengthsandreas_kupries2006-09-281-9/+17
| | | | | | | * tests/pkg.test: before comparison. The shorter string is the smaller number. Added testcases as well. Interestingly all existing test cases for vcompare compared numbers of the same length with each other. See [SF Tcl Bug 1563836].
* * generic/tclExecute.c: Corrected error in INST_LSHIFT in thedgp2006-09-281-2/+2
| | | | | | | | * tests/expr.test: calculation done to determine whether a shift in the (long int) type is possible. The calculation had literal value "1" where it needed a value "1L" to compute the correct result. Error detected via testing with the math::bigfloat package [Bug 1567222]
* * generic/tclIO.c (Tcl_GetsObj): added two test'n'panic guards forMiguel Sofer2006-09-281-1/+7
| | | | possible NULL derefs, [Bug 1566382] and coverity #33.
* * generic/tclPkg.c (CompareVersion): Flatten strcmp() results todgp2006-09-281-1/+2
| | | | {-1, 0, 1} to match expectations of CompareVersion() callers.