summaryrefslogtreecommitdiffhomepage
path: root/include/stc/cbits.h
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-05-30 14:22:44 +0200
committerTyge Løvset <[email protected]>2022-05-30 14:22:44 +0200
commit58bb58e7980d1eae175ed66dbe873893a05ab81e (patch)
tree2756b2d1b62264c34a6d40265dc85f07eb2f1112 /include/stc/cbits.h
parentb28d3fa7c3b9233ca485014744bf84e6c4f5a1d3 (diff)
downloadSTC-modified-58bb58e7980d1eae175ed66dbe873893a05ab81e.tar.gz
STC-modified-58bb58e7980d1eae175ed66dbe873893a05ab81e.zip
Done refactoring:
- Non-templated types (cstr, csview, cbits, crandom) have no longer default static linking. Now i_header is defined, i.e. files are as headers only. ==> Define `i_implement` before file inclusion. Still possible to do static linkage by defining `i_static` before inclusion or global STC_STATIC. - Templated containers still have static linkage by default. - Renamed csview_substr(), csview_slice() to csview_substr_ex(), csview_slice_ex(). Added simpler inlined csview_substr(), csview_slice().
Diffstat (limited to 'include/stc/cbits.h')
-rw-r--r--include/stc/cbits.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/stc/cbits.h b/include/stc/cbits.h
index e35e4225..9c7081f7 100644
--- a/include/stc/cbits.h
+++ b/include/stc/cbits.h
@@ -51,6 +51,7 @@ int main() {
*/
#ifndef CBITS_H_INCLUDED
+#define i_header
#include "ccommon.h"
#include <stdlib.h>
#include <string.h>