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