cpp

utzoo!decvax!ucbvax!oku at UTEXAS-11 utzoo!decvax!ucbvax!oku at UTEXAS-11
Mon Sep 28 16:20:37 AEST 1981


From: oku at UTEXAS-11 
I have come across another bug in cpp.  It is in the code that eats comments.
I have tried to lint several files and had lint complain about an 'unknown
character (043)'.  This is a '#', i believe.  The problem has to do with
overlapping the end of the buffer.  I would get a '*/#' on the line that
lint did not like.  I have a fix for this, i am not sure that i have fixed
the problem, or just cured this symptom, but it has fixed my problem.  The
code does a 'putchar' or some such without checking to see if anything should
be printed first.

If someone would forward this to the appropriate people, i would appreciate
it greatly.

		Peter Staubach

ps.  This happens mainly on BIG files such as the tty driver.
-------



More information about the Comp.bugs.2bsd mailing list