summaryrefslogtreecommitdiffstats
path: root/generic/tclTestObj.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix libtommath's mp_radix_size() function such that it returns 2 for ↵jan.nijtmans2016-11-171-2/+47
| | | | single-digit numbers. Add testcases for mp_radix_size() and mp_iseven(). Undo useless change in bn_mp_add_d.c (bring back libtommath's version).
* Use twoPtrValue.ptr1 in stead of otherValuePtr everywhere. This is exactly ↵jan.nijtmans2013-01-311-4/+4
| | | | the same field, but it allows twoPtrValue.ptr2 to be used for other purposes.
* test case for bug-3598580: Tcl_ListObjReplace may release deleted elements ↵jan.nijtmans2013-01-031-0/+11
|\ | | | | | | too early
| * test case for bug-3598580: Tcl_ListObjReplace may release deleted elements ↵jan.nijtmans2013-01-031-0/+11
| | | | | | | | too early
* | Now that we're no longer using SCM based on RCS, the RCS Keyword lines causedgp2011-03-021-2/+0
|\ \ | |/ | | more harm than good. Purged them.
| * Now that we're no longer using SCM based on RCS, the RCS Keyword lines causedgp2011-03-011-2/+0
| | | | | | more harm than good. Purged them.
| * * generic/tclStringObj.c: Added protections from invalid memorydgp2009-03-301-2/+65
| | | | | | | | | | | | | | * generic/tclTestObj.c: accesses when we append (some part of) * tests/stringObj.test: a Tcl_Obj to itself. Added the appendself and appendself2 subcommands to the [teststringobj] testing command and added tests to the test suite. [Bug 2603158]
* | constification backport to silence warningdgp2010-03-191-3/+3
| |
* | * generic/tclListObj.c: Prevent in overflow trouble in [lreplace]dgp2010-03-181-1/+101
| | | | | | | | | | * generic/tclTestObj.c: operations. Thanks to kbk for fix and test. * tests/listObj.test: [Bug 2971669].
* | * generic/tclStringObj.c: Added protections from invalid memorydgp2009-03-301-2/+66
| | | | | | | | | | | | | | * generic/tclTestObj.c: accesses when we append (some part of) * tests/stringObj.test: a Tcl_Obj to itself. Added the appendself and appendself2 subcommands to the [teststringobj] testing command and added tests to the test suite. [Bug 2603158]
* | merge stable branch onto HEADdgp2007-12-131-1/+1
| |
* | * generic/tclBasic.c: Removed dead code, including thedgp2007-06-281-66/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclExecute.c: entire file tclMathOp.c. * generic/tclInt.h: * generic/tclMathOp.c (removed): * generic/tclTestObj.c: * win/tclWinFile.c: * unix/Makefile.in: Updated to reflect deletion of tclMathOp.c. * win/Makefile.in: * win/makefile.bc: * win/makefile.vc:
* | Replaced commas in varargs with string concatenation where possible [Patch ↵Kevin B Kenny2007-04-201-2/+2
| | | | | | | | 1515234]
* | Complete the purge of K&R function definitions from manually-written code.dkf2007-04-161-55/+55
| |
* | various "const" additions in implementationnijtmans2007-03-071-22/+22
| |
* | ANSIfy the test code (well, strip some of the worst offences!)dkf2005-11-021-130/+121
| |
* | TIP#237 IMPLEMENTATIONdgp2005-10-081-1/+7
| | | | | | | | | | | | [kennykb-numerics-branch] Resynchronized with the HEAD; at this checkpoint [-rkennykb-numerics-branch-20051008], the HEAD and kennykb-numerics-branch contain identical code.
* | Add missing return TCL_ERRORdkf2005-06-071-111/+103
| |
* | Merged kennykb-numerics-branch back to the head; TIPs 132 and 232Kevin B Kenny2005-05-101-1/+171
|/
* filesystem cleanup fix, virtual filesystem load fixvincentdarley2002-12-041-2/+9
|
* Further changes to the TIP 72 patch to make it compile under VC++Kevin B Kenny2002-02-151-2/+3
|
* TIP#72 implementation. See ChangeLog for details.dkf2002-02-151-8/+21
| | | | | This version builds clean on Solaris/SPARC, with GCC and CC, both with and without threads and both in 32-bit and 64-bit mode.
* * More TIP 27 updates in tclIOUtil.c and tclIndexObj.c that weredgp2002-01-171-5/+5
| | | | | | | overlooked before. Updated callers. ***POTENTIAL INCOMPATIBILITY*** Includes a source incompatibility in the tablePtr arguments of the Tcl_GetIndexFromObj* routines.
* Reference implementation of TIP's #22, #33 and #45. Adds thehobbs2001-11-141-1/+14
| | | | | | ability of the [lindex] command to have multiple index arguments, and adds the [lset] command. Both commands are byte-code compiled. [Patch #471874] (work by Kenny, commited by Hobbs)
* Now correctly test for (and fix) Bug #119082.dkf2000-11-241-2/+3
|
* beefed up the string object testshershey1999-06-151-2/+15
|
* Improved the appendObj functions (uncomented the optimized code that washershey1999-06-151-3/+18
| | | | | | | | | present in the Unicode obj). Updated the teststringobj command to look in the correct location for the amount of space allocated for the UTF string rep. Note: one stringObj test is still failing; it reflects a change in that may not be undesirable...
* * tests/string.test:hershey1999-06-081-3/+22
| | | | | | | | | | | | | | | | | | | | | | | * generic/tclVar.c (Tcl_SetVar2Ex): * generic/tclStringObj.c (Tcl_AppendObjToObj): * generic/tclCmdMZ.c (Tcl_StringObjCmd): optimized the string index, string length, string range, and append command in cases where the object's internal rep is a bytearray. Objects with other internal reps are converted to have the new unicode internal rep. * unix/Makefile.in: * win/Makefile.in: * win/Makefile.vc: * tests/unicode.test: * generic/tclInt.h: * generic/tclObj.c: * generic/tclUnicodeObj.c: added a new object type to store the unicode representation of a string. * generic/tclTestObj.c: added the objtype option to the testobj command. This option returns the name of the type of internal rep an object has.
* merged tcl 8.1 branch back into the main trunkstanton1999-04-161-90/+103
|
* Replaced SCCS strings, fixed binary filescore_8_0_3stanton1998-09-141-1/+1
|
* Initial revisionrjohnson1998-03-261-0/+1097