From owner-freebsd-questions Wed Dec 24 04:47:13 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id EAA05678 for questions-outgoing; Wed, 24 Dec 1997 04:47:13 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from gatekeeper.barcode.co.il (gatekeeper.barcode.co.il [192.116.93.17]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id EAA05670 for ; Wed, 24 Dec 1997 04:47:04 -0800 (PST) (envelope-from nadav@barcode.co.il) Received: (from smap@localhost) by gatekeeper.barcode.co.il (8.8.7/8.8.7) id OAA23202; Wed, 24 Dec 1997 14:12:05 +0200 (IST) (envelope-from nadav@barcode.co.il) X-Authentication-Warning: gatekeeper.barcode.co.il: smap set sender to using -f Received: from localhost.barcode.co.il(127.0.0.1) by gatekeeper.barcode.co.il via smap (V2.0) id xma023200; Wed, 24 Dec 97 14:12:04 +0200 Message-ID: <34A0FDB5.778@barcode.co.il> Date: Wed, 24 Dec 1997 14:19:01 +0200 From: Nadav Eiron X-Mailer: Mozilla 3.0 (X11; I; SunOS 5.6 sun4u) MIME-Version: 1.0 To: AlexK@gilat.com CC: freebsd-questions@FreeBSD.ORG Subject: Re: "__P" References: <34A0CA1D.C8E@gilat.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk 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