summaryrefslogtreecommitdiffhomepage
path: root/examples
AgeCommit message (Collapse)Author
2022-01-14Fixed function linkage spec in cstr. Moved typedefs of cstr and csview to ↵Tyge Løvset
forward.h-
2022-01-14Renamed *_v() methods to *_sv(). Note: this breaks API, hopefully not too ↵Tyge Løvset
intrusive. The change was needed to be consistent in using 'sv' as a shorthand for "string view" everywhere, and is easier to understand than _v().
2022-01-13Fixed threads_demo.c and made it "identical" to the c++ example.Tyge Løvset
2022-01-13Fix a potential compilation bug in cbox/carc.Tyge Løvset
2022-01-12Docs update, mmap.c example update.Tyge Løvset
2022-01-11Fix / simplified unistd.h and renamed some examples that uses arc. (atomic ↵Tyge Løvset
ref. count / shared_ptr)
2022-01-11Fixed c++ sidebyside example.Tyge Løvset
2022-01-11Added tinycthread: include/threads.h, src/threads.c. Ex: sptr_threads.c - ↵Tyge Løvset
emulates standard C11 threads library for compilers not supporting C11 threads.h. Fixed and cleanup of CMake build.
2022-01-11Removed regex for now.Tyge Løvset
2022-01-11Some updates on Regex. Will remove it for now, as it is functionally unstable.Tyge Løvset
2022-01-09Small cregex API change. Added 2 examples.Tyge Løvset
2022-01-09Probably stable API for cregex.hTyge Løvset
2022-01-09Removed strings.h.Tyge Løvset
2022-01-09More on regex.Tyge Løvset
2022-01-08Moved utf8 from cregex.h to separate file. Splitted csview.h into another ↵Tyge Løvset
file strings.h.
2022-01-07Removed tabs. Changed cregex_match members to start, end.Tyge Løvset
2022-01-07Some renaming in cregex API. Added match function. Made utf8 operations ↵Tyge Løvset
branchless.
2022-01-06Added customized version of the awesome regex lib by Fabian van Rissenbeck.Tyge Løvset
2022-01-05Added docs on checkauto util program. Renamed (mainly internal) c_rawstr ↵Tyge Løvset
type to crawstr.
2022-01-04Fixed csview hash func.Tyge Løvset
2022-01-03"gcc/clang -O2 -Wall -std=c99 -pedantic" compiles examples with no warnings. ↵Tyge Løvset
More cleanups.
2022-01-03Removed debug code.Tyge Løvset
2021-12-30Renamed c_default_clone to c_default_from (mostly used internally).Tyge Løvset
2021-12-29Removed warnings for MS cl -W2 and clang -pedantic -std=c99. No functional ↵Tyge Løvset
changes.
2021-12-29Some more docs.Tyge Løvset
2021-12-29Fixed and simplified csview tokensizer call.Tyge Løvset
2021-12-28Added autocheck.l utility to check for wrong usage of c_auto*.Tyge Løvset
2021-12-23Fix new_sptr.c example.Tyge Løvset
2021-12-23Removed emplace functions if not i_valraw or i_keyraw is defined. ↵Tyge Løvset
Safety/optimize measure.
2021-12-22Renamed csptr to carc. i_key/val_ref renamed to i_key/val_sptr. Change ↵Tyge Løvset
inspired by Rust Arc/Rc. cbox name is taken from Rust Box type.
2021-12-22Minor example update.Tyge Løvset
2021-12-22Renamed '_rawvalue\b' to '_raw'Tyge Løvset
2021-12-22Changed the c_apply() and c_apply_pair() to one new c_apply() API. Added ↵Tyge Løvset
c_pair(v) for convenience.
2021-12-20Some small addition to constness in API. Updated docs.Tyge Løvset
2021-12-19Global rename of `_equ\b` => `_eq`. In practice `i_equ` must renamed to ↵Tyge Løvset
`i_eq` in user code if used.
2021-12-19More docs, small example updates.Tyge Løvset
2021-12-19Update wrong info in doc.Tyge Løvset
2021-12-19Improved box.c and added a corresponding sptr.c example.Tyge Løvset
2021-12-19First commit for Version 3 of STC. Main changes are consistent rename of ↵Tyge Løvset
'_del' to '_drop' and '_compare' to '_cmp'. Also i_key_ref (earlier i_key_sptr) and i_val_ref replaced by more general i_key_bind/i_val_bind.
2021-12-16Changed default comparison of csbox and csptr objects to comparing addresses ↵Tyge Løvset
to containing objects. If i_cmp is defined, it is used instead.
2021-12-15Some improvements in cvec and cpque.Tyge Løvset
2021-12-14Some more docs updates and new csptr examples.Tyge Løvset
2021-12-14Final update of box2.c example.Tyge Løvset
2021-12-14Small improvement of example box2.c.Tyge Løvset
2021-12-14Fixed silly bug in cpque_X_pop(). Thanks to matthieugras. Added ↵Tyge Løvset
cpque_X_shrink_to_fit(). Fixed memory leak in example box2.c
2021-12-14Added and renamed some examples.Tyge Løvset
2021-12-14cstr_printf() now returns int like printf(). Minor updates in sharedptr.c ↵Tyge Løvset
example.
2021-12-13Renamed constructor *cstr_lit()* to `cstr_new(lit)`.Tyge Løvset
Renamed *cstr_assign_fmt()* to `cstr_printf()`. Renamed cbits_from_str() to cbits_from().
2021-12-12Fixed example bug.Tyge Løvset
2021-12-12Commented out example with error.Tyge Løvset