diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-12-07 19:02:13 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-12-07 19:02:13 -0500 |
| commit | 09942b27ae6fd7e7d394b2d251ef77c8a6f69e07 (patch) | |
| tree | 49440d4bf059874b7f84462f9dfa96d7de9edfc7 /src/stdlib/tables.c | |
| parent | 85d1507d8b7e0139135e040b7b4b23c02097a155 (diff) | |
Rename `Empty()` -> `Present()` for set-like tables
Diffstat (limited to 'src/stdlib/tables.c')
| -rw-r--r-- | src/stdlib/tables.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/stdlib/tables.c b/src/stdlib/tables.c index 6e774c53..a801957f 100644 --- a/src/stdlib/tables.c +++ b/src/stdlib/tables.c @@ -18,6 +18,7 @@ #include "metamethods.h" #include "pointers.h" #include "siphash.h" +#include "structs.h" #include "tables.h" #include "text.h" #include "types.h" @@ -757,3 +758,14 @@ void Table$deserialize(FILE *in, void *outval, List_t *pointers, const TypeInfo_ *(Table_t *)outval = t; } + +public +const TypeInfo_t Present$$info = {.size = 0, + .align = 0, + .tag = StructInfo, + .metamethods = Struct$metamethods, + .StructInfo.name = "Present", + .StructInfo.num_fields = 0}; + +public +const Present$$type PRESENT = {}; |
