summaryrefslogtreecommitdiffhomepage
path: root/include/stc/forward.h
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-04-22 00:18:56 +0200
committerTyge Løvset <[email protected]>2022-04-22 00:18:56 +0200
commit182099800f230f876fb46dac9f1f49a4fe3c3981 (patch)
tree4622cd11ce75bfaa76b3143c8bebca1bf694c671 /include/stc/forward.h
parent0e8bca60bd74ff7c6dfca88aca824f8d5907a992 (diff)
downloadSTC-modified-182099800f230f876fb46dac9f1f49a4fe3c3981.tar.gz
STC-modified-182099800f230f876fb46dac9f1f49a4fe3c3981.zip
Swapped cstr.h with alt/cstr.h with SSO (short string optimization). #define STC_OLD_CSTR 1 to use previous string (only 8 byte rep).
Diffstat (limited to 'include/stc/forward.h')
-rw-r--r--include/stc/forward.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/stc/forward.h b/include/stc/forward.h
index 0cefd271..a62c8af4 100644
--- a/include/stc/forward.h
+++ b/include/stc/forward.h
@@ -44,7 +44,7 @@
typedef struct { char* data; size_t size, cap; } cstr_rep_t;
typedef char cstr_value;
-#ifdef STC_USE_SSO
+#ifndef STC_OLD_CSTR
typedef union {
struct { char data[sizeof(cstr_rep_t) - 1]; unsigned char last; } sml;
struct { char* data; size_t size, ncap; } lon;