summaryrefslogtreecommitdiffhomepage
path: root/include/stc/forward.h
diff options
context:
space:
mode:
authorTyge Lovset <[email protected]>2022-05-06 05:44:41 +0200
committerTyge Lovset <[email protected]>2022-05-06 05:44:41 +0200
commitbf3a35e3cd8d1df9548aa0e57b58d7a0e5dfef14 (patch)
treed7fa178e449f64c0d91d3d4b97e20a5619fccab3 /include/stc/forward.h
parent85180f17da3ea3d1cebc30d42560fb12a997aabf (diff)
downloadSTC-modified-bf3a35e3cd8d1df9548aa0e57b58d7a0e5dfef14.tar.gz
STC-modified-bf3a35e3cd8d1df9548aa0e57b58d7a0e5dfef14.zip
Made cstr_buffer() func. public, and docs for cstr_sv() - convert to csview.
Diffstat (limited to 'include/stc/forward.h')
-rw-r--r--include/stc/forward.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/stc/forward.h b/include/stc/forward.h
index 6af17c2b..9952416a 100644
--- a/include/stc/forward.h
+++ b/include/stc/forward.h
@@ -42,11 +42,11 @@
#define forward_cqueue(CX, VAL) _c_cdeq_types(CX, VAL)
#define forward_cvec(CX, VAL) _c_cvec_types(CX, VAL)
-typedef struct { char* data; size_t size, cap; } cstr_rep_t;
+typedef struct { char* data; size_t size, cap; } cstr_buf;
typedef char cstr_value;
#ifndef STC_OLD_CSTR
typedef union {
- struct { char data[sizeof(cstr_rep_t) - 1]; unsigned char last; } sml;
+ struct { char data[sizeof(cstr_buf) - 1]; unsigned char last; } sml;
struct { char* data; size_t size, ncap; } lon;
} cstr;
#else