On 1/10/06, Dan Mick <[EMAIL PROTECTED]> wrote:
> Peter Memishian wrote:
> > > #ifndef __sparc
> > > x86 specific code
> > > #endif
> > >
> > > I found it a strange way of coding. There must be some explanation for
> > > this style instead of usual
> > >
> > > #ifdef __i386
> > > x86 specific code
> > > #endif
> > >
> > > Can someone elaborate, please.
> >
> > I can't speak to that specific piece of code, but in general I'd regard
> > instances of what you describe above as bugs, as they will cause problems
> > when porting to new architectures.
>
> I can imagine a case where something needs to be done on all known archs
> *except* SPARC. I, too, didn't look at this specific case.
I can imaging such a case too, but I think that generallization of such
sort are dangerous in nature as one hardly can take into account all possible
future porting, where the code may or may not be relevant. In any case
if such generalization is made I, personally, would comment it well, to let
other people understand quickly what
--
Regards,
Cyril
_______________________________________________
opensolaris-code mailing list
[email protected]
https://opensolaris.org:444/mailman/listinfo/opensolaris-code