diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-09-05 14:56:37 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-09-05 14:56:37 -0400 |
| commit | abe45a3c25fc8b7ba53635fd517653976d94b107 (patch) | |
| tree | cd5c95f18f37413870c1d6fd4ec4f829face4617 /builtins/table.c | |
| parent | c82b664db9b04875faa52c687549a6f50cac8a3d (diff) | |
Rename array_t -> Array_t
Diffstat (limited to 'builtins/table.c')
| -rw-r--r-- | builtins/table.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/builtins/table.c b/builtins/table.c index b1d82c3c..75b4027d 100644 --- a/builtins/table.c +++ b/builtins/table.c @@ -40,7 +40,7 @@ #define END_OF_CHAIN UINT32_MAX #define GET_ENTRY(t, i) ((t).entries.data + (t).entries.stride*(i)) -#define ENTRIES_TYPE(type) (&(TypeInfo){.size=sizeof(array_t), .align=__alignof__(array_t), .tag=ArrayInfo, .ArrayInfo.item=(&(TypeInfo){.size=entry_size(type), .align=entry_align(type), .tag=OpaqueInfo})}) +#define ENTRIES_TYPE(type) (&(TypeInfo){.size=sizeof(Array_t), .align=__alignof__(Array_t), .tag=ArrayInfo, .ArrayInfo.item=(&(TypeInfo){.size=entry_size(type), .align=entry_align(type), .tag=OpaqueInfo})}) static const TypeInfo MemoryPointer = { .size=sizeof(void*), @@ -389,7 +389,7 @@ public void Table$clear(table_t *t) public table_t Table$sorted(table_t t, const TypeInfo *type) { closure_t cmp = (closure_t){.fn=generic_compare, .userdata=(void*)type->TableInfo.key}; - array_t entries = Array$sorted(t.entries, cmp, entry_size(type)); + Array_t entries = Array$sorted(t.entries, cmp, entry_size(type)); return Table$from_entries(entries, type); } @@ -494,7 +494,7 @@ public Text_t Table$as_text(const table_t *t, bool colorize, const TypeInfo *typ return text; } -public table_t Table$from_entries(array_t entries, const TypeInfo *type) +public table_t Table$from_entries(Array_t entries, const TypeInfo *type) { assert(type->tag == TableInfo); if (entries.length == 0) |
