diff options
| author | Tyge Løvset <[email protected]> | 2023-08-21 18:26:59 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2023-08-21 18:26:59 +0200 |
| commit | 7b57eb4240ee886278b862ed8c90618376237afc (patch) | |
| tree | 844f3fd9377a805218ce04aed13bb961e93a8307 /include | |
| parent | f354a2d11df91becfd7b3fb16abe54533737b1ad (diff) | |
| download | STC-modified-7b57eb4240ee886278b862ed8c90618376237afc.tar.gz STC-modified-7b57eb4240ee886278b862ed8c90618376237afc.zip | |
Some cleanups.
Diffstat (limited to 'include')
| -rw-r--r-- | include/stc/forward.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/include/stc/forward.h b/include/stc/forward.h index 2372a618..2fbff034 100644 --- a/include/stc/forward.h +++ b/include/stc/forward.h @@ -41,13 +41,13 @@ // csview : non-null terminated string view typedef const char csview_value; -typedef struct csview { - csview_value* buf; +typedef struct csview { + csview_value* buf; intptr_t size; } csview; -typedef union { - csview_value* ref; +typedef union { + csview_value* ref; csview chr; struct { csview chr; csview_value* end; } u8; } csview_iter; @@ -55,13 +55,13 @@ typedef union { // crawstr : null-terminated string view typedef csview_value crawstr_value; -typedef struct crawstr { - crawstr_value* str; +typedef struct crawstr { + crawstr_value* str; intptr_t size; } crawstr; -typedef union { - crawstr_value* ref; +typedef union { + crawstr_value* ref; csview chr; struct { csview chr; } u8; // [deprecated] } crawstr_iter; @@ -75,8 +75,8 @@ typedef union cstr { struct { cstr_value* data; size_t size, ncap; } lon; } cstr; -typedef union { - cstr_value* ref; +typedef union { + cstr_value* ref; csview chr; struct { csview chr; } u8; // [deprecated] } cstr_iter; |
