diff options
Diffstat (limited to 'include/stc/forward.h')
| -rw-r--r-- | include/stc/forward.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/stc/forward.h b/include/stc/forward.h index 026834d0..1fb0a2c1 100644 --- a/include/stc/forward.h +++ b/include/stc/forward.h @@ -43,13 +43,13 @@ #define forward_cvec(CX, VAL) _c_cvec_types(CX, VAL)
#ifdef CSTR_IS_SSO
-typedef struct { char* data; size_t size, cap; } _cstr_rep_t;
-typedef union {
- struct { char data[sizeof(_cstr_rep_t) - 1]; uint8_t last; } sso;
- struct { char* data; size_t size, ncap; } lon;
-} cstr;
+ typedef struct { char* data; size_t size, cap; } cstr_rep_t;
+ typedef union {
+ struct { char data[sizeof(cstr_rep_t) - 1]; uint8_t last; } sso;
+ struct { char* data; size_t size, ncap; } lon;
+ } cstr;
#else
- typedef struct cstr { char* str; } cstr;
+ typedef struct cstr { char* str; } cstr;
#endif
typedef char cstr_value;
|
