lkml.org 
[lkml]   [1998]   [Jul]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Strange code in 2.0.pre35 - apricot.c
On 12 Jul 1998, Andi Kleen wrote:

> "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
>

Yup.. bad info from the instructor of a BAD C course. Wish the little
twit were here right about now to 'splain again how this is compiler
implimentation dependant and to be avoided at all cost.

Thank to all who straighted me out.

-Mike


-
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

\
 
 \ /
  Last update: 2005-03-22 13:43    [W:0.039 / U:0.448 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site