summaryrefslogtreecommitdiffhomepage
path: root/include/stc/csview.h
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-01-02 14:18:22 +0100
committerTyge Løvset <[email protected]>2022-01-02 14:18:22 +0100
commit9826f52e385e1ec019c63fd483f1c8acccf4a360 (patch)
tree415a95e035b35995781392f04cf0c0bcb986b41c /include/stc/csview.h
parent8134d0f62ebc659741131eb79cec4fdcf5f774f7 (diff)
downloadSTC-modified-9826f52e385e1ec019c63fd483f1c8acccf4a360.tar.gz
STC-modified-9826f52e385e1ec019c63fd483f1c8acccf4a360.zip
Simplified and improved linkage configuration. Reorganized crandom.h a bit.
May define "i_opt c_shared", or "i_opt c_static" to specify individual container linkage, based on if STC_HEADER is defined, i.e static linkage is default, STC_HEADER defined makes shared symbols default.
Diffstat (limited to 'include/stc/csview.h')
-rw-r--r--include/stc/csview.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/stc/csview.h b/include/stc/csview.h
index 2536c274..e1f82272 100644
--- a/include/stc/csview.h
+++ b/include/stc/csview.h
@@ -122,8 +122,7 @@ STC_INLINE int csview_cmp(const csview* x, const csview* y) {
#define csview_eq(xp, yp) (!csview_cmp(xp, yp))
/* -------------------------- IMPLEMENTATION ------------------------- */
-
-#if !defined(STC_SHARED) || defined(STC_IMPLEMENTATION)
+#if defined(_i_implement)
STC_DEF csview
csview_substr(csview sv, intptr_t pos, size_t n) {
@@ -150,3 +149,4 @@ csview_token(csview sv, csview sep, size_t* start) {
#endif
#endif
+#undef i_opt \ No newline at end of file