From 5df950e0b35207930c645e8ce0c3e9ed1c9fcea5 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 25 Jan 2020 09:54:37 +0100 Subject: string view > string ref --- include/value.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include') 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; -- cgit v1.2.3