What's wrong with #if defined(FEATURE)?
In the stuff I'm doing to encapsulate UTF-2000, I have a lot of
#if defined(UTF2000)
/* handle UTF-8 bufbytes and UCS-4 emchars */
#elif defined(MULE)
/* handle leading byte representation */
#else
/* --wthout-mule case */
#endif
I'm not terribly happy with it, but it's the most readable idiom I've
come up with. I use #ifdef for two-way branches; that helps to
visually distinguish the multibranch case. Is that unacceptable?
--
University of Tsukuba Tennodai 1-1-1 Tsukuba 305-8573 JAPAN
Institute of Policy and Planning Sciences Tel/fax: +81 (298) 53-5091
_________________ _________________ _________________ _________________
What are those straight lines for? "XEmacs rules."