diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-02-17 16:56:19 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-02-17 16:56:19 -0500 |
| commit | de3eeacfa0151243e4ef52af3d6c2e2b731fc720 (patch) | |
| tree | 4bf2ee295698a89a6378701f6e1e7aecbc552da2 /builtins | |
| parent | 60f3e91b80dee6fcd995066730058dd5bc29414d (diff) | |
Major cleanup
Diffstat (limited to 'builtins')
| -rw-r--r-- | builtins/datatypes.h | 8 | ||||
| -rw-r--r-- | builtins/table.c | 1 |
2 files changed, 8 insertions, 1 deletions
diff --git a/builtins/datatypes.h b/builtins/datatypes.h index 133b273f..3a2a9da7 100644 --- a/builtins/datatypes.h +++ b/builtins/datatypes.h @@ -22,7 +22,13 @@ typedef struct { } bucket_info_t; typedef struct table_s { - array_t entries; + union { + array_t entries; + struct { + void *_entry_data; + int64_t length:42; + }; + }; bucket_info_t *bucket_info; struct table_s *fallback; void *default_value; diff --git a/builtins/table.c b/builtins/table.c index e5ab410d..08e14958 100644 --- a/builtins/table.c +++ b/builtins/table.c @@ -21,6 +21,7 @@ #include "../SipHash/halfsiphash.h" #include "../util.h" #include "array.h" +#include "datatypes.h" #include "string.h" #include "table.h" #include "types.h" |
