Re: gcc: A while Loop Always Skips its first Statement.

2010-08-20 Thread Jangita
On 20/08/2010 3:43 p, Martin McCormick wrote: Jangita writes: Not a question for this list but Sorry. 1. Is there any statement in the while loop that changes NEXTSYS? (or better still, send any statement that has NEXTSYS in it while inside the loop) Yes! I didn't even think about that but

Re: gcc: A while Loop Always Skips its first Statement.

2010-08-20 Thread Martin McCormick
Jangita writes: > Not a question for this list but Sorry. > > 1. Is there any statement in the while loop that changes NEXTSYS? (or > better still, send any statement that has NEXTSYS in it while inside the > loop) Yes! I didn't even think about that but there is a test inside that loop whose re

Re: gcc: A while Loop Always Skips its first Statement.

2010-08-20 Thread hugo vanwoerkom
Martin McCormick wrote: I have written some C code that appeared to be good until I put a while statement in to one of the modules and then all went to at least Purgatory. It all compiles beautifully but I was alerted to something terribly wrong when the program began misbehaving. I can't even sa

Re: gcc: A while Loop Always Skips its first Statement.

2010-08-20 Thread Martin McCormick
Jangita writes: > Not a question for this list but Sorry. > > 1. Is there any statement in the while loop that changes NEXTSYS? (or > better still, send any statement that has NEXTSYS in it while inside the > loop) Yes! I didn't even think about that but there is a test inside that loop whose re

Re: gcc: A while Loop Always Skips its first Statement.

2010-08-20 Thread Vincent Lefevre
On 2010-08-20 08:01:46 -0500, Martin McCormick wrote: [...] > Reading about the while loop tells me that the statement Actually, that's an expression, not a statement. > after while must be true to execute. If I put a boolean variable > inside the statement as in (NEXTSYS) does that make a

Re: gcc: A while Loop Always Skips its first Statement.

2010-08-20 Thread Ron Johnson
On 08/20/2010 08:01 AM, Martin McCormick wrote: I have written some C code that appeared to be good until I put a while statement in to one of the modules and then all went to at least Purgatory. It all compiles beautifully but I was alerted to something terribly wrong when the program began misb

Re: gcc: A while Loop Always Skips its first Statement.

2010-08-20 Thread Jangita
On 20/08/2010 3:01 p, Martin McCormick wrote: I have written some C code that appeared to be good until I put a while statement in to one of the modules and then all went to at least Purgatory. It all compiles beautifully but I was alerted to something terribly wrong when the program began misbeh

gcc: A while Loop Always Skips its first Statement.

2010-08-20 Thread Martin McCormick
I have written some C code that appeared to be good until I put a while statement in to one of the modules and then all went to at least Purgatory. It all compiles beautifully but I was alerted to something terribly wrong when the program began misbehaving. I can't even say that it is flaky because