From 182099800f230f876fb46dac9f1f49a4fe3c3981 Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Fri, 22 Apr 2022 00:18:56 +0200 Subject: 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). --- include/stc/forward.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/stc/forward.h') 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; -- cgit v1.2.3