From owner-freebsd-hackers Fri Dec 4 11:55:21 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA13195 for freebsd-hackers-outgoing; Fri, 4 Dec 1998 11:55:21 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from penmax.com (cc595093-a.mdltwn1.nj.home.com [24.3.192.38]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA13177 for ; Fri, 4 Dec 1998 11:55:16 -0800 (PST) (envelope-from vincef@penmax.com) Received: from penmax.com (rembrandt.penmax.com [10.1.3.2]) by penmax.com (8.8.8/8.8.8) with ESMTP id PAA09107; Fri, 4 Dec 1998 15:01:42 -0500 (EST) (envelope-from vincef@penmax.com) Message-ID: <3668416B.242774A7@penmax.com> Date: Fri, 04 Dec 1998 15:09:15 -0500 From: Vincent Fleming Reply-To: vincef@penmax.com Organization: Penmax Grafix, Inc. X-Mailer: Mozilla 4.05 [en]C-AtHome0404 (Win95; U) MIME-Version: 1.0 To: zhihuizhang CC: hackers Subject: Re: typedef question and __P References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG zhihuizhang wrote: > > In file isa/isa_device.h, I find two defitions: > > typedef void inthand_t __P((u_int cs, u_int ef, u_int esp, u_int ss)); > typedef void inthand2_t __P((int unit)); > > Usually, typedef takes the format as: > > typedef newtypename existingtype (note: only two terms follows typedef) > > It gives a new name (but does not create a new type) to an existing type. > > My question is how come there are three terms following typedefs above and > where is __P defined. Are they GNU C extenstions? > It's a function declaration. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message