summaryrefslogtreecommitdiffstats
path: root/generic/tclObj.c
Commit message (Collapse)AuthorAgeFilesLines
* Proposed fix for [76ad7aeba3]: boundary case bug in [string is integer]. ↵jan.nijtmans2022-05-221-5/+13
| | | | Missing: more unit-tests
* boolPtr -> intPtr, since Tcl doens't use pointer to bool's (they didn't ↵jan.nijtmans2022-04-201-18/+18
| | | | exist when the API was designed)
* Addendum to [7deeddb36]: Use WIDE_MIN/WIDE_MAX in more placesjan.nijtmans2022-02-171-1/+1
|
* Fix [1c60dca341]: signed integer overflow in Tcl_SetBignumObj()jan.nijtmans2022-02-161-4/+4
|
* Fix [c6fea6ba6]: possible signed integer overflow in Tcl_GetLongFromObj(), ↵jan.nijtmans2022-02-161-2/+2
| | | | Tcl_GetWideIntFromObj()
* Fix [816913a65e]: GrowStringBuffer(): signed integer overflow. And a few ↵jan.nijtmans2022-01-131-1/+1
| | | | similar situations in other place
* IntRep -> InternalRep. Internal changes only.jan.nijtmans2021-10-191-5/+5
|
* Eliminate warnings when compiling with -Wundefjan.nijtmans2020-10-081-1/+1
|
* Eliminate many "register" keywords (which do nothing with modern compilers)jan.nijtmans2020-09-141-97/+97
| | | Eliminate many unnecessary type-casts to (unsigned)
* Fix [https://core.tcl-lang.org/tk/tktview?name=3bc0f44ef3|3bc0f44ef3]: UBSan ↵jan.nijtmans2020-09-111-28/+28
| | | | | complains about body.chars[] usage. (Yes, I know, this one is for Tk, but Tcl was using the same construct too ....)
* Eliminate many unnecessary type-casts, mostly (size_t) when value is already ↵jan.nijtmans2020-08-111-6/+6
| | | | size_t or int
* More uppercase HEX representations in source-code.jan.nijtmans2020-03-181-4/+4
|
* Better error-handling in some libtommath calls.jan.nijtmans2020-01-231-1/+8
|
* Update to latest Tcl (core-8-6-branch) and latest libtommath (1.2.0-rc1)jan.nijtmans2019-10-171-9/+11
|
* end-of-line spacingjan.nijtmans2019-05-241-1/+1
|\
| * cherry-picing of [3f693cdfe9c875c4] to be more compatible across version, ↵sebres2019-05-211-4/+3
| | | | | | | | resolve mistake with "key objects/pointers comparison by the hash entry" firstly introduced there.
* | Merge 8.5jan.nijtmans2019-05-141-5/+5
|\ \ | |/
| * DIGIT_BIT -> MP_DIGIT_BIT, since DIGIT_BIT is deprecated in future ↵jan.nijtmans2019-05-141-5/+5
| | | | | | | | | | libtommath versions. So, better stop using it at all. Also add some other defines/typdefs for future libtommath compatibility.
* | Rewrite documentation in comments for brevity and clarity.pooryorick2018-02-141-14/+17
| |
* | Different solution to silencing the non-useful valgrind alerts.dgp2017-03-131-1/+18
| |
* | Silence valgrind complaints from [representation].dgp2017-03-101-0/+1
| |
* | Update documentation on recent changes in Tcl_LinkVar.jan.nijtmans2017-01-311-6/+6
| | | | | | | | Don't use TCL_NO_DEPRECATED for disabling tests-cases: Those were not deprecated in 8.6 yet. Minor code clean-up. No functional changes.
* | Fix libtommath's mp_radix_size() function such that it returns 2 for ↵jan.nijtmans2016-11-171-5/+3
|\ \ | |/ | | | | 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-5/+3
| | | | | | | | 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).
| * Eliminate a few gcc compiler warnings, when using -Wwrite-strings (tested ↵jan.nijtmans2015-10-011-21/+21
| | | | | | | | with the brand-new gcc 5.2.0)
* | Additiona patch/suggestion from Gustaf. This indeed fixes the crash in ↵jan.nijtmans2016-09-061-1/+1
| | | | | | | | oo.test. Looks good to me, so only waiting for final feedback from Gustaf and eventually feedback from other people.
* | some more clean-upjan.nijtmans2016-09-051-7/+5
| |
* | Proposed patch for [d4e7780ca1681cd095dbd81fe264feff75c988f7|d4e7780ca1], by ↵jan.nijtmans2016-09-021-2/+7
| | | | | | | | Gustaf Neumann
* | Fix [07d13d99b0a9]: Who broke TCL 8.6 and Tclblend ?jan.nijtmans2016-04-101-2/+3
| |
* | typo in comment. Eliminate unnecessary end-of-line spacing.jan.nijtmans2015-10-191-2/+2
| |
* | micro-opt of hash lookups found by drhMiguel Sofer2015-09-221-6/+5
| |
* | Revert refcount changes that were not cosmetic.dgp2015-07-021-2/+2
| | | | | | | | | | | | Changing equality testing to inequality testing does more than make code prettier or clearer. It makes it less strict, and thus more tolerant of other bugs elsewhere. Such changes deserve separate consideration at least, not breezy entry in an otherwise "code cleanup" commit.
* | Consistancy in refcount management.jan.nijtmans2015-06-301-3/+3
| |
* | Use twoPtrValue in stead of ptrAndLongRep for implementation of some ↵jan.nijtmans2015-06-301-16/+15
| | | | | | | | | | internal Obj types. On most platforms this doesn't make a difference, as (void *) and (long) generially have the same size. The only exception where it makes a difference is win64, as we can now store 64 bits in this field in stead of only 32 bits, exactly what the processor is optimized for.
* | Make tweak to the mem-debug tracking official. It is now again possible to ↵andreask2015-05-271-14/+33
|\ \ | |/ | | | | use regular packages with a mem-debug core without inciting a panic.
| * Make tweak to the mem-debug tracking official. It is now again possible to ↵andreask2015-05-271-14/+33
| |\ | | | | | | | | | use regular packages with a mem-debug core without inciting a panic.
| | * Minor compilation issue fix, make sure variable declaration (via macro) is ↵Joe Mistachkin2015-05-221-6/+7
| | | | | | | | | | | | first.
| | * Moved Tcl_Obj* objThreadMap release tracking to a location where regular ↵andreask2015-05-221-14/+32
| | | | | | | | | | | | packages will call through, enabling their full tracking by the core, and thus avoiding the "expected to create new entry for object map" panic seen otherwise.
* | | Remove Tcl_Preserve support for ContLineLoc values. It's not needed.dgp2013-08-071-35/+3
| | | | | | | | | This allows the clLoc field of CompileEnv struct to go away too.
* | | Implement Tcl_NewBooleanObj, Tcl_DbNewBooleanObj and Tcl_SetBooleanObj as ↵jan.nijtmans2013-04-231-17/+17
|\ \ \ | |/ / | | | | | | | | | | | | macros using Tcl_NewIntObj, Tcl_DbNewLongObj and Tcl_SetIntObj. Starting with Tcl 8.5, this is exactly the same, it only eliminates code duplication. Eliminate use of NO_WIDE_TYPE everywhere: It's exactly the same as TCL_WIDE_INT_IS_LONG
| * | Implement Tcl_NewBooleanObj, Tcl_DbNewBooleanObj and Tcl_SetBooleanObj as ↵jan.nijtmans2013-04-231-4/+6
| |/ | | | | | | | | macros using Tcl_NewIntObj, Tcl_DbNewLongObj and Tcl_SetIntObj. Starting with Tcl 8.5, this is exactly the same, it only eliminates code duplication.
* | Greater protection against double TclFreeObj() calls in TCL_MEM_DEBUG mode.dgp2013-03-111-0/+12
|\ \ | |/
| * Greater protection against double TclFreeObj() calls in TCL_MEM_DEBUG mode.dgp2013-03-111-0/+12
| |
* | Allow Tcl to be compiled even if Tcl_Eval, Tcl_GetVar, ... are macros.jan.nijtmans2013-02-281-2/+5
| |
* | Don't panic if Tcl_ConvertToType is called for a type that doesn't have a ↵jan.nijtmans2013-02-261-1/+6
|\ \ | |/ | | | | setFromAnyProc, create a proper error message.
| * Don't panic if Tcl_ConvertToType is called for a type that doesn't have a ↵jan.nijtmans2013-02-261-1/+6
| | | | | | | | setFromAnyProc, create a proper error message.
* | Eliminate all Tcl_ConvertToType calls and all direct calls to ↵jan.nijtmans2013-02-041-7/+6
| | | | | | | | typePtr->setFromAnyProc (except the call from inside the Tcl_ConvertToType function) from the Tcl core.
* | merge core-8-5-branchjan.nijtmans2013-01-311-3/+3
|\ \ | |/
| * Use twoPtrValue.ptr1 in stead of otherValuePtr everywhere. This is exactly ↵jan.nijtmans2013-01-311-3/+3
| | | | | | | | the same field, but it allows twoPtrValue.ptr2 to be used for other purposes.
| * Backport fix for [Bug 2857044].dgp2011-04-271-0/+1
| |