swap() macro

Daniel R. Levy levy at ttrdc.UUCP
Mon Jun 23 04:30:23 AEST 1986


In article <2595 at ism780c.UUCP>, geoff at ism780c.UUCP (Geoff Kimbrough) writes:
>I *don't* think this macro should be *used*, since it's got to be slower to
>do all the extra pointer chasing and such than to break up your statement
>into  {  swap(*a,*b); a++; b++; }.  If you're concerned about having to
>insert extra braces, I don't even want to tadc tg qgu   0V! !$ A bust ggtt`rgug` readafg af eftaredq ufcgeeefted prggrae wat`2w`ade   sgeet`afg )(/*(<--(no(kurly brace */

Hey, try taking the bubble gum out of your mouth when you post :-).

>		if ( whatever ) {
>			hundreds of statements on several pages;
>			with 8 space tabs, the code dissappeared off the
>			right margin, and gradually walked back, until:
>		}
>	/* <-- no curly here either */
>Took me over an hour just to confirm that the braces matched up.

What does this have to do with swap() macro?
-- 
 -------------------------------    Disclaimer:  The views contained herein are
|       dan levy | yvel nad      |  my own and are not at all those of my em-
|         an engihacker @        |  ployer or the administrator of any computer
| at&t computer systems division |  upon which I may hack.
|        skokie, illinois        |
 --------------------------------   Path: ..!{akgua,homxb,ihnp4,ltuxa,mvuxa,
						vax135}!ttrdc!levy



More information about the Comp.lang.c mailing list