Xref: utzoo comp.os.os9:219 comp.lang.c:13597 Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!nrl-cmf!ames!amdcad!sun!pitstop!sundc!seismo!uunet!mcvax!tuvie!rzmul3 From: rzmul3@tuvie (Uni Leoben) Newsgroups: comp.os.os9,comp.lang.c Subject: Re: Bugs in OS9/68K C-Compiler ? Summary: Better use the Decus CPP Message-ID: <636@tuvie> Date: 26 Oct 88 10:23:00 GMT References: <147@fbihh.UUCP> Organization: TU Vienna EDP-Center, Vienna, AUSTRIA Lines: 15 Hi Heino, Seems like most of your troubles are a result from the Microware CPP. The Decus CPP (ported to OS-9 by the TOP people) handles all of your example programs correct. It doesn't support the -g debugging option, though. For the 'return 0 != ptr' problem : I don't know why, but 'return ptr != 0' works. Apparently the compiler automatically casts integers to pointers on comparisons but doesn't cast pointers to integers. I don't know what K&R says to this case. Perhaps someone with more C insight could comment on this. -- Tom Leitner / Joanneum Research Association / Austria