Re: Cocoa and C99

2008-10-06 Thread Patrick Mau
Hi Gerrit You could use explicit basic blocks: static void loop(void) { int i = 5; float f = 10.0; this(); and_that(); /* new badic block */ { int i; float f = 1.0; for (i = 0; i < 5; i++) {

Re: Cocoa and C99

2008-10-06 Thread Clark Cox
On Mon, Oct 6, 2008 at 1:00 AM, Andrew Farmer <[EMAIL PROTECTED]> wrote: > On 06 Oct 08, at 00:49, Gerriet M. Denkmann wrote: >> >> In the old days I wrote: >> >> int i; float f; >> for( i = 0, f = 0.0; i < 5; i++, f+= 3.5 ) . >> >> Now I am trying to use the C99 style: >> for( int i = 0, float

Re: Cocoa and C99

2008-10-06 Thread Andrew Farmer
On 06 Oct 08, at 00:49, Gerriet M. Denkmann wrote: In the old days I wrote: int i; float f; for( i = 0, f = 0.0; i < 5; i++, f+= 3.5 ) . Now I am trying to use the C99 style: for( int i = 0, float f = 0.0; i < 5; i++, f+= 3.5 ) . But I am told: "parse error before 'float'". Then I trie

Re: Cocoa and C99

2008-10-06 Thread Clark Cox
On Mon, Oct 6, 2008 at 12:49 AM, Gerriet M. Denkmann <[EMAIL PROTECTED]> wrote: > > In the old days I wrote: > > int i; float f; > for( i = 0, f = 0.0; i < 5; i++, f+= 3.5 ) . > > Now I am trying to use the C99 style: > for( int i = 0, float f = 0.0; i < 5; i++, f+= 3.5 ) . > But I am told:

Cocoa and C99

2008-10-06 Thread Gerriet M. Denkmann
In the old days I wrote: int i; float f; for( i = 0, f = 0.0; i < 5; i++, f+= 3.5 ) . Now I am trying to use the C99 style: for( int i = 0, float f = 0.0; i < 5; i++, f+= 3.5 ) . But I am told: "parse error before 'float'". Then I tried: float f; for( int i = 0, f = 0.0; i < 3; i++, f