home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / amiga / programm / 17666 < prev    next >
Encoding:
Text File  |  1992-12-22  |  1.6 KB  |  44 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!usc!sol.ctr.columbia.edu!usenet.ucs.indiana.edu!navajo!shulick
  3. From: shulick@navajo.ucs.indiana.edu (Sam Hulick)
  4. Subject: Re: wierd sas/c bug
  5. Message-ID: <BzMMxH.3u0@usenet.ucs.indiana.edu>
  6. Sender: news@usenet.ucs.indiana.edu (USENET News System)
  7. Nntp-Posting-Host: navajo.ucs.indiana.edu
  8. Organization: Vallen Software
  9. References: <BzIw0y.n31@ccu.umanitoba.ca> <BzM6F7.E6K@unx.sas.com> <BzMGn8.370@ccu.umanitoba.ca>
  10. Date: Mon, 21 Dec 1992 20:44:04 GMT
  11. Lines: 31
  12.  
  13. In article <BzMGn8.370@ccu.umanitoba.ca>, umfehr06@ccu.umanitoba.ca (John Fehr) says most sayishly:
  14. >In <BzM6F7.E6K@unx.sas.com> walker@twix.unx.sas.com (Doug Walker) writes:
  15. >>Please post a COMPILABLE example.  I can virtually guarantee that this
  16. >>is not a compiler bug.  A compiler that broken would not compile
  17. >
  18. >OK... here's a compilable example: (hopefully I'll type it in right this
  19. >time. :)
  20. >
  21. >#include <stdio.h>
  22. >#undef WHATEVER "test"
  23.  ^^^^^^^^^^^^^^^^^^^^^^
  24. >
  25. >char dummy[100]="another test";
  26. >
  27. >main() {
  28. >  printf("dummy='%s'\n",dummy);
  29. >}
  30.  
  31. It's the #undef line that's causing the problem.  I don't know why, but
  32. I get problems.  I see:
  33.  
  34. dummy='testanother test'
  35.  
  36. First, I don't think #undef takes two arguments.  Even if it doesn't,
  37. SAS/C shouldn't spew that garbage.
  38.  
  39. -- 
  40.     // Amiga 3000   ___ \ Sam Hulick: shulick@indiana.edu (NeXTmail OK!)
  41.    // 68030 25 MHz /__/\ \ My opinions wear combat boots.  Or whatever.
  42. \\// OS 2.04       \__\/ / "Walk!  Not bloody likely.  I am going in a
  43.  \/                     / taxi."  --George Bernard Shaw
  44.