minor bug in mcc

Giles Lean lean at munmurra.cs.mu.oz
Mon Jun 20 09:37:22 AEST 1988


Although mcc is not particularly designed for multiple files,
(it compiles all files each time the compiler is invoked,
and only invokes the editor on the first file with an error),
it can be used with more than one file; however a problem arises
that errors from later file(s) may be treated as having occured
in the first file.

The fix is to change line 234
from
	while (slineno == elineno) == 0) {
to
	while (slineno == elineno && strcmp(firstname, srcname) == 0) {

which solves the problem.


Giles Lean.	ACSnet:	lean at munnari.oz		UUCP: lean at munnari.UUCP



More information about the Comp.sources.bugs mailing list