Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!caip!nike!ucbcad!ucbvax!hplabs!pesnta!valid!pete From: pete@valid.UUCP (Pete Zakel) Newsgroups: net.lang.c Subject: Re: SWAP macro Message-ID: <408@valid.UUCP> Date: Thu, 3-Jul-86 16:55:53 EDT Article-I.D.: valid.408 Posted: Thu Jul 3 16:55:53 1986 Date-Received: Fri, 4-Jul-86 08:17:21 EDT References: <1577@brl-smoke.ARPA> Organization: Valid Logic, San Jose, CA Lines: 10 > Unless one is willing to do a > different version of the macro for each type, you need a way to generate > a new variable of the same type as one of the macro args. The language > provides no way to do this. What's wrong with the "swap(type, a, b)" invocation? You only need one macro declaration. Of course, you must declare the type each time you use it. -- -Pete Zakel (..!{hplabs,amd,pyramid,ihnp4}!pesnta!valid!pete)