> From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Andrew Lentvorski > > Stewart Stremler wrote: > > This does seem to be my impression of a lot of code lately. > But then, > > I loathe #ifdefs in code. I'm just funny that way. > > You are not alone. > > One of the best articles I ever read was in C/C++ User's > Journal talking about portable code and how to get rid of > #ifdef's. The big one was to isolate the API to a single > file which gets selected at *compile* time by the *build* system.
By chance do you know which issue this was found in? I'm presently working on a project to extract any platform specific APIs and move them into their own architecture file. Specifically, moving from VxWorks-based to a generic platform that would allow re-targeting for Linux, Cygwin, whatever. Thanks, Jon Wahlmann -- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list
