diff options
Diffstat (limited to 'source/base/bash_hash.h')
| -rw-r--r-- | source/base/bash_hash.h | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/source/base/bash_hash.h b/source/base/bash_hash.h index 2c286a2..758ef72 100644 --- a/source/base/bash_hash.h +++ b/source/base/bash_hash.h | |||
| @@ -1,15 +1,24 @@ | |||
| 1 | ##ifndef HEADER_H | 1 | #ifndef BASH_HASH_H |
| 2 | #define HEADER_H | 2 | #define BASH_HASH_H |
| 3 | 3 | ||
| 4 | typedef struct hash_map hash_map; | 4 | typedef struct hash_map hash_map; |
| 5 | typedef struct hash hash; | 5 | typedef struct hash hash; |
| 6 | 6 | ||
| 7 | 7 | struct map | |
| 8 | struct hash_map | ||
| 9 | { | 8 | { |
| 9 | string8 | ||
| 10 | u64 capacity | ||
| 11 | }; | ||
| 10 | 12 | ||
| 11 | 13 | ||
| 14 | struct index | ||
| 15 | { | ||
| 16 | string8 key; | ||
| 17 | string8 value; | ||
| 12 | }; | 18 | }; |
| 13 | 19 | ||
| 14 | 20 | ||
| 15 | #endif /* HEADER_H */ | 21 | |
| 22 | internal void | ||
| 23 | |||
| 24 | #endif /* BASH_HASH_H */ | ||
