aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-01-25 09:54:37 +0100
committerdec05eba <dec05eba@protonmail.com>2020-01-25 09:54:37 +0100
commit5df950e0b35207930c645e8ce0c3e9ed1c9fcea5 (patch)
tree8264595bea95b6d0dcc530566168f2030dfe06ff /include
parent4b2b8d3176e84f76510cc69a627dbfa089c1dd35 (diff)
string view > string ref
Diffstat (limited to 'include')
-rw-r--r--include/value.h6
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;