diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-01-25 09:54:37 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-01-25 09:54:37 +0100 |
commit | 5df950e0b35207930c645e8ce0c3e9ed1c9fcea5 (patch) | |
tree | 8264595bea95b6d0dcc530566168f2030dfe06ff /include | |
parent | 4b2b8d3176e84f76510cc69a627dbfa089c1dd35 (diff) |
string view > string ref
Diffstat (limited to 'include')
-rw-r--r-- | include/value.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/value.h b/include/value.h index d9c6354..7dd6d28 100644 --- a/include/value.h +++ b/include/value.h @@ -12,7 +12,7 @@ typedef enum { TSL_TYPE_NULL, TSL_TYPE_NUMBER, TSL_TYPE_STRING, - TSL_TYPE_STRING_VIEW, + TSL_TYPE_STRING_REF, TSL_TYPE_BOOL, TSL_TYPE_LIST, TSL_TYPE_MAP, @@ -29,7 +29,7 @@ typedef enum { } TslBool; typedef struct { - uint8_t *data; + char *data; size_t size; } TslString; @@ -40,7 +40,7 @@ struct TslValue { union { TslNumber number; TslString *string; - TslStringView string_view; + TslStringView string_ref; TslBool boolean; TslBool null; TslList *list; |