Jon Wahlmann wrote:
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andrew Lentvorski 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.

Sigh.  I just *knew* someone was going to ask me that.

http://www.cuj.com/articles/2003/0306/

Imagine--Jim Hyslop, Herb Sutter
Portability without #idefs? It's (sort of) easy if you really try.

Was it *that* long ago that I read the article?  Sheesh.

-a


--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to