summaryrefslogtreecommitdiffhomepage
path: root/include/stc
diff options
context:
space:
mode:
authorTyge Lovset <[email protected]>2023-04-26 13:13:47 +0200
committerTyge Lovset <[email protected]>2023-04-26 13:13:47 +0200
commit9d5766ae528595050dcfe0db4c1c3c0c058b186c (patch)
tree07b330e220fce0590aa46caa95be72884ce9008b /include/stc
parentbf118447590bd10d8c6b205a19b25038d84274c2 (diff)
downloadSTC-modified-9d5766ae528595050dcfe0db4c1c3c0c058b186c.tar.gz
STC-modified-9d5766ae528595050dcfe0db4c1c3c0c058b186c.zip
Internal.
Diffstat (limited to 'include/stc')
-rw-r--r--include/stc/cmap.h1
-rw-r--r--include/stc/forward.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/include/stc/cmap.h b/include/stc/cmap.h
index 533e8a16..65e4a544 100644
--- a/include/stc/cmap.h
+++ b/include/stc/cmap.h
@@ -53,6 +53,7 @@ int main(void) {
#include "forward.h"
#include <stdlib.h>
#include <string.h>
+struct chash_slot { uint8_t hashx; };
typedef struct { intptr_t idx; uint8_t hashx, found; } chash_bucket;
#endif // CMAP_H_INCLUDED
diff --git a/include/stc/forward.h b/include/stc/forward.h
index ae49dc31..b534e48b 100644
--- a/include/stc/forward.h
+++ b/include/stc/forward.h
@@ -101,7 +101,7 @@ typedef union {
SELF##_node *last; \
} SELF
-typedef struct { uint8_t hashx; } chash_slot;
+typedef struct chash_slot chash_slot;
#define _c_chash_types(SELF, KEY, VAL, MAP_ONLY, SET_ONLY) \
typedef KEY SELF##_key; \