Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!usc!ucla-cs!uci-ics!nagel@beaver.ics.uci.edu From: nagel@beaver.ics.uci.edu (Mark Nagel) Newsgroups: comp.sys.mac.programmer Subject: LSC 3.0 preprocessor bug Message-ID: <12487@paris.ics.uci.edu> Date: 22 Apr 89 20:53:53 GMT Sender: news@paris.ics.uci.edu Reply-To: nagel@beaver.ics.uci.edu (Mark Nagel) Organization: University of California, Irvine - Dept of ICS Lines: 21 A friend recently was modifying the source to a program by using #ifdef's to delineate between MAC and other systems. He erroneously used code like the following: #ifdef MAC code... #elsif whatever code #else code... #endif The problem here is that LSC doesn't support #elsif. However, the compiler accepted the program and just generated wrong code. I assume it *should* have given an error along the lines of 'illegal preprocessor directive.' Mark Nagel @ UC Irvine, Department of Information and Computer Science +----------------------------------------+ ARPA: nagel@ics.uci.edu | Charisma doesn't have jelly in the | UUCP: ucbvax!ucivax!nagel | middle. -- Jim Ignatowski |