summaryrefslogtreecommitdiffstats
path: root/generic
Commit message (Collapse)AuthorAgeFilesLines
* * generic/tclTest.c (Testregexpobjcmd): Removed an invalid accessKevin B Kenny2007-04-231-2/+2
| | | | beyond the end of 'objv' in 'testregexp -about'.
* * generic/tclEnv.c (ReplaceString): Clear memory correctly whenKevin B Kenny2007-04-232-21/+32
| | | | | | | | | growing the cache to avoid reads of uninitialised data. * generic/tclStrToD.c (AccumulateDecimalDigit): Fixed a mistake where we'd run beyond the end of the 'pow10_wide' array if a number begins with a string of more than 'maxpow10_wide' zeroes. Both these issues reported under [Bug 1705778] - detected with the existing test suite, no new regression tests required.
* * generic/tclVar.c (TclDeleteNamespaceVars): fixed access to freedMiguel Sofer2007-04-231-3/+2
| | | | memory detected by valgrind.
* * generic/tclListObj.c (SetListFromAny): avoid discarding internalMiguel Sofer2007-04-201-56/+106
| | | | reps of objects converted to singleton lists [Patch 738900]
* Replaced commas in varargs with string concatenation where possible [Patch ↵Kevin B Kenny2007-04-2010-59/+59
| | | | 1515234]
* Whitespace policing, replacing commas in varargs with constant string ↵Kevin B Kenny2007-04-2011-44/+44
| | | | catenation, and fixed an oversight in the fix for NZA time zones.
* Fixed a buglet in recognizing time zone SIERRAKevin B Kenny2007-04-202-3/+3
|
* * tests/clock.test (clock-59.1): Added a regression test forKevin B Kenny2007-04-202-51/+51
| | | | | | military time zone input conversion. [Bug 1586828]. * generic/tclGetDate.y (MilitaryTable): Fixed an ancient bug where the military NZA time zones had the signs reversed [Bug 1586828].
* * doc/clock.n: Corrected a silly error (transposed 'uppercase'Kevin B Kenny2007-04-201-2/+3
| | | | | | | | | | | | | | | and 'lowercase' in clock.n. [Bug 1656002] Clarified that [clock scan] does not recognize a locale's alternative calendar. * library/clock.tcl: Corrected an error in skipping over the %Ey field on input. * library/msgs/ja.msg: * tools/loadICU.tcl: Corrected several localisation faults in the Japanese locale (most notably, incorrect dates for the Emperors' eras). [Bug 1637471]. Many thanks to SourceForge user 'nyademo' for pointing this out and developing a fix. * generic/tclPathObj.c: Corrected a 'const'ness fault that caused bitter complaints from MSVC.
* Improve const-correctness of RE compilerdkf2007-04-194-78/+80
|
* * generic/tclExecute.c (INST_LSHIFT): fixed a mistake introducedMiguel Sofer2007-04-191-2/+2
| | | | | | | in version 1.266 ('=' became '=='), which effectively turned the block that handles native shifts into dead code. This explains why the testsuite did not pick this mistake. Rewrote to make the intention clear.
* * generic/tclInt.h (TclDecrRefCount): change the order of theMiguel Sofer2007-04-181-6/+7
| | | | | branches, use empty 'if ; else' to handle use in unbraced outer if/else conditions (as already done in tcl.h)
* * generic/tclExecute.c: slight changes in Tcl_Obj management.Miguel Sofer2007-04-181-22/+28
|
* * generic/tclExecute.c: fixed checkInterp logic [Bug 1702212]Miguel Sofer2007-04-171-8/+11
|
* Eliminate use of (VOID*) casts when calling memset or memcpy.dkf2007-04-177-35/+35
|
* Always cast arg to ckfree to char*, not VOID*dkf2007-04-171-3/+3
|
* Complete the purge of K&R function definitions from manually-written code.dkf2007-04-165-1721/+1704
|
* * generic/tclCompCmds.c: added a cast to silence a compilerKevin B Kenny2007-04-151-2/+2
| | | | | | | | error on VC2005. * library/clock.tcl: Restored unique-prefix matching of keywords on the [clock] command. [Bug 1690041] * tests/clock.test: Added rudimentary test cases for unique-prefix matching of keywords.
* * generic/tclExecute.c: removed some code at INSTEXPAND_SKTOP thatMiguel Sofer2007-04-141-8/+6
| | | | duplicates functionality already present at checkForCatch.
* removed stray '//'Miguel Sofer2007-04-111-2/+2
|
* * generic/tclExecute.c: new macros OBJ_AT_TOS, OBJ_UNDER_TOS,Miguel Sofer2007-04-111-141/+145
| | | | | | OBJ_AT_DEPTH(n) and CURR_DEPTH that remove all direct references to tosPtr from TEBC (after initialisation and the code at the label cleanupV_pushObjResultPtr).
* fixing commentsMiguel Sofer2007-04-111-4/+1
|
* * generic/tclCompCmds.c: moved all exceptDepth management to theMiguel Sofer2007-04-111-11/+15
| | | | macros - the decreasing half was managed by hand.
* assorted minor cleanupdkf2007-04-101-12/+16
|
* Don't use C++ keywordsdkf2007-04-101-4/+4
|
* Reformat to standard function definition formdkf2007-04-101-24/+27
|
* Complete conversion to ANSI function definitionsdkf2007-04-101-3/+3
|
* Reformat to standard function definition form; don't use C++ keywordsdkf2007-04-101-7/+9
|
* Complete conversion to ANSI function definitionsdkf2007-04-101-3/+3
|
* Reformat to standard function definition formdkf2007-04-101-2/+5
|
* Complete conversion to ANSI function definitionsdkf2007-04-101-8/+8
|
* Handle creation of Tcl_Objs from constant strings better (easier to use, moredkf2007-04-1029-247/+258
| | | | efficient). After [Patch 1529526] (afredd)
* * generic/tclCompile (tclInstructionTable): fixed bugs inMiguel Sofer2007-04-081-6/+9
| | | | description of dict instructions
* * generic/tclCompile (tclInstructionTable): fixed bug inMiguel Sofer2007-04-071-2/+2
| | | | description of INST_START_COMMAND.
* * generic/tclExecute.c (TEBC): small code reduction.Miguel Sofer2007-04-071-25/+2
|
* * generic/tclExecute.c (TEBC):Miguel Sofer2007-04-063-450/+488
| | | | | | | | * generic/tclNamespace.c (NsEnsembleImplementationCmd): * generic/tclProc.c (InitCompiledLocals, ObjInterpProcEx, TclObjInterpProcCore, ProcCompileProc): code reordering to reduce branching and improve branch prediction (assume that forward branches are typically not taken).
* Simplification of some argument processing through introduction of a helperdkf2007-04-051-26/+26
| | | | macro.
* Tighten up a commentdkf2007-04-051-8/+7
|
* added commentsMiguel Sofer2007-04-041-1/+5
|
* * generic/tclExecute.c: INST_INVOKE optimisation [Patch 1693802]Miguel Sofer2007-04-031-6/+24
|
* * generic/tclInt.decls: Moved TclGetNamespaceFromObj() toMiguel Sofer2007-04-034-7/+22
| | | | | | * generic/tclInt.h: the internal stubs table; regen. * generic/tclIntDecls.h: * generic/tclStubInit.c:
* * generic/tclNamesp.c: Revised ErrorCodeRead and ErrorInfoReaddgp2007-04-031-7/+21
| | | | | trace routines so they guarantee the ::errorCode and ::errorInfo variable always appear to exist. [Bug 1693252].
* * generic/tclBasic.c: Added bytecode compilers for theMiguel Sofer2007-04-037-85/+630
| | | | | | | | * generic/tclCompCmds.c: variable linking commands: 'global', * generic/tclCompile.h: 'variable', 'upvar', 'namespace upvar' * generic/tclExecute.c: [Patch 1688593] * generic/tclInt.h: * generic/tclVar.c:
* * generic/tclBasic.c: Replace arrays on the C stack and ckallocdgp2007-04-029-102/+47
| | | | | | | | | | | | * generic/tclExecute.c: calls with TclStackAlloc calls to use memory * generic/tclFCmd.c: on Tcl's evaluation stack. * generic/tclFileName.c: * generic/tclIOCmd.c: * generic/tclIndexObj.c: * generic/tclInterp.c: * generic/tclNamesp.c: * generic/tclTrace.c: * unix/tclUnixPipe.c:
* Ensure that the count of commands commenced by bytecode is correct at all timesdkf2007-04-012-311/+569
| | | | | | even though INST_START_CMD is now issued more efficiently. Changes definition of I_S_C, but that's an 8.5 opcode so that shouldn't matter; tbcload doesn't work with 8.5 at the moment anyway.
* Minor simplification.dkf2007-04-011-11/+12
|
* * generic/tclCompile.c:dgp2007-03-301-7/+9
| | | | | | | * generic/tclCompExpr.c: * generic/tclCompCmds.c: Replace arrays on the C stack and ckalloc calls with TclStackAlloc calls to use memory on Tcl's evaluation stack
* * generic/tclCompExpr.c:dgp2007-03-301-13/+18
| | | | | | * generic/tclCompCmds.c: Replace arrays on the C stack and ckalloc calls with TclStackAlloc calls to use memory on Tcl's evaluation stack
* * generic/tclCompCmds.c: Replace arrays on the C stack anddgp2007-03-301-43/+31
| | | | | ckalloc calls with TclStackAlloc calls to use memory on Tcl's evaluation stack
* * generic/tclCmdMZ.c: Revised [string to* $s $first $last]dgp2007-03-301-8/+4
| | | | implementation to reduce number of allocs/copies.