From 01d0b42e1a9c6b944e5853e47539e03b975f130b Mon Sep 17 00:00:00 2001 From: Leonardo Date: Fri, 2 Aug 2019 01:03:28 -0300 Subject: [PATCH] v1.6.0 --- CHANGELOG | 26 ++++++++++++++++++-------- README.md | 13 ++----------- TODO | 23 +++++++++++++---------- 3 files changed, 33 insertions(+), 29 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 91e5b98..28192ef 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,22 +1,32 @@ # RELEASE.MAJOR.MINOR +1.6.0 + Added ./ext/intervalheap.h + Added ./ext/multimap.h + Added ./ext/multiset.h + Added to_string function to most collections + Added the cmc prefix to the enum entry_state used by hashtables and to the enum heap_type used by the heap + Fixed return type on some functions from ./cmc/hashset.h and ./cmc/treeset.h + Fixed hashtables integer overflow when the capacity is divided by the load factor + Changed timer.h struct name from timer_t to cmc_timer to prevent name collisions on linux + 1.5.3 Tests completely reorganized and now with full code coverage Some fixes where there was a missing return statement - Expanded utl/assert.h + Expanded ./utl/assert.h 1.5.2 - Added utl/test.h - Added utl/assert.h - Added tests/list.c - UnitTest for LIST - Small fixes on utl/foreach.h, utl/test.h and redone utl/timer.h - Removed utl/log.h functions that were unnecessary + Added ./utl/test.h + Added ./utl/assert.h + Added ./tests/list.c - UnitTest for LIST + Small fixes on ./utl/foreach.h, ./utl/test.h and redone ./utl/timer.h + Removed ./utl/log.h functions that were unnecessary Added the CMC namespace to CONCATC and CONCATH at macro_collections.h 1.5.1 New queue benchmark - Added sac/queue.h - Added utl/timer.h + Added ./sac/queue.h + Added ./utl/timer.h Fixing descriptions and other minor fixes 1.5.0 diff --git a/README.md b/README.md index 27630c3..e92d358 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ Generate Simple Data Structures of any type in C for you to use in your projects. ![License](https://img.shields.io/badge/License-MIT-blue.svg) -![Version](https://img.shields.io/badge/Version-v1.5.3-orange.svg) +![Version](https://img.shields.io/badge/Version-v1.6.0-orange.svg) [![Build](https://travis-ci.org/LeoVen/C-Macro-Collections.svg?branch=master)](https://travis-ci.org/LeoVen/C-Macro-Collections) [![codecov](https://codecov.io/gh/LeoVen/C-Macro-Collections/branch/master/graph/badge.svg)](https://codecov.io/gh/LeoVen/C-Macro-Collections) @@ -88,16 +88,7 @@ The following table shows how each collection is implemented and how well they d ## How to use -To generate the collection, all you need to do is to include the necessary header files. You can include the containers you want to use individually or you can include the master header, `macro_collections.h`, that comes with all collections and other functionalities like the `FOR_EACH` macro. - -There are four C standard headers that all collections use: - -* `` -* `` -* `` -* `` - -With the last one being used only by array based containers. These headers are already included by default. +To generate the collection, all you need to do is to include the necessary header files. You can include the containers you want to use individually or you can include the master header, `macro_collections.h`, that comes with the entire C-Macro-Collections library. ### Macros diff --git a/TODO b/TODO index 26af913..033ea1b 100644 --- a/TODO +++ b/TODO @@ -1,29 +1,32 @@ TODO -/ - In Progress -X - Finished -~ - Needs to be reviewed +[/] - In Progress +[X] - Finished +[~] - Needs to be reviewed [/] Documentation [X] Remove PUBLIC and PRIVATE [ ] Extra Collections - [~] Add MultiSet + [X] Add MultiSet [X] Add MultiMap [X] Add IntervalHeap [ ] Add TreeHashMap [ ] Add functions [ ] update {hashmap, treemap, multimap} [/] to_string {all} - [ ] iter_move {all} (iterators) - [ ] iter_move_to {all} (iterators) + [ ] iter_advance {all} (iterators) + [ ] iter_rewind {all} (iterators) + [ ] iter_go_to {all} (iterators) [ ] from_array {all} [ ] to_array {all} - [ ] compare {all} + [ ] equals {all} [ ] resize {dynamic arrays and circular buffers} [ ] dispose {all} - [ ] copy {all} + [ ] copy_of {all} [ ] save {all} (serialization) [ ] load {all} (serialization) + [ ] read {all} (serialization) + [ ] write {all} (serialization) [ ] Range IO [ ] Sequences [ ] seq_push_front @@ -60,9 +63,9 @@ X - Finished [ ] Stack [ ] TreeMap [ ] TreeSet -[~] Utility +[X] Utility [X] assert.h [X] foreach.h [X] log.h - [~] test.h + [X] test.h [X] timer.h