Re: Re: Re: Optional args in C code.

Joe Knapka <[email protected]> 03 May 2004 13:04:26 -0600
Newsgroups gmane.comp.lang.prothon.devel
Message-ID <[email protected]>
"Mark Hahn" <[email protected]> writes:

> Joe Knapka wrote:
> 
> > SVN problems fixed, code committed.
> 
> What C compiler lets you declare vars in the middle of code?  I've never
> seen such a thing.  While that's a really cool feature, we are restricting
> the code to ansii C and our compilers choke on that.  I'm almost done fixing
> your submission, but in the future please restrict your code to ansii C
> also.  Maybe there's an option in your compiler for that?

Yes there is ("-ansi"), and when I use it, *nothing* in the source
tree will build -- because // is not ANSI C, apparently. At least,
GCC thinks not.

Shall we convert everything to /* comments */ then? Or perhaps
we really want the code to conform to ISO C '99, rather
than ANSI? (C99 apparently allows variable declarations anywhere,
though.) Or is GCC wrong about // comments?

-- Joe

-- 
Resist the feed.
--
If you really want to get my attention, send mail to
jknapka .at. kneuro .dot. net.