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/cbits.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/cbits.h')
| -rw-r--r-- | include/stc/cbits.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/stc/cbits.h b/include/stc/cbits.h index bf5d5406..f7ce2368 100644 --- a/include/stc/cbits.h +++ b/include/stc/cbits.h @@ -51,7 +51,6 @@ int main() { */ #ifndef CBITS_H_INCLUDED -#define i_header #include "ccommon.h" #include <stdlib.h> #include <string.h> @@ -246,8 +245,8 @@ STC_INLINE bool _i_memb(_disjoint)(const i_type* self, const i_type* other) { return _cbits_disjoint(self->data64, other->data64, _i_memb(_size)(self)); } - -#if defined(i_implement) +/* -------------------------- IMPLEMENTATION ------------------------- */ +#if defined(i_implement) || defined(i_extern) #if !defined i_len STC_DEF cbits* cbits_copy(cbits* self, const cbits* other) { |
