Subject: Re: question about SWAP() in inetd.c
To: Brad Walker <bwalker@musings.com>
From: Jason R Thorpe <thorpej@zembu.com>
List: current-users
Date: 12/01/2000 07:33:10
On Thu, Nov 30, 2000 at 11:42:35PM -0800, Brad Walker wrote:

 > Okay, maybe I'm an idiot. But, I can't seem to figure out the following
 > line in inetd.c.
 > 
 > #define SWAP(a, b) { typeof(a) c = a; a = b; b = c; }
 > 
 > What is typeof? I guess the macro is self-explanatory but where
 > did this come from..

It's a built-in in GCC.

-- 
        -- Jason R. Thorpe <thorpej@zembu.com>