home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / sgi / 16328 < prev    next >
Encoding:
Internet Message Format  |  1992-11-12  |  1.3 KB

  1. Path: sparky!uunet!spool.mu.edu!yale.edu!ira.uka.de!chx400!sicsun!disuns2!disuns2.epfl.ch!simon
  2. From: simon@lia.di.epfl.ch (Simon Leinen)
  3. Newsgroups: comp.sys.sgi
  4. Subject: Re: Bug in SGI ansi compliance (or are the others wrong ?)
  5. Message-ID: <SIMON.92Nov12111146@liasg2.epfl.ch>
  6. Date: 12 Nov 92 10:11:46 GMT
  7. References: <s5c02sg@sgi.sgi.com> <1992Nov11.225422.2888@bernina.ethz.ch>
  8. Sender: news@disuns2.epfl.ch
  9. Organization: DI-LIA -- Ecole Polytechnique Federale de Lausanne
  10. Lines: 15
  11. Nntp-Posting-Host: liasg2.epfl.ch
  12. In-reply-to: hoesel@igc.ethz.ch's message of 11 Nov 92 22:54:22 GMT
  13. X-Md4-Signature: 4931a1eb0301df8b48bf3a2d9b6facf1
  14.  
  15. In article <1992Nov11.225422.2888@bernina.ethz.ch> hoesel@igc.ethz.ch
  16. (Frans van Hoesel) writes:
  17.  
  18.    You might find it a '(normally minor)annoyance' but lex produces
  19.    code that does *NOT* compile using -ansi, exactly because of the
  20.    above reason!!  (you can check that easely by creating a file with
  21.    two lines of '%%' (a minimal lex program) run lex with it, and try
  22.    to compile with -ansi)
  23.  
  24. I don't think anyone claims that LEX generates ANSI C, so you
  25. shouldn't use -ansi anyway.  I'm not sure whether the offending LEX
  26. output (an initialization of a static variable to "stdout" or
  27. something like that) is allowed by the standard.
  28. -- 
  29. Simon.
  30.