From 58bb58e7980d1eae175ed66dbe873893a05ab81e Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Mon, 30 May 2022 14:22:44 +0200 Subject: 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(). --- docs/csview_api.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/csview_api.md') diff --git a/docs/csview_api.md b/docs/csview_api.md index 55ac017e..543173d3 100644 --- a/docs/csview_api.md +++ b/docs/csview_api.md @@ -40,8 +40,8 @@ char csview_back(csview sv); void csview_clear(csview* self); -csview csview_substr(csview sv, intptr_t pos, size_t n); // negative pos count from end -csview csview_slice(csview sv, intptr_t p1, intptr_t p2); // negative p1, p2 count from end +csview csview_substr_ex(csview sv, intptr_t pos, size_t n); // negative pos count from end +csview csview_slice_ex(csview sv, intptr_t p1, intptr_t p2); // negative p1, p2 count from end csview csview_token(csview sv, csview sep, size_t* start); // see split example below. bool csview_equals(csview sv, csview sv2); -- cgit v1.2.3