[net.unix-wizards] Having files eaten by unclosed comments

chris.umcp-cs@Udel-Relay@sri-unix (11/18/82)

From:     Chris Torek <chris.umcp-cs@Udel-Relay>
Date:     13 Nov 82 02:45:30 EST  (Sat)
I just discovered you can do the same thing with unclosed #ifdefs.
The preprocessor should probably quit if there are unclosed #if lines.

minow (11/20/82)

The Decus C preprocessor performs a few simple sanity checks on
the source:

	/* within a comment results in a warning message.  Comments don't nest.

	#ifdefs and #else's must be balanced -- fatal error message.

	Strings must be terminated properly -- fatal preprocessor error.

One reason string termination checking is done in the preprocessor is
to prevent errors from cascading.

Martin Minow
decvax!minow