diff options
| author | nasr <nsrddyn@gmail.com> | 2026-04-17 17:49:10 +0200 |
|---|---|---|
| committer | nasr <nsrddyn@gmail.com> | 2026-04-17 17:50:28 +0200 |
| commit | 078e21a1feb811f9ef7797ce3ee5d2e8ffcccfce (patch) | |
| tree | c1121bed141fb536be6b21a6fc54ccd2b5ac7302 /source/base/bash_hash.h | |
| parent | 9d09d66a273f68fae7efb71504bf40c664b91983 (diff) | |
feature(main): during my work on other projects I improved the base library a bit.
this is a drag and drop of that in the project. the next steps exit out of implementing
lineair regression and attempting to calcualte what the value would be of a key in the btree...
Signed-off-by: nasr <nsrddyn@gmail.com>
feature(main): during my work on other projects I improved the base library a bit.
this is a drag and drop of that in the project. the next steps exit out
of implementing
lineair regression and attempting to calcualte what the value would be
of a key in the btree...
Signed-off-by: nasr <nsrddyn@gmail.com>
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 */ | ||
