reformat code

refactoring of collections to make use of destructors in map implementations

fix initial storage allocation for array lists created with CX_STORE_POINTERS

simplify cx_stream_ncopy()

add stream copy utils - fixes #254

make allocator in cxBufferInit optional

increase test coverage - fixes #250

test coverage for cx_strcmp pointer variants

allow NULL for allocator and comparator

add docs for CX_STORE_POINTERS and remove cxHashMapCreateForPointers()

add CX_STORE_POINTERS special item size for maps

add CX_STORE_POINTERS special "item size" for lists

add unit test for cxListClear + fix destructor functions not always invoked with the correct pointer

fix hashmap iterator skipping the second element in some cases

add cxListClear and fix missing destructor invocations - #241 #246

add cx_hash_key_cxstr() macro

add simple functions for creating lists

add CX_LINKED_LIST_SORT_SBO_SIZE macro

add some asserts

split cxMapRemove() to cxMapRemoveAndGet()

make hashmap store objects instead of pointers by default - fixes #239

add CxListComparator compatible string compare functions

fix gmock being build and gtest and gmock being installed

implement backwards iterator - fixes #238

Automated merge

rename test directory to avoid name clash with Makefile target

fix README showing how tests were run in the automake era

fix last change of mul overflow builtin breaking non-windows compilations

fix code not compiling under windows+mingw

fix wrong types for umul overflow builtins

remove too platform dependent printf tests

implement swap function for list elements - fixes #218

add pointer swap utility

add strtok API - fixes #220

reformat file

#228 make buffer sizes adjustable at compile time

minor fix for testing allocator self-test

add new pointer list wrapper - resolves #234

simplify list class - fixes #236

temporarily remove pointer lists - see #234

add cxListInsertArray() - fixes #224

remove the untrue restriction for the index parameter of cx_array_copy() from the documentation

add printf tests

add attributes to printf functions

change prefix of UCX_PRINTF_BUFSIZE to CX

add utils tests

fix public header destination

tests for compare functions

separate iterators and mutating iterators

#224 add cxListAddArray()

use //-style single line comments everywhere

fix cx_array_copy() unintentionally shrinking the array

#219: fix off-by-one bug in cx_arl_remove()

fix calculation of new capacity in cx_array_copy()

#219: cx_arl_remove short-circuit for last element

#219 array list: implement reverse

#219 array list: implement compare member func

missing const in cxListFind

#219 improve cx_arl_iter_next

#219 array list: implement insert via iterator

#219 array list: implement compare

fix include in array_list.h

#219 array list: add iterator

#219 array list: implement sort

#219 array list: implement find

#219 array list: implement remove

fix typo in enum cx_array_copy_result

#219 array list: implement insert

#219 array list: implement add and at

more custom data for array re-allocator

proposal for a low level array copy

implement array list ctor and dtor

add array list tests

fix typo in compare.h

change hash functions

fix missing const in cx_hash_key signature

use ucx compare function in list tests

add compare functions

east const

#222 add printf-like functions

#217 cover cx_strreplace_a() macro

#217 cover cx_strcat macro

#216 test hashing functions

remove unnecessary code

add test for cxMapClear()

explicitly cast int to char

enclose macro arguments in parenthesis

fix over-optimization of strstr

fix missing zero-termination in strreplace

add zero-termination guarantees

do not use c++ object initialization

use EXPECT_STREQ instead of strcmp

add tests for strupper and strlower

add test coverage for _m variant functions

disallow NULL for cx_str() and cx_mutstr()

add tests and missing implementations for strings

(0) -300 -100 -96 +96 +100 +300 tip

mercurial