> From: MATHIHALLI,MADHUSUDAN (HP-Cupertino,ex1) [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 04, 2003 8:56 PM
> >-----Original Message----- > >From: Jeff Trawick [mailto:[EMAIL PROTECTED] > [SNIP] > > >> So, what you're proposing is that APR provide mechanisms for > >people to write > >> platform-specific code? > > > >APR already does that. > > Exactly. There is already platform-specific code in APR (and I think it's > impossible to have something like APR without introducing platform-specific > code).. You're missing the point. It isn't about APR having platform specific code, it is about applications using APR using apr tests to write platform specific code, or make assumptions about what APR implements. > Further, I think it's purely a matter of code-beauty vs something > else.. I don't understand why one would prefer "#if defined(__hpux) || > defined(__hpux__) || defined (__or_something_else_)" as opposed to using > "#ifdef APR_PLATFORM_IS_HPUX" - both of them are essentially the same. It's about giving the user (an app developer) a tool you may not wish to hand him. This either forces him to write platform independend code, or, makes him need to go to the ugly process of writing platform tests himself. Sander