Re: Strange code in 2.0.pre35 - apricot.c

Andi Kleen (ak@muc.de)
12 Jul 1998 15:41:18 +0200


"Michael L. Galbraith" <mikeg@weiden.de> writes:

> > This could (hypothetically: I know nothing about the apricot) be what
> > the author was trying to do, though if so then this code is broken
> > anyway. It should've been something more along the lines of:
> > register int hold;
> > while ((hold = lp->scb.status), lp->scb.command);
>
> Is this method not also broken? IIRC, there is no defined order of
> evaluation for ','.

This is not correct. ',' defines a sequence point, so the order is well
defined by the C89 standard.

-Andi

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html