home *** CD-ROM | disk | FTP | other *** search
/ minnie.tuhs.org / unixen.tar / unixen / PDP-11 / Bug_Fixes / Net.v7bugs / 0088 < prev    next >
Encoding:
Text File  |  1982-03-08  |  826 b   |  20 lines

  1. Autzoo.1475
  2. net.bugs.v7
  3. utcsrgv!utzoo!henry
  4. Mon Mar  8 16:25:27 1982
  5. C bug/feature
  6. The C compiler rejects most control characters in source code with
  7. "Unknown character" error messages, but does not do so for control-A
  8. (ASCII SOH).  Furthermore, SOH suppresses the incrementing of cc's
  9. line-number counter for the first newline following, so it messes up
  10. line numbering for following error messages.
  11.  
  12. This is actually vestigial code, rather than an error of omission.
  13. In the days before #line, the preprocessor had to have some way to
  14. suppress line-number incrementing in the text of a #include file,
  15. so it stuck an SOH on the front of each line, and the compiler paid
  16. special attention to this.
  17.  
  18. Is there anything out there that still uses this cryptic feature?
  19. If not, it should die, as a possible source of user confusion.
  20.