aboutsummaryrefslogtreecommitdiff
path: root/src/stdlib/types.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/stdlib/types.h')
-rw-r--r--src/stdlib/types.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/stdlib/types.h b/src/stdlib/types.h
index 786e92d4..ddece7c9 100644
--- a/src/stdlib/types.h
+++ b/src/stdlib/types.h
@@ -17,7 +17,7 @@ typedef struct {
Text_t (*as_text)(const void*, bool, const TypeInfo_t*);
bool (*is_none)(const void*, const TypeInfo_t*);
void (*serialize)(const void*, FILE*, Table_t*, const TypeInfo_t*);
- void (*deserialize)(FILE*, void*, Array_t*, const TypeInfo_t*);
+ void (*deserialize)(FILE*, void*, List_t*, const TypeInfo_t*);
} metamethods_t;
typedef struct {
@@ -29,7 +29,7 @@ struct TypeInfo_s {
int64_t size, align;
metamethods_t metamethods;
struct { // Anonymous tagged union for convenience
- enum { OpaqueInfo, StructInfo, EnumInfo, PointerInfo, TextInfo, ArrayInfo, TableInfo, FunctionInfo,
+ enum { OpaqueInfo, StructInfo, EnumInfo, PointerInfo, TextInfo, ListInfo, TableInfo, FunctionInfo,
OptionalInfo, TypeInfoInfo } tag;
union {
struct {} OpaqueInfo;
@@ -42,7 +42,7 @@ struct TypeInfo_s {
} TextInfo;
struct {
const TypeInfo_t *item;
- } ArrayInfo;
+ } ListInfo;
struct {
const TypeInfo_t *key, *value;
} TableInfo;