home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 3 / 3060 < prev    next >
Encoding:
Internet Message Format  |  1991-03-15  |  1.0 KB

  1. From: henry@zoo.toronto.edu (Henry Spencer)
  2. Newsgroups: comp.lang.c,alt.sources
  3. Subject: Re: Small introspective program
  4. Message-ID: <1991Mar13.164627.20530@zoo.toronto.edu>
  5. Date: 13 Mar 91 16:46:27 GMT
  6.  
  7. In article <1991Mar13.001423.5194@Think.COM> dm@think.com (Dave Mankins) writes:
  8. >You start the program (e.g., ``foo.c'') with:
  9. >
  10. >#ifdef notdef
  11. >  cc $0 -g -o `basename $0 .c` -Ineeded-includes -lneeded-libraries 
  12. >  exit;
  13. >#endif notdef
  14.  
  15. It is no longer legal to put arbitrary trash after "#endif", so that
  16. identifier has to go.  "#endif /* notdef */" is better.
  17.  
  18. Note also that you need to be careful about what you put inside #ifdef,
  19. because it is *not* completely ignored.  The above example should be okay,
  20. but in general the contents have to be either legal C tokens or things
  21. that could not be mistaken for C tokens.  Notably, an unmatched ' or " is
  22. not kosher.
  23. -- 
  24. "But this *is* the simplified version   | Henry Spencer @ U of Toronto Zoology
  25. for the general public."     -S. Harris |  henry@zoo.toronto.edu  utzoo!henry
  26.