From owner-freebsd-hackers Fri Aug 6 15:44: 9 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from wopr.caltech.edu (wopr.caltech.edu [131.215.240.222]) by hub.freebsd.org (Postfix) with ESMTP id E1FF71516F for ; Fri, 6 Aug 1999 15:44:07 -0700 (PDT) (envelope-from mph@wopr.caltech.edu) Received: (from mph@localhost) by wopr.caltech.edu (8.9.3/8.9.1) id PAA74122; Fri, 6 Aug 1999 15:43:02 -0700 (PDT) (envelope-from mph) Date: Fri, 6 Aug 1999 15:43:02 -0700 From: Matthew Hunt To: Marc Tardif Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: prototypes with __P Message-ID: <19990806154302.A74040@wopr.caltech.edu> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i In-Reply-To: ; from Marc Tardif on Fri, Aug 06, 1999 at 06:33:30PM -0400 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, Aug 06, 1999 at 06:33:30PM -0400, Marc Tardif wrote: > If anyone could point me in the right direction, and maybe even show me > how I could've found the answer myself, I'd appreciate. It's defined in /usr/include/sys/cdefs.h, among other places. I found it with: cd /usr/include find . -name \*.h | xargs grep 'define.*__P' (The regular expression given to grep matches "define", zero or more other characters that we don't care about, then "__P".) The intent of the macro is to allow the programmer to take advantage of ANSI-style function prototypes (and the error checking they provide) while not breaking the code on K&R compilers that don't support ANSI prototypes. I have no idea how much of the FreeBSD code would actually build on a K&R compiler. -- Matthew Hunt * Inertia is a property http://www.pobox.com/~mph/ * of matter. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message