Path: chuka.playstation.co.uk!news From: rs108@mdx.ac.uk (Robert Swan) Newsgroups: scee.yaroze.freetalk.english Subject: ANSI C code Date: Wed, 11 Mar 1998 00:35:54 GMT Organization: PlayStation Net Yaroze (SCEE) Lines: 15 Message-ID: <3505dc66.12635278@news.playstation.co.uk> NNTP-Posting-Host: stu-dialup11.mdx.ac.uk X-Newsreader: Forte Free Agent 1.11/32.235 Owing to how I learnt C (without a textbook) I've been happily producing yaroze code that doesn't seem to work on CodeWarrior, I assume because my code isn't ANSI standard. What precautions do I have to take to ensure codewarrior will compile my code? I've found out about two... when using #define, the defined part must be in brackets, and at the end of IF and FOR loops, it seems to not want a semicolon after the final closing brace. What else is there? I can't do much about making projects for people with codewarrior, but it would be nice if they could at least compile my code if they want to do the same :)