]> git.ipfire.org Git - thirdparty/lldpd.git/commit
lib: use C preprocessor to build list of init functions
authorVincent Bernat <vincent@bernat.im>
Wed, 23 Mar 2016 21:09:55 +0000 (22:09 +0100)
committerVincent Bernat <vincent@bernat.im>
Wed, 23 Mar 2016 21:26:32 +0000 (22:26 +0100)
commite3783368c232808fb99b1fb2bc60759f50611110
tree984b2b68b57651bee4864961ea68601b4277818e
parent2c18cfb81fe91515dc912a11b48c6e57e03d6586
lib: use C preprocessor to build list of init functions

Because some features can be disabled, we cannot just parse the C file,
we need to run the C preprocessor on them. Hopefully, the GNU make stuff
(filter) should be portable enough.
src/lib/Makefile.am
src/lib/atom.c
src/lib/atom.h