summaryrefslogtreecommitdiffstats
path: root/generic/tclHash.c
Commit message (Collapse)AuthorAgeFilesLines
* Put ClockFmtScnStorageHashKeyType in read-only memorydkf2024-06-091-18/+15
|
* Backout the "dullest commit ever" (not my words ....). It breaks the build. jan.nijtmans2024-05-141-30/+32
| | | JN: Many of those changes are actually good, but there are too many changes to be able to search for a bug somewhere. Feel free to re-apply, after assuring it's really only whitespace changes. (my advise: do that after 9.0b2)
* Clean up a lot of small whitespace issues dkf2024-05-131-32/+30
| | | This is the dullest commit ever. Sorry.
* More whitespace cleanupdkf2024-05-101-3/+1
|
* merge 8.7sebres2024-04-121-2/+5
|\
| * merge 8.6sebres2024-04-121-2/+5
| |\
| | * explaination commentsebres2024-04-121-1/+1
| | |
| | * merge 8.5 (minor backport from my core) simple speed-up if searching for the ↵sebres2024-04-121-1/+4
| | |\ | | | | | | | | | | | | key from hash itself (it is safe to compare needle with an address to key.string)
| | | * minor backport from my core: simple speed-up if searching for the key from ↵sebres2024-04-121-30/+32
| | | | | | | | | | | | | | | | | | | | hash itself (it is safe to compare needle with an address to key.string); back to mixed identation (removed before)
* | | | merge 8.7sebres2024-04-121-11/+25
|\ \ \ \ | |/ / /
| * | | merge 8.6sebres2024-04-121-12/+26
| |\ \ \ | | |/ /
| | * | merge 8.5, amend to [82f721a5a039596f]: the bug was fixed incompletely, this ↵sebres2024-04-121-12/+28
| | |\ \ | | | |/ | | | | | | | | | | | | | | | | is full bug fix now - don't allow direct compare if keys contain values rather than pointers; introduced new hash-key type flag TCL_HASH_KEY_DIRECT_COMPARE... I know it is public interface, but the bug is grave, and I don't know how one could fix it without that, by retaining same performance for pointer hashes (e. g. vars, dicts and all of TclObjs).
| | | * amend to [295b0570ff660950]: the bug was fixed incompletely, this is full ↵sebres2024-04-121-15/+34
| | | | | | | | | | | | | | | | | | | | | | | | bug fix now - don't allow direct compare if keys contain values rather than pointers. introduced new hash-key type flag TCL_HASH_KEY_DIRECT_COMPARE... I know it is public interface, but the bug is grave, and I don't know how one could fix it without that, by retaining same performance for pointer hashes (e. g. vars, dicts and all of TclObjs).
* | | | Fix indentation/brace usage style issuesdkf2024-03-191-4/+3
| | | |
* | | | Merge 8.7jan.nijtmans2024-01-311-3/+3
|\ \ \ \ | |/ / /
| * | | More TCL_SIZE_MODIFIER usagejan.nijtmans2024-01-311-3/+3
| | | |
* | | | Merge 8.7jan.nijtmans2023-10-101-12/+12
|\ \ \ \ | |/ / /
* | | | Merge 9.0jan.nijtmans2023-04-011-4/+4
|\ \ \ \
| * \ \ \ Merge 8.7jan.nijtmans2023-03-301-4/+4
| |\ \ \ \ | | |/ / /
| | * | | Merge 8.6jan.nijtmans2023-03-301-4/+4
| | |\ \ \ | | | |/ /
| | | * | Fix [0cb3554903]: macOS 13 SDK deprecates sprintf(). But better not use it ↵jan.nijtmans2023-03-301-4/+4
| | | | | | | | | | | | | | | | | | | | on other platforms either.
| | | * | Use TclOffset() in stead of magic calculations using sizeof(), which might ↵jan.nijtmans2022-08-261-2/+2
| | | | | | | | | | | | | | | | | | | | give unexpected results when padding is involved
* | | | | TIP 660. No compiler warnings. Tests suite pass on Win and Ubuntuapnadkarni2023-03-301-2/+2
|/ / / /
* | | | Merge 8.7jan.nijtmans2022-08-261-22/+6
|\ \ \ \ | |/ / /
| * | | [37108037b9]: Code cleanups to support CHERI: Apply patch 0007 (modified)jan.nijtmans2022-08-261-22/+6
| | | |
* | | | Merge 8.7jan.nijtmans2022-04-291-10/+8
|\ \ \ \ | |/ / /
| * | | Since tclDecls.h uses 'size_t', make sure to include <stddef.h>. Since ISO-C ↵jan.nijtmans2022-04-291-34/+30
| | | | | | | | | | | | | | | | has both 'size_t' and 'ptrdiff_t', use those to define INT2PTR and friends (including UINT2PTR)
| * | | Don't bother UINT2PTR, since INT2PTR is just as good.jan.nijtmans2022-03-291-1/+1
| | | |
| * | | Merge 8.6jan.nijtmans2021-12-161-1/+1
| |\ \ \ | | |/ /
| | * | Fix [31e302fcf7]: signed integer overflow in generic/tclHash.cjan.nijtmans2021-12-161-1/+1
| | | |
| | * | Get rid of "register" keyword, forbidden in c++20.jan.nijtmans2020-11-261-21/+21
| | | | | | | | | | | | Fix some more warnings, discovered in c20/c++20 mode
* | | | Merge 8.7jan.nijtmans2020-12-081-2/+2
|\ \ \ \ | |/ / /
| * | | Add -finput-charset=UTF-8 and -fextended-identifiers to gcc (and clang). All ↵jan.nijtmans2020-12-081-2/+2
| | | | | | | | | | | | | | | | C sources can now use UTF-8, as far as gcc/clang/msvc support it. Not used yet
* | | | merge 8.7dgp2020-03-171-2/+0
|\ \ \ \ | |/ / /
| * | | TIP 569 - remove lint commentsdgp2020-03-171-2/+0
| | | |
* | | | merge 8.7dgp2020-03-061-16/+7
|\ \ \ \ | |/ / /
| * | | moredgp2020-03-061-16/+7
| | | |
* | | | Merge 8.7jan.nijtmans2020-02-281-9/+16
|\ \ \ \ | |/ / /
| * | | Mark more function paramaters as unused. Now Tcl compiles fully (on UNIX and ↵jan.nijtmans2019-09-051-4/+4
| |\ \ \ | | | | | | | | | | | | | | | Windows) without -Wunused-parameters warnings
| * \ \ \ Let's try a real C++ build with Travis on Linuxjan.nijtmans2019-08-301-1/+8
| |\ \ \ \ | | |/ / /
| * | | | Merge tip-548jan.nijtmans2019-08-151-18/+18
| |\ \ \ \ | | |/ / /
| * | | | Merge 8.7, and continue implementation. Almost donejan.nijtmans2019-07-101-10/+10
| | | | |
* | | | | Merge 8.7jan.nijtmans2019-08-151-17/+17
|\ \ \ \ \ | | |/ / / | |/| | |
| * | | | Eliminate "register" keyword _everywhere_ in Tcl. This keyword is deprecated ↵jan.nijtmans2019-07-171-21/+21
| |/ / / | | | | | | | | | | | | in C++ (removed in C++17, even), and essentially does nothing with most modern compilers.
* | | | merge 8.7dgp2019-07-011-0/+1
|\ \ \ \ | |/ / /
| * | | Fix unitialized memory report from valgrinddgp2019-07-011-0/+1
| |\ \ \ | | |/ /
| | * | Avoid valgrind issues with uninitialized memorydgp2019-07-011-0/+1
| | |\ \ | | | |/
| | | * Avoid valgrind issues with "uninitialized memory"dgp2019-07-011-0/+1
| | | |
* | | | Merge 8.7jan.nijtmans2019-06-121-1/+1
|\ \ \ \ | |/ / /
| * | | Eliminate (internal) TclOffset() usage, just use offsetof() in stead.jan.nijtmans2019-06-121-1/+1
| | | |