Revert "Remove offsethash"

This reverts commit 1cbd204f52.
This commit is contained in:
Andrew Kane
2024-02-20 16:07:32 -08:00
parent eb29019a14
commit ca10cbaa7d
2 changed files with 64 additions and 7 deletions

View File

@@ -445,4 +445,17 @@ typedef struct PointerHashEntry
#define SH_DECLARE
#include "lib/simplehash.h"
typedef struct OffsetHashEntry
{
Size offset;
char status;
} OffsetHashEntry;
#define SH_PREFIX offsethash
#define SH_ELEMENT_TYPE OffsetHashEntry
#define SH_KEY_TYPE Size
#define SH_SCOPE extern
#define SH_DECLARE
#include "lib/simplehash.h"
#endif