diff options
| author | Tyge Løvset <[email protected]> | 2022-11-27 19:55:09 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2022-11-27 19:55:09 +0100 |
| commit | d540332f52fbd9b2c50a402525a5cfca4919ec32 (patch) | |
| tree | 7f4b8048f01badbfc03203508ab4539af9cb042d /include/stc/forward.h | |
| parent | bd6fdd79ee0aa91796ce88048ee15f7ae0f3e874 (diff) | |
| download | STC-modified-d540332f52fbd9b2c50a402525a5cfca4919ec32.tar.gz STC-modified-d540332f52fbd9b2c50a402525a5cfca4919ec32.zip | |
Removed dependence to STC_CSTR_V1.
Diffstat (limited to 'include/stc/forward.h')
| -rw-r--r-- | include/stc/forward.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/include/stc/forward.h b/include/stc/forward.h index a45efc3c..45a68e3a 100644 --- a/include/stc/forward.h +++ b/include/stc/forward.h @@ -51,14 +51,10 @@ typedef union { typedef char cstr_value; typedef struct { cstr_value* data; size_t size, cap; } cstr_buf; -#if defined STC_CSTR_V1 - typedef struct { cstr_value* str; } cstr; -#else - typedef union { - struct { cstr_value data[sizeof(cstr_buf) - 1]; unsigned char size; } sml; - struct { cstr_value* data; size_t size, ncap; } lon; - } cstr; -#endif +typedef union { + struct { cstr_value data[sizeof(cstr_buf) - 1]; unsigned char size; } sml; + struct { cstr_value* data; size_t size, ncap; } lon; +} cstr; typedef union { cstr_value* ref; struct { csview chr; } u8; |
