about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorRoman Perepelitsa <roman.perepelitsa@gmail.com>2020-07-29 08:53:47 +0200
committerRoman Perepelitsa <roman.perepelitsa@gmail.com>2020-07-29 08:53:47 +0200
commita8e31c07a73d646c2e4dfc1e0fc41dfce019cba8 (patch)
tree61f106bf42989e1bec48021544f57f890d47327d /Src
parent6f6363de94993d529f736b8ba19445ac374d02f8 (diff)
downloadzsh-a8e31c07a73d646c2e4dfc1e0fc41dfce019cba8.tar.gz
zsh-a8e31c07a73d646c2e4dfc1e0fc41dfce019cba8.tar.xz
zsh-a8e31c07a73d646c2e4dfc1e0fc41dfce019cba8.zip
unposted: comments explaining how hashtable must be created
See zsh-workers 46277, 46278, 46279.
Diffstat (limited to 'Src')
-rw-r--r--Src/zsh.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/Src/zsh.h b/Src/zsh.h
index 6101cf242..a97e83192 100644
--- a/Src/zsh.h
+++ b/Src/zsh.h
@@ -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 */