]> git.puffer.fish Git - mirror/frr.git/commit
lib: typesafe lists, skiplist & hash
authorDavid Lamparter <equinox@opensourcerouting.org>
Thu, 31 Jan 2019 00:09:13 +0000 (01:09 +0100)
committerDavid Lamparter <equinox@diac24.net>
Sat, 27 Apr 2019 16:20:35 +0000 (18:20 +0200)
commitabd71baa2e75444248299be81cbebdac1bdd2fc3
tree12212515b8c046b0654d85a92808c62c8c8438ce
parent7e3a1ec742fab489eceeb23869063ebdedad12ff
lib: typesafe lists, skiplist & hash

By the power of the C preprocessor, these macros provide type-safe
warppers for simple lists, skiplists and hash tables.  Also, by changing
the instantiation macro, it is easily possible to switch between
algorithms;  the code itself does not need to be changed since the API
is identical across all algorithms.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
lib/subdir.am
lib/typesafe.c [new file with mode: 0644]
lib/typesafe.h [new file with mode: 0644]