Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 04 Dec 1998 15:09:15 -0500
From:      Vincent Fleming <vincef@penmax.com>
To:        zhihuizhang <bf20761@binghamton.edu>
Cc:        hackers <freebsd-hackers@FreeBSD.ORG>
Subject:   Re: typedef question and __P
Message-ID:  <3668416B.242774A7@penmax.com>
References:  <Pine.SOL.L3.93.981204115156.22469A-100000@bingsun1>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3668416B.242774A7>