diff options
| author | Tyge Løvset <[email protected]> | 2022-04-17 21:46:41 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2022-04-17 21:46:41 +0200 |
| commit | 4436a1c0ac37dc2e73a2134d5ad85c010340b35d (patch) | |
| tree | 21547655a7131d5961ba96513772b8a8dd3b8460 /include/stc/forward.h | |
| parent | 57de677b5b00e0aa75772d6b5fe6347edbe03ffd (diff) | |
| download | STC-modified-4436a1c0ac37dc2e73a2134d5ad85c010340b35d.tar.gz STC-modified-4436a1c0ac37dc2e73a2134d5ad85c010340b35d.zip | |
alt/cstr.h (sso string): added cstr_replace_all(). Header examples updated to use cstr_str(&s) instead of s.str. Some docs updates.
Diffstat (limited to 'include/stc/forward.h')
| -rw-r--r-- | include/stc/forward.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/stc/forward.h b/include/stc/forward.h index 2351176a..0cefd271 100644 --- a/include/stc/forward.h +++ b/include/stc/forward.h @@ -46,7 +46,7 @@ typedef struct { char* data; size_t size, cap; } cstr_rep_t; typedef char cstr_value;
#ifdef STC_USE_SSO
typedef union {
- struct { char data[sizeof(cstr_rep_t) - 1]; uint8_t last; } sml;
+ struct { char data[sizeof(cstr_rep_t) - 1]; unsigned char last; } sml;
struct { char* data; size_t size, ncap; } lon;
} cstr;
#else
|
