diff options
| author | Tyge Løvset <[email protected]> | 2022-06-01 18:31:41 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2022-06-01 18:31:41 +0200 |
| commit | 254e61e2774d6b8fa6064e61c054014bfc460d91 (patch) | |
| tree | 1d350b9370a00cbc87f57ec484620d766788f8f7 /include/stc/csview.h | |
| parent | de5b9db42473801e83e93b35968c7cfc4b782e3a (diff) | |
| download | STC-modified-254e61e2774d6b8fa6064e61c054014bfc460d91.tar.gz STC-modified-254e61e2774d6b8fa6064e61c054014bfc460d91.zip | |
Reverted to default static linkage of non-templated symbols (cstr, csview, ..), as it gives smaller executables and is convenient for small applications. (no need to define i_implement when functions is used in one translaton unit only).
Diffstat (limited to 'include/stc/csview.h')
| -rw-r--r-- | include/stc/csview.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/stc/csview.h b/include/stc/csview.h index 90e1b10b..e55e547b 100644 --- a/include/stc/csview.h +++ b/include/stc/csview.h @@ -23,7 +23,6 @@ #ifndef CSVIEW_H_INCLUDED #define CSVIEW_H_INCLUDED -#define i_header #include "ccommon.h" #include "forward.h" #include "utf8.h" @@ -175,7 +174,7 @@ STC_INLINE uint64_t csview_hash(const csview *self) { return c_fasthash(self->str, self->size); } /* -------------------------- IMPLEMENTATION ------------------------- */ -#if defined(i_implement) +#if defined(i_implement) || defined(i_extern) STC_DEF csview csview_substr_ex(csview sv, intptr_t pos, size_t n) { |
