diff options
| author | Roman Perepelitsa <roman.perepelitsa@gmail.com> | 2020-07-29 08:53:47 +0200 |
|---|---|---|
| committer | Roman Perepelitsa <roman.perepelitsa@gmail.com> | 2020-07-29 08:53:47 +0200 |
| commit | a8e31c07a73d646c2e4dfc1e0fc41dfce019cba8 (patch) | |
| tree | 61f106bf42989e1bec48021544f57f890d47327d /Src/zsh.h | |
| parent | 46275: eliminate undefined behavior caused by redefinition of hashtable (diff) | |
| download | zsh-a8e31c07a73d646c2e4dfc1e0fc41dfce019cba8.tar zsh-a8e31c07a73d646c2e4dfc1e0fc41dfce019cba8.tar.gz zsh-a8e31c07a73d646c2e4dfc1e0fc41dfce019cba8.tar.bz2 zsh-a8e31c07a73d646c2e4dfc1e0fc41dfce019cba8.tar.lz zsh-a8e31c07a73d646c2e4dfc1e0fc41dfce019cba8.tar.xz zsh-a8e31c07a73d646c2e4dfc1e0fc41dfce019cba8.tar.zst zsh-a8e31c07a73d646c2e4dfc1e0fc41dfce019cba8.zip | |
unposted: comments explaining how hashtable must be created
See zsh-workers 46277, 46278, 46279.
Diffstat (limited to 'Src/zsh.h')
| -rw-r--r-- | Src/zsh.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1180,7 +1180,10 @@ typedef void (*ScanTabFunc) _((HashTable, ScanFunc, int)); typedef void (*PrintTableStats) _((HashTable)); -/* hash table for standard open hashing */ +/* Hash table for standard open hashing. Instances of struct hashtable can be * + * created only by newhashtable(). In fact, this function creates an instance * + * of struct hashtableimpl, which is made of struct hashtable (public part) * + * and additional data members that are only accessible from hashtable.c. */ struct hashtable { /* HASHTABLE DATA */ |
