summaryrefslogtreecommitdiffstats
path: root/generic/tclBasic.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix [8ab8a138c9]: Functions passed to Tcl_EventuallyFree() must be ↵jan.nijtmans2023-10-111-8/+9
|\ | | | | | | declared/defined as Tcl_FreeProc
| * Remove typecasts, just define directly as Tcl_FreeProcjan.nijtmans2023-10-111-6/+6
| |
| * Proposed fix for [8ab8a138c9]: Do not pass incompatible function pointers to ↵jan.nijtmans2023-10-101-3/+4
|/ | | | | Tcl_EventuallyFree(). This should eliminate all warnings when using -fsanitize=function.
* Fix mingw build (broke by prev. commit)jan.nijtmans2023-10-051-4/+4
|
* Fix [7371b6270b]: AddressSanitizer use-after-return detection breaks NRE ↵jan.nijtmans2023-10-041-2/+37
|\ | | | | | | tests, coroutines
| * Fix [7371b6270b]: AddressSanitizer use-after-return detection breaks NRE ↵jan.nijtmans2023-10-011-2/+37
|/ | | | tests, coroutines. (patch by chrstphrchvz, with some minor modifications)
* Fix [https://core.tcl-lang.org/tclvfs/tktview/60cacfbcb9|60cacfbcb9]: ↵jan.nijtmans2023-09-051-1/+1
| | | | Segmentation Fault at interpreter exit when tclvfs loaded
* Correct spelling errors in comments and documentation, but also non-comment pooryorick2023-04-121-12/+12
| | | corrections in history.tcl and tcltest.test.
* Fix [0cb3554903]: macOS 13 SDK deprecates sprintf(). But better not use it ↵jan.nijtmans2023-03-301-2/+2
| | | | on other platforms either.
* Fix [15e74a2fe6]: Fix various typosjan.nijtmans2023-03-241-2/+2
|
* Test for TclOO 1.1.0. Remove some useless type-castsjan.nijtmans2022-07-011-1/+1
|
* Use TclListObjLength/TclListObjGetElements in stead of ↵jan.nijtmans2022-02-101-3/+3
| | | | Tcl_ListObjLength/Tcl_ListObjGetElements everywhere. This is slightly more efficient if the refered list already has the correct type
* Tcl_NewObj() -> TclNewObj()jan.nijtmans2022-01-171-5/+5
|
* Fix [6ef312dcf5]: memcpy() with NULL source in Tcl_CreateMathFunc()jan.nijtmans2021-12-161-1/+3
|
* Fix [90612089d8]: signed integer overflow in ExprRandFunc()jan.nijtmans2021-12-161-4/+4
|\
| * Fix [90612089d8]: signed integer overflow in ExprRandFunc()jan.nijtmans2021-12-151-4/+4
|/
* Unbreak buildjan.nijtmans2021-11-261-1/+1
|
* Change TclInitSubsystems() signature, matching Tcl_InitSubsystems() in Tcl ↵jan.nijtmans2021-11-261-146/+150
| | | | 8.7. Add more type-casts (better C++ compatibility)
* Remove the refCount increment that accompanied the decrement removed in thepooryorick2021-05-181-1/+0
| | | last commit.
* Remove unnecessary refCount decrement.pooryorick2021-05-171-1/+0
|
* Fix for [688fcc7082fa99a4], trace on imported alias deletes alias and thenpooryorick2021-05-171-14/+13
| | | calls import and triggers memory error.
* Use _wgetenv() in stead of getenv() on Windows: The wide environment is not ↵jan.nijtmans2021-02-231-0/+4
| | | | always well-synchonized with the locale environment. Problem detected on the sebres-8-6-clock-speedup-cr2, but this branch only exposed the bug, it did not cause it.
* Fix [48898ab5f6a0d957]: Too few is better than not enough? (Inconsistent ↵jan.nijtmans2020-10-261-2/+2
| | | | error messages)
* Eliminate many "register" keywords (which do nothing with modern compilers)jan.nijtmans2020-09-141-22/+22
| | | Eliminate many unnecessary type-casts to (unsigned)
* Many more internal master/slave -> parent/child renamingsjan.nijtmans2020-09-011-3/+3
|
* Implement TIP #581: Master/Slavejan.nijtmans2020-08-311-1/+1
|
* Eliminate many unnecessary type-casts, mostly (size_t) when value is already ↵jan.nijtmans2020-08-111-1/+1
| | | | size_t or int
* Fix mistake in [7eed2baf73]pooryorick2020-08-101-1/+1
|
* Fix for [29e8848eb976], imported alias in a deletion trace.pooryorick2020-08-101-1/+2
|
* 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/+1
|
* Don't let Tcl compilation depend on USE_32BIT_TIME_T any more: Microsoft ↵jan.nijtmans2019-09-071-10/+4
|\ | | | | | | | | could discontinue this macro any moment, then we are prepared .... As a bonus: time_t is now allowed to be 64-bit internally, without effect on the C API (like stub-enabled extensions)
| * Don't let Tcl depend on USE_32BIT_TIME_T any more: If your compiler supports ↵jan.nijtmans2019-09-061-10/+4
| | | | | | | | | | it, time_t will be 64-bit internally. But at API-level, time_t will still be restricted to 32-bit on Win32 (Not on Win64). This keeps Tcl_StatBuf the same (unless USE_64BIT_TIME_T is defined), so 64-bit times still cannot be used everywhere.
* | Add /* FALLTHRU */ markers in various places (silencing possible GCC ↵jan.nijtmans2019-08-281-1/+1
| | | | | | | | warnings). Eliminate some more "register" keywords. Eliminate (or silence) some unused function parameters.
* | integrate branch bug-4718b41c56, revert/rebuild win/configure (2.69 in ↵sebres2019-07-121-1/+9
|\ \ | |/ | | | | tcl8.6), conflicts resolved, etc
| * little tweaks, makeing it possible to use either _USE_64BIT_TIME_T or ↵jan.nijtmans2019-07-101-12/+15
| | | | | | | | | | __MINGW_USE_VC2005_COMPAT interchangably. Put some more remarks, making it more clear what the effect of this is.
| * fixes [4718b41c56] for windows x86 (mingw / MSVC versions with CRT ↵sebres2019-07-081-6/+11
| | | | | | | | supporting 64-bit time_t)
| * Update some libtommath functions to the latest trunk versions. Small step ↵jan.nijtmans2019-05-291-9/+8
| | | | | | | | | | forward in the upgrade to (upcoming) libtommath 1.2. Advantage: simplify Tcl code accessing those functions.
* | end-of-line spacingjan.nijtmans2019-05-241-1/+1
|\ \ | |/
* | Added primitive to allow working coroutine deep introspectiondkf2019-04-231-0/+73
| |
* | Minor code style cleanup.dkf2019-04-231-46/+73
| |
* | Eliminate all usage of mp_iszero/mp_iseven/mp_isodd/mp_isneg from ↵jan.nijtmans2019-03-251-1/+1
| | | | | | | | libtommath: In the upcoming new version those will become real functions, causing possible binary incompatibility. This change makes Tcl independant from libtommath's changes.
* | merge updated 8.5-timerate branchsebres2019-03-051-7/+20
|\ \ | |/
| * regarding the TIP#527, `timerate` shall be placed into `::tcl::unsupported` ↵sebres2019-03-051-7/+20
| | | | | | | | in versions prior to 8.7
| * merge 8.5 (note: to avoid too many conflicts, merged using `fossil merge ↵sergey.brester2019-02-121-62/+104
| |\ | | | | | | | | | --baseline 0055a16a8b core-8-5-branch`)
| * \ back-ported branch sebres-8-6-timerate (new command "timerate" for 8.5)sebres2017-05-161-0/+1
| |\ \
* | \ \ merge 8.6(.9), conflicts resolvedsergey.brester2019-02-071-120/+187
|\ \ \ \ | |_|/ / |/| | |
| * | | Minor fix to entier(): Allow it to convert to "wideInt" as well when range ↵jan.nijtmans2018-08-171-6/+13
| | | | | | | | | | | | | | | | is appropriate
| * | | Fix for [3592747]: Let TclNRTailcallEval handle namespace problems.pooryorick2018-06-241-7/+1
| | | |
| * | | Rearrange a few lines TclRenameCommand to reduce operations.pooryorick2018-02-151-6/+6
| | | |