Leonardo
4e96d3aba0
Huge changes to bidimap and added callbacks to it
...
Callbacks lost their 'on_' prefix
Bidimap was simply not working properly. Many of its functions have been reworked:
- _update_key_by_val is now _update_key
- _update_val_by_key is now _update_val
- Removed _update_key and _update_val because they just weren't what a bidimap really is about
2020-03-18 16:36:05 -03:00
Leonardo
0089abc84a
Added cor folder and cmc_callbacks is now common to all collections
...
Now every file includes core.h and hashtable-based collections include hashtable.h
The definition of cmc_heap_order has been kept inside heap.h because it is the only collection to use it
2020-03-17 16:10:12 -03:00
Leonardo
d7f44e0dbe
Added logo to documentation backup and updated TODO
2020-03-16 20:16:28 -03:00
Leonardo
d4f30e3693
Added print function and renamed 'data' to 'value' in linkedlist
2020-03-16 19:55:47 -03:00
Leonardo
9999275ad0
Added flags to treeset and quickfix to treemap unit test
2020-03-16 19:53:02 -03:00
Leonardo
2391729541
Added flags to treemap
2020-03-16 14:30:41 -03:00
Leonardo
ffb03890df
Added flags to stack
2020-03-15 16:42:34 -03:00
Leonardo
b3fa566725
Added flags to sortedlist
2020-03-14 17:39:33 -03:00
Leonardo
db2de0b855
Added flags to queue
2020-03-13 14:29:29 -03:00
Leonardo
f82fb45242
Added flags to multiset and fixing some more
2020-03-13 11:56:32 -03:00
Leonardo
101b839801
Fixing equals functions of list and intervalheap
2020-03-12 14:05:30 -03:00
Leonardo
0c8e12ce30
Renaming some ERROR flags to INVALID
2020-03-12 11:58:02 -03:00
Leonardo
efcf831cb5
Update README and TODO
2020-03-12 11:53:48 -03:00
Leonardo
8f64d4bca2
Changed documentation backup folder and added generated documentation to docs/
...
This change is a preparation to migrate the documentation from the gh-pages branch to the docs/ folder in the master branch (once dev is merged)
2020-03-11 21:16:37 -03:00
Leonardo
01b8bee8b1
Added missing flags and tests
2020-03-11 15:10:52 -03:00
Leonardo
f3192b731b
Saving updated documentation
2020-03-11 01:20:25 -03:00
Leonardo
863a3a2d8d
Added flags to multimap
2020-03-10 16:48:45 -03:00
Leonardo
dea981c154
Adding flags to list and renaming OUT_OF_RANGE flag to RANGE
2020-03-09 15:47:32 -03:00
Leonardo
157aea6055
Added flags to linkedlist and renamed some functions
2020-03-05 13:49:36 -03:00
Leonardo
8bd297f4a3
Added flags to intervalheap
2020-03-04 14:25:44 -03:00
Leonardo
e4bb9fde74
Adding flags to heap and print functions to collections that already have flags
2020-03-03 17:04:19 -03:00
Leonardo
ecc0b51e4b
Removing CMC_FOR_EACH and CMC_FOR_EACH_REV and small fix to multiset
2020-03-02 22:50:07 -03:00
Leonardo
f020df12f6
Update README and TODO
2020-03-01 12:23:19 -03:00
Leonardo
6e49fb8174
Added flags to hashset
2020-02-29 21:15:04 -03:00
Leonardo
4b7678a621
Added flags to hashmap and added some hotfixes
2020-02-28 17:29:55 -03:00
Leonardo
5794760ceb
Added flags to deque
2020-02-26 13:06:12 -03:00
Leonardo
9e206635be
Added flags to bidimap
2020-02-26 13:01:35 -03:00
Leonardo
5ed65668e0
Adding functions table to treemap and treeset and some fixes to to_string
2020-02-11 15:58:39 -03:00
Leonardo
7efc0e26e0
Adding functions table to sortedlist and stack, and some fixes to queue
2020-02-10 22:47:54 -03:00
Leonardo
aa7c5f775a
Adding functions table to queue
2020-02-09 22:32:47 -03:00
Leonardo
147e622580
Adding functions table to multimap and multiset
2020-02-08 00:01:46 -03:00
Leonardo
683decfa64
Adding functions table to linkedlist and list and some minor fixes from previous commit
2020-02-06 17:13:24 -03:00
Leonardo
64c3a99922
Adding functions table to heap and intervalheap
2020-02-06 16:12:06 -03:00
Leonardo
fa49fddd8f
Adding functions table to hashset and fixing root makefile
2020-02-06 14:10:12 -03:00
Leonardo
7dd6218017
Adding functions table to hashmap and some fixes in bidimap and queue
2020-02-06 01:04:25 -03:00
Leonardo
13f63cea23
Trying to fix readme table (colors were not being set)
2020-02-05 15:17:03 -03:00
Leonardo
4c54567eec
Update README.md
2020-01-31 23:27:33 -03:00
Leonardo
9344440f41
Fast forward changes (read desc)
...
Freezing tests outside of ./tests/main
Formatting all files in ./src and ./tests except for ./tests/codecov
Created makefile for automated code formatting using clang-format
Now bidimap and deque operate with Functions Tables
2020-01-30 18:20:35 -03:00
Leonardo
b2bef4e3cc
Fast forward changes
2020-01-29 23:58:56 -03:00
Leonardo
cbf24ab217
Fixing new_custom use
2019-12-13 19:28:35 -03:00
Leonardo
e34443233f
Update TODO
2019-12-06 17:38:59 -03:00
Leonardo
8498b97f4c
Fixing some left out custom allocation calls
2019-12-05 19:57:36 -03:00
Leonardo
87916ab71b
Added maps benchmark
2019-12-04 01:05:53 -03:00
Leonardo
359f282784
Added .clang-format and formatted source code
2019-12-03 16:09:31 -03:00
Leonardo
26fa80f7e0
Removed cmc_string.h as it is no longer needed
2019-12-03 02:00:15 -03:00
Leonardo
74177f891d
Fixing cmc_alloc_node_default error
2019-11-23 01:46:12 -03:00
Leonardo
3ee070b4dd
Update TODO and added to_string visual test
2019-11-23 00:38:31 -03:00
Leonardo
49bed825c2
All collections now support custom allocation functions
...
Also some development was made towards callback functions
Now all files are independent and include all necessary definitions within it
2019-11-23 00:28:11 -03:00
Leonardo
26cc284618
Update TODO
2019-11-22 14:49:28 -03:00
Leonardo
f550b0dfa3
Custom allocation node to hashmap, hashset and heap
2019-11-22 00:51:23 -03:00
Leonardo
3b8182d751
Fixing more bidimap stuff and update deque
2019-11-21 23:58:05 -03:00
Leonardo
9996eefc69
Fixing bidimap and adding more tests
2019-11-21 01:52:54 -03:00
Leonardo
ad2ae84c13
Finishing up some functions of bidimap that were left off
...
Also gearing up bidimap for next update containing callbacks and custom allocation functions
2019-11-13 23:23:54 -03:00
Leonardo
0d57698d2f
Main header file now only uses a single concatenation macro
2019-11-13 21:24:38 -03:00
Leonardo
e3a8745a0b
v1.7.3
2019-10-30 00:05:34 -03:00
Leonardo
415720c6a6
Update benchmarks and examples
2019-10-29 12:00:46 -03:00
Leonardo
33c33e8947
Completely removed typedefs
2019-10-29 02:19:34 -03:00
Leonardo
db61269d42
Added compile time benchmark and bidimap tests
2019-10-26 15:03:44 -03:00
Leonardo
8f06e8abce
Replaced calls to malloc and memset with just calloc
2019-10-26 00:39:46 -03:00
Leonardo
122d012ffd
Fast forward codecov
2019-10-23 01:14:10 -03:00
Leonardo
616327f054
Moved all collections from ext to cmc
...
ext no longer exists
2019-10-22 23:51:39 -03:00
Leonardo
de744f5822
v1.7.2
2019-10-18 11:15:52 -03:00
Leonardo
5583ca38b3
Changed default_type functions to compound literals
2019-10-17 01:37:55 -03:00
Leonardo
2d3b441d74
Added resize to multimap, multiset and sortedlist
2019-10-16 21:34:30 -03:00
Leonardo
99cd01ba1e
Added intervalheap resize
2019-10-15 23:52:09 -03:00
Leonardo
1f11b6d2da
Added preview of bidimap
2019-10-14 22:37:39 -03:00
Leonardo
e41fe14502
Refactoring multiset code to be at most 100 characters per line
2019-10-12 00:27:38 -03:00
Leonardo
63d0453341
Finally releasing sortedlist
2019-10-11 02:14:33 -03:00
Leonardo
5e1a26b72e
Added queue and stack resize
2019-10-10 15:10:37 -03:00
Leonardo
e06e795ed8
hashmap quickfix
2019-10-09 00:53:40 -03:00
Leonardo
b9b507bf07
Added heap and list resize function and refactored some tests and added some more
2019-10-08 13:57:58 -03:00
Leonardo
9f8671f75f
Added resize function to hashmap and hashset
2019-10-07 19:57:20 -03:00
Leonardo
f0b7b125b9
Added deque.h resize and added more deque and hashmap tests
2019-10-05 00:31:29 -03:00
Leonardo
8483eda701
Added two working examples, hanoi and printer
2019-10-04 01:19:18 -03:00
Leonardo
b870649627
Refactoring tests
2019-10-03 11:29:35 -03:00
Leonardo
93ac623ffe
Update README and benchmark
2019-10-02 00:11:08 -03:00
Leonardo
5997302a8c
Fixed deque and queue bug and added more tests
2019-10-01 00:48:09 -03:00
Leonardo
f52a9ff702
Refactoring tests and added sortedlist test
2019-09-30 18:27:19 -03:00
Leonardo
376c0ad4e7
Minor optimization to list.h and added finished more TODOs from sortedlist.h
2019-09-30 18:26:31 -03:00
Leonardo
34e649d82a
Removed all conditional IO
2019-09-29 15:49:10 -03:00
Leonardo
bfb8426183
Fixing travis
2019-09-28 15:01:02 -03:00
Leonardo
4f755f0915
Redone tests
...
./codecov is a stalled version for code coverage. It will be merged with main when the library is done with breaking changes
2019-09-28 14:58:10 -03:00
Leonardo
dea77b5ca2
A minor fix to intervalheap.h
2019-09-27 00:06:26 -03:00
Leonardo
b300c889f3
Added cmc prefix to timer
2019-09-27 00:05:22 -03:00
Leonardo
2126da3f25
Removed unnecessary typedefs for log.h and test.h and fixed the latter
2019-09-26 01:17:18 -03:00
Leonardo
fb7854ef5d
Update assert.h and removed
...
Added 3 new assertion macros:
cmc_assert_array_equals_any
cmc_assert_array_within_any
cmc_assert_array_outside_any
cmc_assert_array_sorted_any (renamed)
2019-09-25 16:41:40 -03:00
Leonardo
1ff3142769
Update assert.h
...
Renamed the parameters to and from to to_index and from_index
2019-09-24 23:35:00 -03:00
Leonardo
331fb32b73
Small additions and fixes to sortedlist
2019-09-23 22:34:23 -03:00
Leonardo Vencovsky
fa03379580
Merge pull request #5 from LeoVen/dev
...
v1.7.1 fast forward master
2019-09-22 01:20:01 -03:00
Leonardo
43f4ae9f16
v1.7.1
2019-09-21 19:19:36 -03:00
Leonardo
d9171a11cf
Fixed some include guards for cmc_hashtable_primes and cmc_entry_state
...
Also removed unnecessary typedef for enum cmc_entry_state
Now cmc_entry state is in another guard, separated from the cmc_hashtable_primes guard
2019-09-21 18:25:01 -03:00
Leonardo
344e9f77fe
Renamed list and linkedlist functions
...
push - push_at
pop - pop_at
The list prepend, append and insert - seq_push_front, seq_push_back, seq_push_at
2019-09-21 00:37:56 -03:00
Leonardo
2c84c35264
Adding sortedlist skeleton
...
Some functions are already working but there is still too much to be optimized
2019-09-18 02:29:11 -03:00
Leonardo
c27edd53f6
Added cmc_assert_sorted
2019-09-18 02:28:20 -03:00
Leonardo
a0db76b50d
Update README.md
...
Trying to fix the shield's icon
2019-09-17 12:00:40 -03:00
Leonardo
bb3efd75ff
Update README and TODO
2019-09-17 00:37:12 -03:00
Leonardo
3d7e218195
Move the string format to each collection files and quick fix on deque
...
Now the format to print them is only declared if you actually include the header
2019-09-16 23:50:06 -03:00
Leonardo
191c47fc7c
v1.7.0
2019-09-16 14:47:54 -03:00
Leonardo
f2f806612f
Moving documentation to the docs folder
2019-09-16 14:47:42 -03:00
Leonardo
5e2e001265
Merge branch 'master' of https://github.com/LeoVen/C-Macro-Containers
2019-09-16 14:45:45 -03:00