Date: Sun, 14 Apr 2002 01:51:05 +0200 From: Bernd Walter <ticso@cicely9.cicely.de> To: "David O'Brien" <obrien@FreeBSD.ORG> Cc: alpha@FreeBSD.ORG Subject: Re: Any idea what this preprocessing was trying to do? Message-ID: <20020413235105.GK10043@cicely9.cicely.de> In-Reply-To: <20020413160524.A43166@dragon.nuxi.com>
index | next in thread | previous in thread | raw e-mail
On Sat, Apr 13, 2002 at 04:05:24PM -0700, David O'Brien wrote:
> I had to make this change to build tsunami_pci.o with Gcc 3.1 because the
> integrated CPP was treating "=op(" as a token vs. the three tokens it is.
>
> I really don't see why ## had to be used, as w/o the string concatination
> the tokens are legal ANSI-C.
Maybe it enables op to be a macro itself?
> Index: alpha/pci/tsunami_pci.c
> ===================================================================
> RCS file: /home/ncvs/src/sys/alpha/pci/tsunami_pci.c,v
> retrieving revision 1.13
> diff -u -r1.13 tsunami_pci.c
> --- alpha/pci/tsunami_pci.c 28 Feb 2002 18:18:41 -0000 1.13
> +++ alpha/pci/tsunami_pci.c 7 Apr 2002 11:50:20 -0000
> @@ -201,7 +201,7 @@
> tsunami_check_abort(); \
> return ~0; \
> } \
> - data = ##op##(va); \
> + data = op(va); \
> if (tsunami_check_abort()) \
> return ~0; \
> return data; \
> @@ -213,7 +213,7 @@
> tsunami_clear_abort(); \
> if (badaddr((caddr_t)va, width)) \
> return; \
> - ##op##(va, data); \
> + op(va, data); \
> tsunami_check_abort(); \
> } while (0)
>
--
B.Walter COSMO-Project http://www.cosmo-project.de
ticso@cicely.de Usergroup info@cosmo-project.de
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-alpha" in the body of the message
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020413235105.GK10043>
