aboutsummaryrefslogtreecommitdiffstats
path: root/src/parser.h
diff options
context:
space:
mode:
authorBad Diode <bd@badd10de.dev>2021-10-31 15:06:32 +0100
committerBad Diode <bd@badd10de.dev>2021-10-31 15:06:32 +0100
commitc324b3ce34b977d229b9bc6fa00fabc731ee65dd (patch)
tree4d5e903fc5c757102b203d67b1b3e0dc4aa35403 /src/parser.h
parent20c662d8dd751422b5624b11249cd8331abd8fa1 (diff)
downloadbdl-c324b3ce34b977d229b9bc6fa00fabc731ee65dd.tar.gz
bdl-c324b3ce34b977d229b9bc6fa00fabc731ee65dd.zip
Replace string/symbol text field with StringView
This will avoid unnecessary allocations, since we always keep the original text file open until the end of the processing.
Diffstat (limited to 'src/parser.h')
-rw-r--r--src/parser.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser.h b/src/parser.h
index 41dafa7..9414a24 100644
--- a/src/parser.h
+++ b/src/parser.h
@@ -31,7 +31,7 @@ typedef struct Object {
31 31
32 // OBJ_TYPE_STRING 32 // OBJ_TYPE_STRING
33 // OBJ_TYPE_SYMBOL 33 // OBJ_TYPE_SYMBOL
34 char *text; 34 StringView text;
35 35
36 // OBJ_TYPE_PAIR 36 // OBJ_TYPE_PAIR
37 struct { 37 struct {