summaryrefslogtreecommitdiffstats
path: root/generic/tclTestObj.c
Commit message (Collapse)AuthorAgeFilesLines
* TclFreeIntRep() related cleanup.dgp2011-04-251-2/+1
| | | FossilOrigin-Name: cb85bb50025cbe392b362b0bb6ab40e29ca8f146
* Reduce the number of casts used to manage Tcl_Obj internal representations.dkf2011-03-261-6/+4
| | | FossilOrigin-Name: b2381061a7b89af02f5c0247d1f4fa8164587470
* Adjust ckalloc/ckfree macros to greatly reduce number of explicit casts indkf2011-03-121-2/+2
| | | | | rest of Tcl source code. No ABI change. API change *should* be harmless. FossilOrigin-Name: 5574bdd262b2672cde48771787370c12854cecf4
* Now that we're no longer using SCM based on RCS, the RCS Keyword linesdgp2011-03-021-2/+0
|\ | | | | | | | | cause more harm than good. Purged them (except in zlib files). FossilOrigin-Name: c64f310d38b977e7ae26a48bcf8bb8c50e453af7
| * 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. FossilOrigin-Name: 79367df0f0e01a96f037f893e889e7cb9b807847
| | * 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. FossilOrigin-Name: 90b4acd7bdab65433169a232124967885c18d972
| | * * 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] FossilOrigin-Name: e85458edfc2b300af1897e58dfc934a6c159df77
| * | constification backport to silence warningdgp2010-03-191-3/+3
| | | | | | | | | FossilOrigin-Name: 702c70c91377ebbda62001c848388067d59d36f4
| * | * 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]. FossilOrigin-Name: a12aaa827fda0f7dde2d611b4c463b229006e08f
| * | * 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] FossilOrigin-Name: f0785bb73d1ccd8a524b32c53d457c63b6bb912f
* | | * 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]. FossilOrigin-Name: d368f281354e8c4a363f1407f7e546a68b14c8cb
* | | [ tcl-Feature Requests-2958832 ] Furthernijtmans2010-02-251-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | speed-up of ouster-hash function. Eliminate various unnecessary (ClientData) type casts. FossilOrigin-Name: b28fef8499c8d600688681143264f48ed28a8ead
* | | 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. FossilOrigin-Name: a1f10986608de4cd38028374e1936207c6142206
* | | Fix [Bug 2883850]: pkgIndex.tcl doesn'tnijtmans2009-11-181-2/+5
| | | | | | | | | | | | | | | | | | get created with static Tcl build FossilOrigin-Name: 39268397d9e495cccd1fe6168edc5d0eb62e8db4
* | | * generic/tclTestObj.c: Replace the [teststringobj ualloc] testingdgp2009-02-161-5/+5
| | | | | | | | | | | | | | | | | | | | | * tests/stringObj.test: command with [teststringobj maxchars] and update the tests. FossilOrigin-Name: e0e22cfc3b6716f53066c78cb638ab57e10c08a7
* | | * 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] FossilOrigin-Name: 1c3c3be74a9d22925b976716432b1bd32cac48d7
* | | * generic/tclTestObj.c: Revise updates to [teststringobj] so we don'tdgp2009-02-141-7/+5
| | | | | | | | | | | | | | | | | | get blocked by MODULE_SCOPE limits. FossilOrigin-Name: 701671c72ea95656f7eb0607bf9a87cc85efaa04
* | | * 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. FossilOrigin-Name: 215d13fc4c629650b11613797b924c9532972946
* | | * 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. FossilOrigin-Name: d0225f51c9421814fec6a0f9846e3e52b5d00f45
* | | - eliminate some unnessary type castsnijtmans2009-02-101-10/+10
| | | | | | | | | | | | | | | | | | | | | - some internal const decorations - spacing FossilOrigin-Name: a45c7b126b9137976cd91960cb3e2ecb5201d222
* | | Style fixes (unfouling whitespace, sorting comments, removing useless casts, ↵dkf2009-01-091-117/+117
| | | | | | | | | | | | | | | etc.) FossilOrigin-Name: cd3c38f00ada216d7bc93560d3d70012c2918343
* | | Eliminate warning: unused variablenijtmans2008-11-261-3/+1
| | | | | | | | | FossilOrigin-Name: 80eddfdb438189b0a89fd97184842b926b54405c
* | | 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. FossilOrigin-Name: 8956424338db83843798b810325dcbd246489b5e
* | | Add "const" to many internalnijtmans2008-10-161-4/+4
| | | | | | | | | | | | | | | | | | | | | const tables. No functional or API change. FossilOrigin-Name: f03d2e2d83be42035c4aad3b01bbd09f5a967c1b
* | | * 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*** FossilOrigin-Name: 4f99dac9fd9e8c3cad5772fdaff95f8bc8fd660a
* | | fix [2021443] inconsistant "wrong # args" messagesnijtmans2008-07-191-2/+2
| | | | | | | | | FossilOrigin-Name: 1e5261316ed076ff5ff69f2a720e8eff30fcf66e
* | | Get rid of pre-C89-isms (esp. CONST vs const).dkf2008-04-271-5/+5
|/ / | | | | FossilOrigin-Name: 2d205c22fbe5def21ccd36bc6f7b2d3831f6122d
* | merge stable branch onto HEADdgp2007-12-131-1/+1
| | | | | | FossilOrigin-Name: d1f7550cd9bf1343d8505fb99fc5141b58bb88bf
* | * 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: FossilOrigin-Name: 151eab934782cc12d150bd04e908ebfc8c09437e
* | Replaced commas in varargs with string concatenation where possible [Patch ↵kennykb2007-04-201-2/+2
| | | | | | | | | | 1515234] FossilOrigin-Name: d0d3c30f1a60ecb75cdca7e63593bb7d7a98f017
* | Complete the purge of K&R function definitions from manually-written code.dkf2007-04-161-55/+55
| | | | | | FossilOrigin-Name: 645aed2fcdcd55ca81df269a4ea262eeca2b9ff2
* | various "const" additions in implementationnijtmans2007-03-071-22/+22
| | | | | | FossilOrigin-Name: 20578ee2a1a96eba7881f7d910665e896aaf84bd
* | ANSIfy the test code (well, strip some of the worst offences!)dkf2005-11-021-130/+121
| | | | | | FossilOrigin-Name: d7327b2b332669015c31924dbaedfa4405b587a3
* | 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. FossilOrigin-Name: 83fdb360a9aec952bc3ad040afe39106bf9e5ec3
* | Add missing return TCL_ERRORdkf2005-06-071-111/+103
| | | | | | FossilOrigin-Name: 194aedaa6ee205baff2744c7143f0da706c98751
* | Merged kennykb-numerics-branch back to the head; TIPs 132 and 232kennykb2005-05-101-1/+171
|/ | | FossilOrigin-Name: 1cc2336920c70c6b9f7825b88dec87fc223f2c4e
* filesystem cleanup fix, virtual filesystem load fixvincentdarley2002-12-041-2/+9
| | | FossilOrigin-Name: 7eeb4a7a690043cdbd826c0e9baf88e051da2b19
* Further changes to the TIP 72 patch to make it compile under VC++kennykb2002-02-151-2/+3
| | | FossilOrigin-Name: ffd6a7d7738c855d3f78a3b416a52091432c6b02
* 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. FossilOrigin-Name: 8d82de1905ada4c5d06f5fb967721e8b681b7c82
* * 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. FossilOrigin-Name: 28b6020550dd9e62f46b824e4c2ba2a6302657f6
* 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) FossilOrigin-Name: 8e0db83abc5d97d0c5f9c8cbb3229ddc8e3a78da
* Now correctly test for (and fix) Bug #119082.dkf2000-11-241-2/+3
| | | FossilOrigin-Name: ec52a943df40871066b51b23a35a8267d8379501
* beefed up the string object testshershey1999-06-151-2/+15
| | | FossilOrigin-Name: 3f45ef233eaa4dbf4fcc0b9e55d62345627fc02f
* 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... FossilOrigin-Name: 6a28946962ebf4d385111ed66d14619c71689ae4
* * 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. FossilOrigin-Name: 8fcb19ead37123b20e22ef888f8c6c310abde293
* merged tcl 8.1 branch back into the main trunkstanton1999-04-161-90/+103
| | | FossilOrigin-Name: f3b32fb71c9011ac220779bd9dbe5617c9dc87d9
* Replaced SCCS strings, fixed binary filescore-8-0-3stanton1998-09-141-1/+1
| | | FossilOrigin-Name: 196f92fd17305db5fec1acd59f6926de11e01624
* Initial revisionrjohnson1998-03-261-0/+1097
FossilOrigin-Name: cacdd0f329872d67973970d74c6978730bc24baa