summaryrefslogtreecommitdiffstats
path: root/generic/tclTestObj.c
Commit message (Collapse)AuthorAgeFilesLines
* Modify testbytestring such that is only produces pure byte-arrays, if not it ↵jan.nijtmans2019-04-011-13/+13
| | | | | errors out. Modify Tcl_NewIntObj/Tcl_NewBooleanObj -> Tcl_NewWideIntObj. Less references to "long" datatype.
* Change TCHAR -> WCHAR in many places, since that's what it is since Windows NTjan.nijtmans2019-03-111-1/+1
|
* Use mp_get_bit() instead of mp_iseven()/mp_isodd(): Those latter functions ↵jan.nijtmans2019-03-081-2/+2
| | | | are macro's currently, but will be real function in next libtommath. Bad idea for Tcl to depend on ...
* If compiled with -DTCL_NO_DEPRECATED, remove ↵jan.nijtmans2018-12-121-6/+6
| | | | | Tcl_NewIntObj/Tcl_NewLongObj/Tcl_DbNewLongObj from stub table, as they will be gone in 9.0 (converted to a macro) Use Tcl_WideInt's directly in more places, diminishing the possibility of inadvent overflow.
* Somewhat better backwards compatibility on 64-bit platforms.jan.nijtmans2017-12-191-0/+4
|
* merge core-8-branch. Also fix some test-cases, expecting the existence of ↵jan.nijtmans2017-11-151-0/+4
| | | | "int" objType.
* more internal use of size_t (in stead of int)jan.nijtmans2016-11-291-1/+1
|
* 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).
| * 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).
| | * 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 the new private flag INDEX_TEMP_TABLE in testing command too.dgp2016-07-201-16/+2
|/ /
* | Use same internal representation for unicode strings in test-cases than in ↵jan.nijtmans2016-07-011-8/+2
| | | | | | | | reality, in order to prevent surprises.
* | merge core-8-5-branchjan.nijtmans2013-01-311-4/+4
|\ \ | |/
| * 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
| | * test case for bug-3598580: Tcl_ListObjReplace may release deleted elements ↵jan.nijtmans2013-01-031-0/+11
| | | | | | | | | | | | too early
* | | [Bug 3386721] Allow multiple [load]ing of the Tcltest packageferrieux2011-08-101-62/+104
| | |
* | | TclFreeIntRep() related cleanup.dgp2011-04-251-2/+1
| | |
* | | Reduce the number of casts used to manage Tcl_Obj internal representations.dkf2011-03-261-6/+4
| | |
* | | 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.
* | | 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).
| * | 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]
* | | * 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].
* | | [ tcl-Feature Requests-2958832 ] Furthernijtmans2010-02-251-8/+8
| | | | | | | | | | | | | | | | | | speed-up of ouster-hash function. Eliminate various unnecessary (ClientData) type casts.
* | | 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
| |