Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Dec 1998 11:57:25 -0500 (EST)
From:      zhihuizhang <bf20761@binghamton.edu>
To:        hackers <freebsd-hackers@FreeBSD.ORG>
Subject:   typedef question and __P
Message-ID:  <Pine.SOL.L3.93.981204115156.22469A-100000@bingsun1>

next in thread | raw e-mail | index | archive | help

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?

Thanks for your help. 

-------------------------------------------------- 
| Zhihui Zhang, http://cs.binghamton.edu/~zzhang |
| Dept. of Computer Science,  SUNY at Binghamton |
--------------------------------------------------


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?Pine.SOL.L3.93.981204115156.22469A-100000>