]> git.tuebingen.mpg.de Git - paraslash.git/commit
afh_common.c: Avoid ifdefs.
authorAndre Noll <maan@systemlinux.org>
Sun, 29 Jun 2014 09:39:28 +0000 (11:39 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Sun, 18 Jan 2015 14:40:47 +0000 (15:40 +0100)
commit4f112bad9a4b61b8e1ce54cf2cb24285d9c81a6b
tree29214069f0965d7d15210c49a871472983eccc10
parent1c12b35b710ff503d3ccfb969f65a63ecc5652f0
afh_common.c: Avoid ifdefs.

For each optional audio format we currently have two #ifdefs in
afh_common.c: the first one controls whether cpp emits the declaration
of the corresponding init function of the audio format handler while
the second #ifdef prevents the ->init pointer from being initialized
for unsupported audio formats.

Declaring also those init functions which end up as undefined symbols
causes no problems because we never refer to them due to the second set
of #ifdefs.

Hence let's just get rid of the first set of #ifdefs and declare all
xxx_init() functions unconditionally.
afh_common.c