summaryrefslogtreecommitdiff
path: root/common/collection/collection_ut.c
AgeCommit message (Collapse)AuthorFilesLines
2009-07-02Changing function names for collection API.Dmitri Pal1-363/+363
Patch prepends prefix "col_" to all functions related to collection. This caused some formatiing issues so the alignement was addressed too.
2009-07-02New deletion unit test.Dmitri Pal1-1/+35
Adds a unit test for deletion and re-adding of the elements to collection. Small syntactical fix in "stack".
2009-07-02FORMATTING - minor cleanup of the unit test.Dmitri Pal1-254/+283
This patch adds formatting changes to better follow the style guidelines in the collection unit test. No logical changes to the code. I was planning to do it for a while per Simo's comment when he accepted the core of the collection code but indicated that the unit test should be cleaned later. Later has come.
2009-07-01Adding INSERT into collection functionality.Dmitri Pal1-7/+162
Add was always insterting at the end of the collection. With this change one can control where the item is inserted and deal with the duplicates too. Also one now can extract items from collection using absolute and relative disposition. Using more advanced hashing function.
2009-04-14Fixing memory issues in ini and collectionDmitri Pal1-6/+9
The read_line() function used an internal buffer allocated on stack as temporary storage for a line read from file, then returned it. read_line() now gets a buffer from the caller. Fixed memory leaks in INI and Collection found by valgrind.
2009-04-06Clean up a lot of warnings in Collection and INI parserStephen Gallagher1-4/+1
2009-04-06First commit of basic collection API.Dmitri Pal1-0/+712