Path: 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 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