[comp.sys.mac.programmer] LSC 3.0 preprocessor bug

nagel@beaver.ics.uci.edu (Mark Nagel) (04/23/89)

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             |