summaryrefslogtreecommitdiffhomepage
path: root/include
AgeCommit message (Collapse)Author
2021-06-02Removed key constness in cmap/csmap - more annoyance than protection. Made ↵Tyge Løvset
cdeq and clist forwardable. Note: forwardable parameter is currently last (c_true/c_false). May be moved ahead to after _del parameter, maybe..
2021-06-02- Backported csmap_v1.h (with malloced nodes) to match csmap.Tyge Løvset
- Updated csmap/cmap to separate out types in order to later have incomplete values support. - Added incomplete value support to csptr. I question the need because recursive structures should not use shared_ptr. - Added c_forinitdel() macro, support up to 3 variables.
2021-06-01Merge branch 'master' of https://github.com/tylo-work/C99Containers into masterTyge Løvset
2021-06-011. Added c_forscope() macro. Similar to c_forvar() and c_fordefer().Tyge Løvset
2. Added *experimental* forward declare for cvec: No API changes: typedef struct person Person; // forward declare cvec_prs forward_cvec(prs, Person); ... // complete definition: specify c_false as very last parameter. using_cvec(prs, Person, c_no_compare, person_del, person_clone, c_default_toraw, Person, c_false);
2021-05-28Changed the csview front() and back() API. Added csview_npos constant.Tyge Løvset
2021-05-27csview_substr() and csview_slice() should be 100% robust now.Tyge Løvset
2021-05-27Minor: removed redundant test.Tyge Løvset
2021-05-27Fix: Allow csview_substr() and csview_slice() to take larger negative ↵Tyge Løvset
position than size of view.
2021-05-27Made substr() and slice() only returning csview. Added Both cstr and csview ↵Tyge Løvset
input argument variants. Changed def of cstr_npos.
2021-05-26Removed cstr_trim, csview_trim, Changed cstr_substr to mutable. Allow ↵Tyge Løvset
negative pos on cstr_substr, csview_substr. Added cstr_slice, csview_slice.
2021-05-25Replaced csview cstr_trimmed(cstr s, left, right) with: cstr* ↵Tyge Løvset
cstr_trim(cstr* self, left, right);
2021-05-25Small refactoring and improved docs.Tyge Løvset
2021-05-24Added splitstr.c example. Renamed macro csview_ARG() to csview_arg(): ↵Tyge Løvset
special for printing csviews with "%.*s" format.
2021-05-24Split c_fordefer() into c_forvar() and c_fordefer() macros.Tyge Løvset
2021-05-24Renamed c_with => c_fordefer, and removed c_withvar. Macros were too ↵Tyge Løvset
deceiving and hid the fact that it was for-loops. Now it is more explicit.
2021-05-23Added csmap_find.c example.Tyge Løvset
2021-05-22Added *_value_toraw() methods to base containers.Tyge Løvset
2021-05-21Added substr() and cleanup of trimmed() API.Tyge Løvset
2021-05-21API change: c_breakwith => c_exitwith, c_breakdefer => c_exitdefer. Added ↵Tyge Løvset
csmap_insert.c example.
2021-05-21Allow up to 3 vars in the c_withvar (type, v1, v2, v3) statement.Tyge Løvset
2021-05-21Updated string split / tokenizer example in csview docs.Tyge Løvset
2021-05-20Added csview tokenizer (split string).Tyge Løvset
2021-05-20Moved stc folder into include folder.Tyge Løvset