🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #3184

Re: macors and semicolons

#3184
From: Robert E. Lancia
Date: Tue, 25 Jun 1991 12:35
22 lines
1190 bytes
In article <1991Jun24.213932.595@otago.ac.nz> andrew@otago.ac.nz writes:
>I often get pissed off with the C pre-processor.  Here is one thats been
>getting up my wick for months.
>
>#define SWAP(a, b) {int c;  c = a; a = b; b = c}
                                               ^^

Notice that Andrew, as well as most of the replies I've seen so far,
forgot the semi-colon after the b=c assignment.

>
[ . . . stuff deleted . . . ]
>Andrew
>andrew@otago.ac.nz


Rob.
--
|Robert Lancia                 | The above opinions    | Mead Data Central
|(513) 297-2560                | may not necessarily   | Data Services Division
|rob@pmserv.meaddata.com       | be MDC's.  Heck, they | P.O. Box 308
|...!uunet!meaddata!pmserv!rob | may not even be mine. | Dayton, Ohio  45401
Technical Details
Message-ID: <5021@meaddata.meaddata.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!meaddata!rob
References: <1991Jun24.213932.595@otago.ac.nz>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!meaddata!rob
From: rob@meaddata.com (Robert E. Lancia)
Newsgroups: comp.std.c
Subject: Re: macors and semicolons
Message-ID: <5021@meaddata.meaddata.com>
Date: 25 Jun 91 12:35:20 GMT
References: <1991Jun24.213932.595@otago.ac.nz>
Sender: usenet@meaddata.com
Organization: Mead Data Central, Dayton OH
Lines: 22