Added the beginnings of hashmap but does not yet compile.

This commit is contained in:
Simon Brooke 2021-08-03 15:46:50 +01:00
parent 70d176982b
commit 3f3b596ff0
No known key found for this signature in database
GPG key ID: A7A4F18D1D4DF987
7 changed files with 154 additions and 26 deletions

View file

@ -20,7 +20,8 @@
#include <wchar.h>
#include <wctype.h>
#include "fopen.h"
#include "io/fopen.h"
#include "memory/conspage.h"
/**
@ -557,8 +558,8 @@ struct stream_payload {
struct string_payload {
/** the actual character stored in this cell */
wint_t character;
/** unused padding to word-align the cdr */
uint32_t padding;
/** a hash of the string value, computed at store time. */
uint32_t hash;
/** the remainder of the string following this character. */
struct cons_pointer cdr;
};