[icinga-checkins] icinga.org: icinga-core/master: xodtemplate: Use macro magic to get rid of 900 LoC (Andreas Ericsson)

git at icinga.org git at icinga.org
Wed May 19 13:41:52 CEST 2010

Module: icinga-core
Branch: master
Commit: e941df07f38fa967bf3f7277e6e984164d78b8da
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=e941df07f38fa967bf3f7277e6e984164d78b8da

Author: Michael Friedrich <michael.friedrich at univie.ac.at>
Date:   Wed May 12 22:04:49 2010 +0200

xodtemplate: Use macro magic to get rid of 900 LoC (Andreas Ericsson)

Besides being extremely boring lines of code, changing all of
them would be both a total nightmare and extremely error-prone.

The macro isn't the simplest of simple to follow, as it relies
on the preprocessor to concatenate preprocessor tokens to make
it real code, but it works well enough and compiles nicely on
my truly ancient system with gcc 2.95, so it's not exactly
stretching for the most modern of features.

this one's really great, fits perfectly into Icinga :)

fixes #408


 Changelog           |    1 +
 xdata/xodtemplate.c | 1007 +++------------------------------------------------
 2 files changed, 54 insertions(+), 954 deletions(-)

Diff:   https://git.icinga.org/?p=icinga-core.git;a=commitdiff;h=e941df07f38fa967bf3f7277e6e984164d78b8da

More information about the icinga-checkins mailing list