summaryrefslogtreecommitdiff
path: root/Src/zsh.h
diff options
context:
space:
mode:
authorRoman Perepelitsa <roman.perepelitsa@gmail.com>2020-07-28 12:58:02 +0200
committerRoman Perepelitsa <roman.perepelitsa@gmail.com>2020-07-29 08:27:15 +0200
commit6f6363de94993d529f736b8ba19445ac374d02f8 (patch)
treebfbcf5f8e5f4432bbc792de82d5133b0607741ee /Src/zsh.h
parent41e318727e6fdca70b28431a10a60a73aa6f43bf (diff)
downloadzsh-6f6363de94993d529f736b8ba19445ac374d02f8.tar.gz
zsh-6f6363de94993d529f736b8ba19445ac374d02f8.zip
46275: eliminate undefined behavior caused by redefinition of hashtable
struct hashtable has different set of data members in different translation units. This is undefined behavior.
Diffstat (limited to 'Src/zsh.h')
-rw-r--r--Src/zsh.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/Src/zsh.h b/Src/zsh.h
index c48be4ffd..6101cf242 100644
--- a/Src/zsh.h
+++ b/Src/zsh.h
@@ -1204,10 +1204,6 @@ struct hashtable {
FreeNodeFunc freenode; /* pointer to function to free a node */
ScanFunc printnode; /* pointer to function to print a node */
ScanTabFunc scantab; /* pointer to function to scan table */
-
-#ifdef HASHTABLE_INTERNAL_MEMBERS
- HASHTABLE_INTERNAL_MEMBERS /* internal use in hashtable.c */
-#endif
};
/* generic hash table node */