Text File

Aucbvax.4082 fa.unix-wizards utzoo!decvax!ucbvax!unix-wizards Mon Sep 28 16:54:56 1981 cpp >From oku@UTEXAS-11 Mon Sep 28 16:38:25 1981 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. -------

----------------------------------------------------------------- gopher://quux.org/ conversion by John Goerzen <jgoerzen@complete.org> of http://communication.ucsd.edu/A-News/

This Usenet Oldnews Archive article may be copied and distributed freely, provided:

1. There is no money collected for the text(s) of the articles.

2. The following notice remains appended to each copy:

The Usenet Oldnews Archive: Compilation Copyright (C) 1981, 1996 Bruce Jones, Henry Spencer, David Wiseman.