Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Dec 1997 14:19:01 +0200
From:      Nadav Eiron <nadav@barcode.co.il>
To:        AlexK@gilat.com
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: "__P"
Message-ID:  <34A0FDB5.778@barcode.co.il>
References:  <34A0CA1D.C8E@gilat.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Alexander Karpov wrote:
> 
> What is __P in FreeBSD sources? It's MACRO?
> 
> Thanks, Alex.

Yeah, it's a #define, designed to make prototypes work even when
compiling on old K&R style compilers (i.e. when prototypes should not
include the parameters). When used on an ANSI-C compiler it can be
ignored , i.e. int foo(__P((char *bar))) is just like 
int foo(char *bar).

Nadav



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?34A0FDB5.778>