summaryrefslogtreecommitdiffstats
path: root/generic/tclTestObj.c
Commit message (Collapse)AuthorAgeFilesLines
* Test-case for fixed [Bug 2849797]nijtmans2009-11-191-2/+1
| | | | | | Fix safe-10.1 and safe-10.4 test cases, making the wrong assumption that Tcltest should be a static package.
* Fix [Bug 2883850]: pkgIndex.tcl doesn'tnijtmans2009-11-181-2/+5
| | | | get created with static Tcl build
* * generic/tclTestObj.c: Replace the [teststringobj ualloc] testingdgp2009-02-161-5/+5
| | | | | * tests/stringObj.test: command with [teststringobj maxchars] and update the tests.
* * generic/tclStringObj.c: Added protections from invalid memorydgp2009-02-161-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]
* * generic/tclTestObj.c: Revise updates to [teststringobj] so we don'tdgp2009-02-141-7/+5
| | | | get blocked by MODULE_SCOPE limits.
* * generic/tclStringObj.c: Simplified Tcl_GetCharLength bydgp2009-02-121-1/+7
| | | | | | * generic/tclTestObj.c: removing code that did nothing. Added early returns from Tcl_*SetObjLength when the desired length is already present; adapted test command to the change.
* * generic/tclStringObj.c: Changed type of the 'allocated' fielddgp2009-02-111-2/+2
| | | | | | * generic/tclTestObj.c: of the String struct (and the TestString counterpart) from size_t to int since only int values are ever stored in it.
* - eliminate some unnessary type castsnijtmans2009-02-101-10/+10
| | | | | - some internal const decorations - spacing
* Style fixes (unfouling whitespace, sorting comments, removing useless casts, ↵dkf2009-01-091-117/+117
| | | | etc.)
* Eliminate warning: unused variablenijtmans2008-11-261-3/+1
|
* Eliminate 3 calls to Tcl_SetResult, asnijtmans2008-11-251-3/+2
| | | | | examples how it should have been done. purpose: contribute in the TIP #340 discussion.
* Add "const" to many internalnijtmans2008-10-161-4/+4
| | | | | const tables. No functional or API change.
* * doc/Object.3 CONSTified 3 functions usingnijtmans2008-07-271-2/+2
| | | | | | | | | | | | | | | * doc/ObjectType.3 Tcl_ObjType which all are supposed * generic/tcl.decls to be a constant, but this was not * generic/tcl.h reflected in the API: * generic/tclDecls.h Tcl_ConvertToType * generic/tclObj.c Tcl_GetObjType * generic/tclCompCmds.c Tcl_RegisterObjType * generic/tclOOMethod.c Introduced a CONST86_RETURN, so extensions which * generic/tclTestobj.c use Tcl_ObjType directly can be modified to compile against both Tcl 8.5 and Tcl 8.6 tclDecls.h is re-generated with "make genstubs" This change complies with TIP #24 ***POTENTIAL INCOMPATIBILITY***
* fix [2021443] inconsistant "wrong # args" messagesnijtmans2008-07-191-2/+2
|
* Get rid of pre-C89-isms (esp. CONST vs const).dkf2008-04-271-5/+5
|
* 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