Re: [splint-discuss] Parse Error on variable declaration in the middleof a function.

2009-03-22 Thread Michael Wojcik
> From: splint-discuss-boun...@cs.virginia.edu [mailto:splint-discuss- > boun...@cs.virginia.edu] On Behalf Of Johan > Sent: Saturday, 21 March, 2009 11:20 > > Michael Wojcik wrote: > > Splint is mostly a C90 implementation, and in C90 declarations can > > only appear at the beginning of a block.

Re: [splint-discuss] Parse Error on variable declaration in the middleof a function.

2009-03-22 Thread Michael Wojcik
> From: splint-discuss-boun...@cs.virginia.edu [mailto:splint-discuss- > boun...@cs.virginia.edu] On Behalf Of Jeff Johnson > Sent: Saturday, 21 March, 2009 11:14 > > On Mar 21, 2009, at 10:49 AM, Michael Wojcik wrote: > > > > Patches to Splint to allow variable declarations elsewhere in a block >

Re: [splint-discuss] Parse Error on variable declaration in the middleof a function.

2009-03-21 Thread Johan
Michael Wojcik wrote: > Splint is mostly a C90 implementation, and in C90 declarations can only > appear at the beginning of a block. Support for some parts of C99 have > been added, but this one is (apparently) not one of them, at least in > the version you have. > > Patches to Splint to allow var

Re: [splint-discuss] Parse Error on variable declaration in the middleof a function.

2009-03-21 Thread Jeff Johnson
On Mar 21, 2009, at 10:49 AM, Michael Wojcik wrote: > > Patches to Splint to allow variable declarations elsewhere in a block > have been posted to this list at least as far back as 2006; you can > check the archives. > Are the patches complete wrto C99 or ad hoc? I've done *way* too many C99 ->

Re: [splint-discuss] Parse Error on variable declaration in the middleof a function.

2009-03-21 Thread Michael Wojcik
> From: splint-discuss-boun...@cs.virginia.edu [mailto:splint-discuss-boun...@cs.virginia.edu] On Behalf Of Johan > Sent: Saturday, 21 March, 2009 07:38 > I get a Parse error on variable declaration in the middle of a function. Splint is mostly a C90 implementation, and in C90 declarations can on