summaryrefslogtreecommitdiff
path: root/src/include/strset.h
diff options
context:
space:
mode:
authorJannis Hoffmann <jannis@fehcom.de>2024-07-03 15:52:39 +0200
committerJannis Hoffmann <jannis@fehcom.de>2024-07-03 15:52:39 +0200
commita6a7d6ce079cabdaf2fa502b2e2cf15e5428ac6f (patch)
treeb88cc7a8457658d67e0321718556ac807f6bccf3 /src/include/strset.h
parent00be7622c428f279872f84569f098ce16150f8a8 (diff)
format files
Diffstat (limited to 'src/include/strset.h')
-rw-r--r--src/include/strset.h26
1 files changed, 11 insertions, 15 deletions
diff --git a/src/include/strset.h b/src/include/strset.h
index 4a5703e..e3a2e88 100644
--- a/src/include/strset.h
+++ b/src/include/strset.h
@@ -3,27 +3,23 @@
#include "uint_t.h"
-typedef struct strset_list
-{
+typedef struct strset_list {
uint32 h;
int next;
-}
-strset_list;
+} strset_list;
-typedef struct
-{
- int mask; /* mask + 1 is power of 2, size of hash table */
- int n; /* number of entries used in list and x */
- int a; /* number of entries allocated in list and x */
- int *first; /* first[h] is front of hash list h */
+typedef struct {
+ int mask; /* mask + 1 is power of 2, size of hash table */
+ int n; /* number of entries used in list and x */
+ int a; /* number of entries allocated in list and x */
+ int *first; /* first[h] is front of hash list h */
strset_list *p; /* p[i].next is next; p[i].h is hash of x[i] */
- char **x; /* x[i] is entry i */
-}
-strset;
+ char **x; /* x[i] is entry i */
+} strset;
extern uint32 strset_hash(char *);
extern int strset_init(strset *);
-extern char *strset_in(strset *,char *);
-extern int strset_add(strset *,char *);
+extern char *strset_in(strset *, char *);
+extern int strset_add(strset *, char *);
#endif