change inlines to static functions in hbond.c to let compiler decide whether to inline
use ifdefs on FADING_FUNCTION to only define functions when needed