diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2019-01-31 01:09:13 +0100 |
---|---|---|
committer | David Lamparter <equinox@diac24.net> | 2019-04-27 18:20:35 +0200 |
commit | abd71baa2e75444248299be81cbebdac1bdd2fc3 (patch) | |
tree | 12212515b8c046b0654d85a92808c62c8c8438ce /lib/subdir.am | |
parent | lib: ZEBRA_NUM_OF -> array_size (diff) | |
download | frr-abd71baa2e75444248299be81cbebdac1bdd2fc3.tar.xz frr-abd71baa2e75444248299be81cbebdac1bdd2fc3.zip |
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>
Diffstat (limited to 'lib/subdir.am')
-rw-r--r-- | lib/subdir.am | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/subdir.am b/lib/subdir.am index 03629c14e..d60ebc5d9 100644 --- a/lib/subdir.am +++ b/lib/subdir.am @@ -80,6 +80,7 @@ lib_libfrr_la_SOURCES = \ lib/table.c \ lib/termtable.c \ lib/thread.c \ + lib/typesafe.c \ lib/vector.c \ lib/vrf.c \ lib/vty.c \ @@ -208,6 +209,7 @@ pkginclude_HEADERS += \ lib/table.h \ lib/termtable.h \ lib/thread.h \ + lib/typesafe.h \ lib/vector.h \ lib/vlan.h \ lib/vrf.h \ |