f5bc38ebae2792200dd815c4903e99f476e70f96
C-Macro-Collections
Generate Simple Data Structures of any type in C for you to use in your projects.
How to use
When including macro_collections.h in your source code you gain access to a macro called COLLECTION_GENERATE with the following parameters:
- *C - Container type (LIST, LINKEDLIST, STACK, QUEUE, DEQUE, HEAP, TREESET, TREEMAP, HASHSET, HASHMAP).
- *P - Permission (PRIVATE, PUBLIC). Only matters when header and source are declared in separate files.
- PRIVATE - Members of a struct are hidden in source file and only accessible through functions.
- PUBLIC - Members of a struct are visible.
- *PFX - Functions prefix or namespace.
- *SNAME - Structure name (
typedef struct SNAME##_s SNAME). - FMOD - Function modifier (static). Useful when declaring header and source in the same file.
- **K - Key type. Only used in HASHMAP and TREEMAP; ignored by others.
- *V - Value type. Primary type for most data structures, or value to be mapped by HASHMAP and TREEMAP.
* Required parameters
** Required only by HASHMAP and TREEMAP
See Documentation.md for more information. All functions not listed in it are not meant to be used at any time, only by the structure implementation.
Description
Easy to use, modular, header only, macro based, generic and type-safe Data Structures in C
ccontainersdata-structuredatastructuredata-structuresdatastructuresdequehashmapheaplibrarylinkedlistlistmultimapmultisetqueuestacktype-safe
Readme
MIT
4.8 MiB
0 Stars
1 Watchers
0 Forks
Languages
C
99.7%
Makefile
0.2%