Date: Sun, 2 Mar 1997 13:11:14 +0200 (IST) From: Eli Zaretskii To: Paul Derbyshire cc: djgpp AT delorie DOT com Subject: Re: QUESTION: General Syntax In-Reply-To: <5f5jml$bvd@freenet-news.carleton.ca> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On 28 Feb 1997, Paul Derbyshire wrote: > I had an old version of PCC two or three years ago before I got DJGPP. > It used a funny syntax: > > int main: > int argc; > char *argv[]; > { > function stuff > } You mean this, I suppose: int main (argc, argv) int argc; char *argv[]; { function stuff } > On doing some research I learned PCC was using the ancient K&R syntax > from the pre-ANSI days. Needless to say GCC uses ANSI instead. GCC also accepts the K&R syntax, unless you add both -ansi and -pedantic options to its command line. So the above should compile with GCC.